|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cayenne.jpa.map.JpaManagedClass
org.apache.cayenne.jpa.map.JpaAbstractEntity
org.apache.cayenne.jpa.map.JpaEntity
public class JpaEntity
A JPA-compliant entity.
Field Summary | |
---|---|
protected Collection<JpaAssociationOverride> |
associationOverrides
|
protected Collection<JpaAttributeOverride> |
attributeOverrides
|
protected JpaDiscriminatorColumn |
discriminatorColumn
|
protected String |
discriminatorValue
|
protected JpaInheritance |
inheritance
|
protected String |
name
|
protected Collection<JpaNamedNativeQuery> |
namedNativeQueries
|
protected Collection<JpaNamedQuery> |
namedQueries
|
protected Collection<JpaPrimaryKeyJoinColumn> |
primaryKeyJoinColumns
|
protected Collection<JpaSecondaryTable> |
secondaryTables
|
protected JpaSequenceGenerator |
sequenceGenerator
|
protected Collection<JpaSqlResultSetMapping> |
sqlResultSetMappings
|
protected JpaEntity |
superEntity
|
protected JpaTable |
table
|
protected JpaTableGenerator |
tableGenerator
|
Fields inherited from class org.apache.cayenne.jpa.map.JpaAbstractEntity |
---|
entityListeners, excludeDefaultListeners, excludeSuperclassListeners, idClass, postLoad, postPersist, postRemove, postUpdate, prePersist, preRemove, preUpdate |
Fields inherited from class org.apache.cayenne.jpa.map.JpaManagedClass |
---|
access, attributes, classDescriptor, className, description, metadataComplete |
Constructor Summary | |
---|---|
JpaEntity()
|
Methods inherited from class org.apache.cayenne.jpa.map.JpaManagedClass |
---|
getAccess, getAttributes, getClassDescriptor, getClassName, getDescription, isMetadataComplete, setAccess, setAttributes, setClassDescriptor, setClassName, setDescription, setMetadataComplete |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected String name
protected JpaTable table
protected JpaInheritance inheritance
protected String discriminatorValue
protected JpaDiscriminatorColumn discriminatorColumn
protected JpaSequenceGenerator sequenceGenerator
protected JpaTableGenerator tableGenerator
protected Collection<JpaSqlResultSetMapping> sqlResultSetMappings
protected Collection<JpaAttributeOverride> attributeOverrides
protected Collection<JpaAssociationOverride> associationOverrides
protected JpaEntity superEntity
protected Collection<JpaNamedQuery> namedQueries
protected Collection<JpaNamedNativeQuery> namedNativeQueries
protected Collection<JpaSecondaryTable> secondaryTables
protected Collection<JpaPrimaryKeyJoinColumn> primaryKeyJoinColumns
Constructor Detail |
---|
public JpaEntity()
Method Detail |
---|
public void encodeAsXML(XMLEncoder encoder)
XMLSerializable
encodeAsXML
in interface XMLSerializable
public String getName()
public void setName(String name)
public JpaDiscriminatorColumn getDiscriminatorColumn()
public void setDiscriminatorColumn(JpaDiscriminatorColumn discriminatorColumn)
public String getDiscriminatorValue()
Description: An optional value that indicates that the row is an entity of this entity type.
Default: If the DiscriminatorValue annotation is not specified, a provider-specific function to generate a value representing the entity type is used for the value of the discriminator column. If the DiscriminatorType is STRING, the discriminator value default is the entity name.
public void setDiscriminatorValue(String discriminatorValue)
public JpaInheritance getInheritance()
public javax.persistence.InheritanceType lookupInheritanceStrategy()
public JpaTable lookupTable()
public JpaDiscriminatorColumn lookupDiscriminatorColumn()
public void setInheritance(JpaInheritance inheritance)
public JpaSequenceGenerator getSequenceGenerator()
public void setSequenceGenerator(JpaSequenceGenerator sequenceGenerator)
public Collection<JpaSqlResultSetMapping> getSqlResultSetMappings()
public JpaTable getTable()
public void setTable(JpaTable table)
public JpaTableGenerator getTableGenerator()
public void setTableGenerator(JpaTableGenerator tableGenerator)
public Collection<JpaAttributeOverride> getAttributeOverrides()
public Collection<JpaAssociationOverride> getAssociationOverrides()
public Collection<JpaNamedNativeQuery> getNamedNativeQueries()
public Collection<JpaNamedQuery> getNamedQueries()
public Collection<JpaPrimaryKeyJoinColumn> getPrimaryKeyJoinColumns()
JpaPrimaryKeyJoinColumn
objects that reference keys
of a primary table. PK join columns used by subclasses in a
InheritanceType.JOINED
mapping scenario.
public Collection<JpaSecondaryTable> getSecondaryTables()
public JpaSecondaryTable getSecondaryTable(String name)
public String toString()
toString
in class Object
public JpaEntity getSuperEntity()
public void setSuperEntity(JpaEntity superEntity)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |