public class EntityElementFactory extends ParentElement implements EntityMetadata
entity elements.ATTR_ACCESS, ATTR_ALLOCATION_SIZE, ATTR_CACHABLE, ATTR_CATALOG, ATTR_CLASS, ATTR_COLUMN, ATTR_COLUMN_DEFINITION, ATTR_DISCRIMINATOR_COLUMN, ATTR_DISCRIMINATOR_TYPE, ATTR_ENTITY_CLASS, ATTR_FETCH, ATTR_GENERATOR, ATTR_ID, ATTR_INITIAL_VALUE, ATTR_INSERTABLE, ATTR_LENGTH, ATTR_MAPPED_BY, ATTR_MAPS_ID, ATTR_METADATA_COMPLETE, ATTR_NAME, ATTR_NULLABLE, ATTR_OPTIONAL, ATTR_ORPHAN_REMOVAL, ATTR_PK_COLUMN_NAME, ATTR_PK_COLUMN_VALUE, ATTR_PRECISION, ATTR_REFERENCED_COLUMN_NAME, ATTR_RESULT_CLASS, ATTR_RESULT_SET_MAPPING, ATTR_SCALE, ATTR_SCHEMA, ATTR_SEQUENCE_NAME, ATTR_STRATEGY, ATTR_TABLE, ATTR_TARGET_CLASS, ATTR_TARGET_ENTITY, ATTR_UNIQUE, ATTR_UPDATABLE, ATTR_VALUE, ATTR_VALUE_COLUMN_NAME, ELEMENT_ACCESS, ELEMENT_ASSOCIATION_OVERRIDE, ELEMENT_ATTRIBUTE_OVERRIDE, ELEMENT_ATTRIBUTES, ELEMENT_BASIC, ELEMENT_CASCADE, ELEMENT_CASCADE_ALL, ELEMENT_CASCADE_DETACH, ELEMENT_CASCADE_MERGE, ELEMENT_CASCADE_PERSIST, ELEMENT_CASCADE_REFRESH, ELEMENT_CASCADE_REMOVE, ELEMENT_CATALOG, ELEMENT_COLLECTION_TABLE, ELEMENT_COLUMN, ELEMENT_COLUMN_NAME, ELEMENT_COLUMN_RESULT, ELEMENT_DISCRIMINATOR_COLUMN, ELEMENT_DISCRIMINATOR_VALUE, ELEMENT_ELEMENT_COLLECTION, ELEMENT_EMBEDDABLE, ELEMENT_EMBEDDED, ELEMENT_EMBEDDED_ID, ELEMENT_ENTITY, ELEMENT_ENTITY_LISTENER, ELEMENT_ENTITY_LISTENERS, ELEMENT_ENTITY_MAPPINGS, ELEMENT_ENTITY_RESULT, ELEMENT_ENUMERATED, ELEMENT_EXCLUDE_DEFAULT_LISTENERS, ELEMENT_EXCLUDE_SUPERCLASS_LISTENERS, ELEMENT_FIELD_RESULT, ELEMENT_GENERATED_VALUE, ELEMENT_HINT, ELEMENT_ID, ELEMENT_ID_CLASS, ELEMENT_INHERITANCE, ELEMENT_INVERSE_JOIN_COLUMN, ELEMENT_JOIN_COLUMN, ELEMENT_JOIN_TABLE, ELEMENT_LOB, ELEMENT_LOCK_MODE, ELEMENT_MANY_TO_MANY, ELEMENT_MANY_TO_ONE, ELEMENT_MAP_KEY, ELEMENT_MAP_KEY_ATTRIBUTE_OVERRIDE, ELEMENT_MAP_KEY_CLASS, ELEMENT_MAP_KEY_COLUMN, ELEMENT_MAP_KEY_ENUMERATED, ELEMENT_MAP_KEY_TEMPORAL, ELEMENT_MAPPED_SUPERCLASS, ELEMENT_NAMED_NATIVE_QUERY, ELEMENT_NAMED_QUERY, ELEMENT_ONE_TO_MANY, ELEMENT_ONE_TO_ONE, ELEMENT_ORDER_BY, ELEMENT_ORDER_COLUMN, ELEMENT_PERSISTENCE_UNIT_DEFAULTS, ELEMENT_PERSISTENT_UNIT_METADATA, ELEMENT_POST_LOAD, ELEMENT_POST_PERSIST, ELEMENT_POST_REMOVE, ELEMENT_POST_UPDATE, ELEMENT_PRE_PERSIST, ELEMENT_PRE_REMOVE, ELEMENT_PRE_UPDATE, ELEMENT_PRIMARY_KEY_JOIN_COLUMN, ELEMENT_QUERY, ELEMENT_SCHEMA, ELEMENT_SECONDARY_TABLE, ELEMENT_SEQUENCE_GENERATOR, ELEMENT_SQL_RESULT_SET_MAPPING, ELEMENT_TABLE, ELEMENT_TABLE_GENERATOR, ELEMENT_TEMPORAL, ELEMENT_TRANSIENT, ELEMENT_UNIQUE_CONSTRAINT, ELEMENT_VERSION, ELEMENT_XML_MAPPING_METADATA_COMPLETE, EMPTY, FALSE| Constructor and Description |
|---|
EntityElementFactory(ParentElement parent,
Map<String,String> attributes)
Constructor for ORM File parsing
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
excludeDefaultListeners()
Returns if the default listeners are excluded.
|
boolean |
excludeSuperclassListeners()
Returns if the super class listeners are excluded.
|
protected void |
generate()
Generates the elements artifact.
|
javax.persistence.AccessType |
getAccessType()
Returns the access type of the entity.
|
List<AssociationMetadata> |
getAssociationOverrides()
Returns the associationOverrides of the entity.
|
List<AttributeOverrideMetadata> |
getAttributeOverrides()
Returns the attributeOverrides of the entity.
|
AttributesElement |
getAttributes()
Returns the attributes of the entity.
|
Boolean |
getCacheable()
Returns if the entity is cachable.
|
List<CallbackMetadata> |
getCallbacks()
Returns the callbacks of the identifiable type.
|
String |
getClassName()
Returns the name of the class of the entity.
|
DiscriminatorColumnMetadata |
getDiscriminatorColumn()
Returns the discriminator column definition of the entity.
|
String |
getDiscriminatorValue()
Returns the discriminator value for the entity.
|
String |
getIdClass()
Returns the id class of the identifiable type.
|
List<IndexMetadata> |
getIndexes()
Returns the list of indexes of the entity.
|
javax.persistence.InheritanceType |
getInheritanceType()
Returns the inheritance type of the entity.
|
List<EntityListenerMetadata> |
getListeners()
Returns the entity listeners of the identifiable type.
|
String |
getName()
Returns the name of the Bindable.
|
List<NamedNativeQueryMetadata> |
getNamedNativeQueries()
Returns the list of named native queries.
|
List<NamedQueryMetadata> |
getNamedQueries()
Returns the list of named queries.
|
List<SecondaryTableMetadata> |
getSecondaryTables()
Returns the list secondary tables of the entity.
|
SequenceGeneratorMetadata |
getSequenceGenerator()
Returns the sequence Generator of the entity.
|
List<SqlResultSetMappingMetadata> |
getSqlResultSetMappings()
Returns the list of SqlResultSetMappingMetadata
|
TableMetadata |
getTable()
Returns the table of the entity.
|
TableGeneratorMetadata |
getTableGenerator()
Returns the table generator of the entity.
|
protected void |
handleChild(Element child)
Handles the
generated artifact of the child element. |
boolean |
isMetadataComplete()
Returns if the entity's metadata is complete.
|
join, toStringcdata, end, expected, forElement, getAttribute, getAttribute, getAttribute, getAttribute, getExpectedChildElements, getLocator, getParentclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetLocatorpublic EntityElementFactory(ParentElement parent, Map<String,String> attributes)
parent - the metamodelattributes - the attributespublic boolean excludeDefaultListeners()
excludeDefaultListeners in interface IdentifiableTypeMetadatapublic boolean excludeSuperclassListeners()
excludeSuperclassListeners in interface IdentifiableTypeMetadataprotected void generate()
Element factories implement the method to generate their artifacts.
public javax.persistence.AccessType getAccessType()
getAccessType in interface ManagedTypeMetadatapublic List<AssociationMetadata> getAssociationOverrides()
getAssociationOverrides in interface EntityMetadatapublic List<AttributeOverrideMetadata> getAttributeOverrides()
getAttributeOverrides in interface EntityMetadatapublic AttributesElement getAttributes()
getAttributes in interface ManagedTypeMetadatapublic Boolean getCacheable()
getCacheable in interface EntityMetadatapublic List<CallbackMetadata> getCallbacks()
getCallbacks in interface IdentifiableTypeMetadatapublic String getClassName()
getClassName in interface ManagedTypeMetadatapublic DiscriminatorColumnMetadata getDiscriminatorColumn()
getDiscriminatorColumn in interface EntityMetadatapublic String getDiscriminatorValue()
getDiscriminatorValue in interface EntityMetadatapublic String getIdClass()
getIdClass in interface IdentifiableTypeMetadatapublic List<IndexMetadata> getIndexes()
getIndexes in interface EntityMetadatapublic javax.persistence.InheritanceType getInheritanceType()
getInheritanceType in interface EntityMetadatapublic List<EntityListenerMetadata> getListeners()
getListeners in interface IdentifiableTypeMetadatapublic String getName()
getName in interface BindableMetadatapublic List<NamedNativeQueryMetadata> getNamedNativeQueries()
getNamedNativeQueries in interface EntityMetadatapublic List<NamedQueryMetadata> getNamedQueries()
getNamedQueries in interface EntityMetadatapublic List<SecondaryTableMetadata> getSecondaryTables()
getSecondaryTables in interface EntityMetadatapublic SequenceGeneratorMetadata getSequenceGenerator()
getSequenceGenerator in interface EntityMetadatapublic List<SqlResultSetMappingMetadata> getSqlResultSetMappings()
getSqlResultSetMappings in interface EntityMetadatapublic TableMetadata getTable()
getTable in interface EntityMetadatapublic TableGeneratorMetadata getTableGenerator()
getTableGenerator in interface EntityMetadataprotected void handleChild(Element child)
generated artifact of the child element.
Element factories implement the method to generate their artifacts.
handleChild in class ParentElementchild - the generated child artifactpublic boolean isMetadataComplete()
isMetadataComplete in interface ManagedTypeMetadataCopyright © 2012-2013 Batoo. All Rights Reserved.