|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.ccxjc.it.model.pub.indexed.valueclass.persistence.orm.EntityMappings
public class EntityMappings
The entity-mappings element is the root element of an mapping file. It contains the following four types of elements: 1. The persistence-unit-metadata element contains metadata for the entire persistence unit. It is undefined if this element occurs in multiple mapping files within the same persistence unit. 2. The package, schema, catalog and access elements apply to all of the entity, mapped-superclass and embeddable elements defined in the same file in which they occur. 3. The sequence-generator, table-generator, named-query, named-native-query and sql-result-set-mapping elements are global to the persistence unit. It is undefined to have more than one sequence-generator or table-generator of the same name in the same or different mapping files in a persistence unit. It is also undefined to have more than one named-query or named-native-query of the same name in the same or different mapping files in a persistence unit. 4. The entity, mapped-superclass and embeddable elements each define the mapping information for a managed persistent class. The mapping information contained in these elements may be complete or it may be partial.
Java class for anonymous complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType>
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="description" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="persistence-unit-metadata" type="{http://java.sun.com/xml/ns/persistence/orm}persistence-unit-metadata" minOccurs="0"/>
<element name="package" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="schema" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="catalog" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="access" type="{http://java.sun.com/xml/ns/persistence/orm}access-type" minOccurs="0"/>
<element name="sequence-generator" type="{http://java.sun.com/xml/ns/persistence/orm}sequence-generator" maxOccurs="unbounded" minOccurs="0"/>
<element name="table-generator" type="{http://java.sun.com/xml/ns/persistence/orm}table-generator" maxOccurs="unbounded" minOccurs="0"/>
<element name="named-query" type="{http://java.sun.com/xml/ns/persistence/orm}named-query" maxOccurs="unbounded" minOccurs="0"/>
<element name="named-native-query" type="{http://java.sun.com/xml/ns/persistence/orm}named-native-query" maxOccurs="unbounded" minOccurs="0"/>
<element name="sql-result-set-mapping" type="{http://java.sun.com/xml/ns/persistence/orm}sql-result-set-mapping" maxOccurs="unbounded" minOccurs="0"/>
<element name="mapped-superclass" type="{http://java.sun.com/xml/ns/persistence/orm}mapped-superclass" maxOccurs="unbounded" minOccurs="0"/>
<element name="entity" type="{http://java.sun.com/xml/ns/persistence/orm}entity" maxOccurs="unbounded" minOccurs="0"/>
<element name="embeddable" type="{http://java.sun.com/xml/ns/persistence/orm}embeddable" maxOccurs="unbounded" minOccurs="0"/>
</sequence>
<attribute name="version" use="required" type="{http://java.sun.com/xml/ns/persistence/orm}versionType" fixed="1.0" />
</restriction>
</complexContent>
</complexType>
| Field Summary | |
|---|---|
protected String |
_package
|
protected AccessType |
access
|
protected String |
catalog
|
protected String |
description
|
protected Embeddable[] |
embeddable
|
protected Entity[] |
entity
|
protected MappedSuperclass[] |
mappedSuperclass
|
protected NamedNativeQuery[] |
namedNativeQuery
|
protected NamedQuery[] |
namedQuery
|
protected PersistenceUnitMetadata |
persistenceUnitMetadata
|
protected String |
schema
|
protected SequenceGenerator[] |
sequenceGenerator
|
protected SqlResultSetMapping[] |
sqlResultSetMapping
|
protected TableGenerator[] |
tableGenerator
|
protected String |
version
|
| Constructor Summary | |
|---|---|
EntityMappings()
Creates a new net.sourceforge.ccxjc.it.model.pub.indexed.valueclass.persistence.orm.EntityMappings instance. |
|
EntityMappings(EntityMappings o)
Creates a new net.sourceforge.ccxjc.it.model.pub.indexed.valueclass.persistence.orm.EntityMappings instance by copying a given instance. |
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected String description
protected PersistenceUnitMetadata persistenceUnitMetadata
protected String _package
protected String schema
protected String catalog
protected AccessType access
protected SequenceGenerator[] sequenceGenerator
protected TableGenerator[] tableGenerator
protected NamedQuery[] namedQuery
protected NamedNativeQuery[] namedNativeQuery
protected SqlResultSetMapping[] sqlResultSetMapping
protected MappedSuperclass[] mappedSuperclass
protected Entity[] entity
protected Embeddable[] embeddable
protected String version
| Constructor Detail |
|---|
public EntityMappings()
net.sourceforge.ccxjc.it.model.pub.indexed.valueclass.persistence.orm.EntityMappings instance.
public EntityMappings(EntityMappings o)
net.sourceforge.ccxjc.it.model.pub.indexed.valueclass.persistence.orm.EntityMappings instance by copying a given instance.
o - The instance to copy or null.| Method Detail |
|---|
public String getDescription()
Stringpublic void setDescription(String value)
value - allowed object is
Stringpublic PersistenceUnitMetadata getPersistenceUnitMetadata()
PersistenceUnitMetadatapublic void setPersistenceUnitMetadata(PersistenceUnitMetadata value)
value - allowed object is
PersistenceUnitMetadatapublic String getPackage()
Stringpublic void setPackage(String value)
value - allowed object is
Stringpublic String getSchema()
Stringpublic void setSchema(String value)
value - allowed object is
Stringpublic String getCatalog()
Stringpublic void setCatalog(String value)
value - allowed object is
Stringpublic AccessType getAccess()
AccessTypepublic void setAccess(AccessType value)
value - allowed object is
AccessTypepublic SequenceGenerator[] getSequenceGenerator()
SequenceGeneratorpublic SequenceGenerator getSequenceGenerator(int idx)
SequenceGeneratorpublic int getSequenceGeneratorLength()
public void setSequenceGenerator(SequenceGenerator[] values)
values - allowed objects are
SequenceGenerator
public SequenceGenerator setSequenceGenerator(int idx,
SequenceGenerator value)
value - allowed object is
SequenceGeneratorpublic TableGenerator[] getTableGenerator()
TableGeneratorpublic TableGenerator getTableGenerator(int idx)
TableGeneratorpublic int getTableGeneratorLength()
public void setTableGenerator(TableGenerator[] values)
values - allowed objects are
TableGenerator
public TableGenerator setTableGenerator(int idx,
TableGenerator value)
value - allowed object is
TableGeneratorpublic NamedQuery[] getNamedQuery()
NamedQuerypublic NamedQuery getNamedQuery(int idx)
NamedQuerypublic int getNamedQueryLength()
public void setNamedQuery(NamedQuery[] values)
values - allowed objects are
NamedQuery
public NamedQuery setNamedQuery(int idx,
NamedQuery value)
value - allowed object is
NamedQuerypublic NamedNativeQuery[] getNamedNativeQuery()
NamedNativeQuerypublic NamedNativeQuery getNamedNativeQuery(int idx)
NamedNativeQuerypublic int getNamedNativeQueryLength()
public void setNamedNativeQuery(NamedNativeQuery[] values)
values - allowed objects are
NamedNativeQuery
public NamedNativeQuery setNamedNativeQuery(int idx,
NamedNativeQuery value)
value - allowed object is
NamedNativeQuerypublic SqlResultSetMapping[] getSqlResultSetMapping()
SqlResultSetMappingpublic SqlResultSetMapping getSqlResultSetMapping(int idx)
SqlResultSetMappingpublic int getSqlResultSetMappingLength()
public void setSqlResultSetMapping(SqlResultSetMapping[] values)
values - allowed objects are
SqlResultSetMapping
public SqlResultSetMapping setSqlResultSetMapping(int idx,
SqlResultSetMapping value)
value - allowed object is
SqlResultSetMappingpublic MappedSuperclass[] getMappedSuperclass()
MappedSuperclasspublic MappedSuperclass getMappedSuperclass(int idx)
MappedSuperclasspublic int getMappedSuperclassLength()
public void setMappedSuperclass(MappedSuperclass[] values)
values - allowed objects are
MappedSuperclass
public MappedSuperclass setMappedSuperclass(int idx,
MappedSuperclass value)
value - allowed object is
MappedSuperclasspublic Entity[] getEntity()
Entitypublic Entity getEntity(int idx)
Entitypublic int getEntityLength()
public void setEntity(Entity[] values)
values - allowed objects are
Entity
public Entity setEntity(int idx,
Entity value)
value - allowed object is
Entitypublic Embeddable[] getEmbeddable()
Embeddablepublic Embeddable getEmbeddable(int idx)
Embeddablepublic int getEmbeddableLength()
public void setEmbeddable(Embeddable[] values)
values - allowed objects are
Embeddable
public Embeddable setEmbeddable(int idx,
Embeddable value)
value - allowed object is
Embeddablepublic String getVersion()
Stringpublic void setVersion(String value)
value - allowed object is
Stringpublic void copySequenceGenerator(SequenceGenerator[] source)
SequenceGenerator.
source - The source to copy from.
NullPointerException - if source is null.public void copyTableGenerator(TableGenerator[] source)
TableGenerator.
source - The source to copy from.
NullPointerException - if source is null.public void copyNamedQuery(NamedQuery[] source)
NamedQuery.
source - The source to copy from.
NullPointerException - if source is null.public void copyNamedNativeQuery(NamedNativeQuery[] source)
NamedNativeQuery.
source - The source to copy from.
NullPointerException - if source is null.public void copySqlResultSetMapping(SqlResultSetMapping[] source)
SqlResultSetMapping.
source - The source to copy from.
NullPointerException - if source is null.public void copyMappedSuperclass(MappedSuperclass[] source)
MappedSuperclass.
source - The source to copy from.
NullPointerException - if source is null.public void copyEntity(Entity[] source)
Entity.
source - The source to copy from.
NullPointerException - if source is null.public void copyEmbeddable(Embeddable[] source)
Embeddable.
source - The source to copy from.
NullPointerException - if source is null.public EntityMappings clone()
clone in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||