|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.jdo.api.persistence.mapping.ejb.MappingFile
public class MappingFile
This class supports the conversion between the iAS mapping file format and the object used to represent that mapping to support the iAS EJBC process and iAS CMP run-time.
| Field Summary | |
|---|---|
static java.lang.String |
DEFAULT_LOCATION_IN_EJB_JAR
Definitive location for a mapping file in an ejb-jar file. |
| Constructor Summary | |
|---|---|
MappingFile()
Creates new MappingFile |
|
MappingFile(java.lang.ClassLoader cl)
Creates new MappingFile |
|
| Method Summary | |
|---|---|
SunCmpMappings |
fromMappingClasses(java.util.Map mappingClasses,
ConversionHelper helper)
Creates an SunCmpMapping object from a Collection of MappingClassElement objects |
void |
fromMappingClasses(java.io.OutputStream dest,
java.util.Map mappingClasses,
ConversionHelper helper)
Creates an SunCmpMapping object from a Collection of MappingClassElement objects |
java.util.Map |
intoMappingClasses(java.io.InputStream content,
ConversionHelper helper)
Convert an SunCmpMapping object into the equivelent collection of MappingClassElement objects |
java.util.Map |
intoMappingClasses(SunCmpMappings content,
ConversionHelper helper)
Convert an SunCmpMapping object into the equivelent collection of MappingClassElement objects |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String DEFAULT_LOCATION_IN_EJB_JAR
| Constructor Detail |
|---|
public MappingFile()
public MappingFile(java.lang.ClassLoader cl)
| Method Detail |
|---|
public java.util.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
generation
org.netbeans.modules.dbschema.DBException
ModelException
ConversionException
public java.util.Map intoMappingClasses(java.io.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
generation
org.netbeans.modules.dbschema.DBException
ModelException
ConversionException
public void fromMappingClasses(java.io.OutputStream dest,
java.util.Map mappingClasses,
ConversionHelper helper)
throws java.io.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
generation
java.io.IOException - Thrown if there is a problem
sending the data out on dest.
org.netbeans.modules.schema2beans.Schema2BeansException
public SunCmpMappings fromMappingClasses(java.util.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.Schema2BeansException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||