public class MappingFile extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_LOCATION_IN_EJB_JAR
Definitive location for a mapping file in an ejb-jar file.
|
| Constructor and Description |
|---|
MappingFile()
Creates new MappingFile
|
MappingFile(ClassLoader cl)
Creates new MappingFile
|
| Modifier and Type | Method and Description |
|---|---|
SunCmpMappings |
fromMappingClasses(Map mappingClasses,
ConversionHelper helper)
Creates an SunCmpMapping object from a Collection of
MappingClassElement objects
|
void |
fromMappingClasses(OutputStream dest,
Map mappingClasses,
ConversionHelper helper)
Creates an SunCmpMapping object from a Collection of
MappingClassElement objects
|
Map |
intoMappingClasses(InputStream content,
ConversionHelper helper)
Convert an SunCmpMapping object into the equivelent collection of
MappingClassElement objects
|
Map |
intoMappingClasses(SunCmpMappings content,
ConversionHelper helper)
Convert an SunCmpMapping object into the equivelent collection of
MappingClassElement objects
|
public static final String DEFAULT_LOCATION_IN_EJB_JAR
public MappingFile()
public MappingFile(ClassLoader cl)
public Map intoMappingClasses(SunCmpMappings content, ConversionHelper helper) throws org.netbeans.modules.dbschema.DBException, ModelException, ConversionException
content - An SunCmpMapping object that describes a mapping
for one or more beanshelper - An object which implements ConversionHelper interface to
access data from other available sources to support the mapping
generationorg.netbeans.modules.dbschema.DBExceptionModelExceptionConversionExceptionpublic Map intoMappingClasses(InputStream content, ConversionHelper helper) throws org.netbeans.modules.dbschema.DBException, ModelException, ConversionException
content - An InputStream that contains an xml data stream that
conforms to the sun-cmp-mapping.dtdhelper - An object which implements ConversionHelper interface to
access data from other available sources to support the mapping
generationorg.netbeans.modules.dbschema.DBExceptionModelExceptionConversionExceptionpublic void fromMappingClasses(OutputStream dest, Map mappingClasses, ConversionHelper helper) throws IOException, org.netbeans.modules.schema2beans.Schema2BeansException
dest - The output for processingmappingClasses - The Collection of MappingClassElementshelper - An object which implements ConversionHelper interface to
access data from other available sources to support the mapping
generationIOException - Thrown if there is a problem
sending the data out on dest.org.netbeans.modules.schema2beans.Schema2BeansExceptionpublic SunCmpMappings fromMappingClasses(Map mappingClasses, ConversionHelper helper) throws org.netbeans.modules.schema2beans.Schema2BeansException
mappingClasses - The Collection of MappingClassElementshelper - An object which implements ConversionHelper interface to
access data from other available sources to support the mapping
generation.org.netbeans.modules.schema2beans.Schema2BeansExceptionCopyright © 2017. All rights reserved.