public interface EntityMappings<T> extends Child<T>
entity-mappings xsd type| Modifier and Type | Method and Description |
|---|---|
EntityMappings<T> |
_package(String _package)
Sets the
package element |
EntityMappings<T> |
access(AccessType access)
Sets the
access element |
EntityMappings<T> |
access(String access)
Sets the
access element |
EntityMappings<T> |
catalog(String catalog)
Sets the
catalog element |
Embeddable<EntityMappings<T>> |
createEmbeddable()
Creates a new
embeddable element |
Entity<EntityMappings<T>> |
createEntity()
Creates a new
entity element |
MappedSuperclass<EntityMappings<T>> |
createMappedSuperclass()
Creates a new
mapped-superclass element |
NamedNativeQuery<EntityMappings<T>> |
createNamedNativeQuery()
Creates a new
named-native-query element |
NamedQuery<EntityMappings<T>> |
createNamedQuery()
Creates a new
named-query element |
SequenceGenerator<EntityMappings<T>> |
createSequenceGenerator()
Creates a new
sequence-generator element |
SqlResultSetMapping<EntityMappings<T>> |
createSqlResultSetMapping()
Creates a new
sql-result-set-mapping element |
TableGenerator<EntityMappings<T>> |
createTableGenerator()
Creates a new
table-generator element |
EntityMappings<T> |
description(String description)
Sets the
description element |
AccessType |
getAccess()
Returns the
access element |
String |
getAccessAsString()
Returns the
access element |
List<Embeddable<EntityMappings<T>>> |
getAllEmbeddable()
Returns all
embeddable elements |
List<Entity<EntityMappings<T>>> |
getAllEntity()
Returns all
entity elements |
List<MappedSuperclass<EntityMappings<T>>> |
getAllMappedSuperclass()
Returns all
mapped-superclass elements |
List<NamedNativeQuery<EntityMappings<T>>> |
getAllNamedNativeQuery()
Returns all
named-native-query elements |
List<NamedQuery<EntityMappings<T>>> |
getAllNamedQuery()
Returns all
named-query elements |
List<SequenceGenerator<EntityMappings<T>>> |
getAllSequenceGenerator()
Returns all
sequence-generator elements |
List<SqlResultSetMapping<EntityMappings<T>>> |
getAllSqlResultSetMapping()
Returns all
sql-result-set-mapping elements |
List<TableGenerator<EntityMappings<T>>> |
getAllTableGenerator()
Returns all
table-generator elements |
String |
getCatalog()
Returns the
catalog element |
String |
getDescription()
Returns the
description element |
Embeddable<EntityMappings<T>> |
getOrCreateEmbeddable()
If not already created, a new
embeddable element will be created and returned. |
Entity<EntityMappings<T>> |
getOrCreateEntity()
If not already created, a new
entity element will be created and returned. |
MappedSuperclass<EntityMappings<T>> |
getOrCreateMappedSuperclass()
If not already created, a new
mapped-superclass element will be created and returned. |
NamedNativeQuery<EntityMappings<T>> |
getOrCreateNamedNativeQuery()
If not already created, a new
named-native-query element will be created and returned. |
NamedQuery<EntityMappings<T>> |
getOrCreateNamedQuery()
If not already created, a new
named-query element will be created and returned. |
PersistenceUnitMetadata<EntityMappings<T>> |
getOrCreatePersistenceUnitMetadata()
If not already created, a new
persistence-unit-metadata element with the given value will be created. |
SequenceGenerator<EntityMappings<T>> |
getOrCreateSequenceGenerator()
If not already created, a new
sequence-generator element will be created and returned. |
SqlResultSetMapping<EntityMappings<T>> |
getOrCreateSqlResultSetMapping()
If not already created, a new
sql-result-set-mapping element will be created and returned. |
TableGenerator<EntityMappings<T>> |
getOrCreateTableGenerator()
If not already created, a new
table-generator element will be created and returned. |
String |
getPackage()
Returns the
package element |
String |
getSchema()
Returns the
schema element |
String |
getVersion()
Returns the
version attribute |
EntityMappings<T> |
removeAccess()
Removes the
access attribute |
EntityMappings<T> |
removeAllEmbeddable()
Removes all
embeddable elements |
EntityMappings<T> |
removeAllEntity()
Removes all
entity elements |
EntityMappings<T> |
removeAllMappedSuperclass()
Removes all
mapped-superclass elements |
EntityMappings<T> |
removeAllNamedNativeQuery()
Removes all
named-native-query elements |
EntityMappings<T> |
removeAllNamedQuery()
Removes all
named-query elements |
EntityMappings<T> |
removeAllSequenceGenerator()
Removes all
sequence-generator elements |
EntityMappings<T> |
removeAllSqlResultSetMapping()
Removes all
sql-result-set-mapping elements |
EntityMappings<T> |
removeAllTableGenerator()
Removes all
table-generator elements |
EntityMappings<T> |
removeCatalog()
Removes the
catalog element |
EntityMappings<T> |
removeDescription()
Removes the
description element |
EntityMappings<T> |
removePackage()
Removes the
package element |
EntityMappings<T> |
removePersistenceUnitMetadata()
Removes the
persistence-unit-metadata element |
EntityMappings<T> |
removeSchema()
Removes the
schema element |
EntityMappings<T> |
removeVersion()
Removes the
version attribute |
EntityMappings<T> |
schema(String schema)
Sets the
schema element |
EntityMappings<T> |
version(String version)
Sets the
version attribute |
EntityMappings<T> description(String description)
description elementdescription - the value for the element descriptionEntityMappingsString getDescription()
description elementdescriptionEntityMappings<T> removeDescription()
description elementEntityMappingsPersistenceUnitMetadata<EntityMappings<T>> getOrCreatePersistenceUnitMetadata()
persistence-unit-metadata element with the given value will be created.
Otherwise, the existing persistence-unit-metadata element will be returned.PersistenceUnitMetadata> EntityMappings<T> removePersistenceUnitMetadata()
persistence-unit-metadata elementEntityMappingsEntityMappings<T> _package(String _package)
package element_package - the value for the element packageEntityMappingsString getPackage()
package elementpackageEntityMappings<T> removePackage()
package elementEntityMappingsEntityMappings<T> schema(String schema)
schema elementschema - the value for the element schemaEntityMappingsString getSchema()
schema elementschemaEntityMappings<T> removeSchema()
schema elementEntityMappingsEntityMappings<T> catalog(String catalog)
catalog elementcatalog - the value for the element catalogEntityMappingsString getCatalog()
catalog elementcatalogEntityMappings<T> removeCatalog()
catalog elementEntityMappingsEntityMappings<T> access(AccessType access)
access elementaccess - the value for the element accessEntityMappingsEntityMappings<T> access(String access)
access elementaccess - the value for the element accessEntityMappingsAccessType getAccess()
access elementaccessString getAccessAsString()
access elementaccessEntityMappings<T> removeAccess()
access attributeEntityMappingsSequenceGenerator<EntityMappings<T>> getOrCreateSequenceGenerator()
sequence-generator element will be created and returned.
Otherwise, the first existing sequence-generator element will be returned.sequence-generatorSequenceGenerator<EntityMappings<T>> createSequenceGenerator()
sequence-generator elementSequenceGenerator> List<SequenceGenerator<EntityMappings<T>>> getAllSequenceGenerator()
sequence-generator elementssequence-generatorEntityMappings<T> removeAllSequenceGenerator()
sequence-generator elementsSequenceGenerator> TableGenerator<EntityMappings<T>> getOrCreateTableGenerator()
table-generator element will be created and returned.
Otherwise, the first existing table-generator element will be returned.table-generatorTableGenerator<EntityMappings<T>> createTableGenerator()
table-generator elementTableGenerator> List<TableGenerator<EntityMappings<T>>> getAllTableGenerator()
table-generator elementstable-generatorEntityMappings<T> removeAllTableGenerator()
table-generator elementsTableGenerator> NamedQuery<EntityMappings<T>> getOrCreateNamedQuery()
named-query element will be created and returned.
Otherwise, the first existing named-query element will be returned.named-queryNamedQuery<EntityMappings<T>> createNamedQuery()
named-query elementNamedQuery> List<NamedQuery<EntityMappings<T>>> getAllNamedQuery()
named-query elementsnamed-queryEntityMappings<T> removeAllNamedQuery()
named-query elementsNamedQuery> NamedNativeQuery<EntityMappings<T>> getOrCreateNamedNativeQuery()
named-native-query element will be created and returned.
Otherwise, the first existing named-native-query element will be returned.named-native-queryNamedNativeQuery<EntityMappings<T>> createNamedNativeQuery()
named-native-query elementNamedNativeQuery> List<NamedNativeQuery<EntityMappings<T>>> getAllNamedNativeQuery()
named-native-query elementsnamed-native-queryEntityMappings<T> removeAllNamedNativeQuery()
named-native-query elementsNamedNativeQuery> SqlResultSetMapping<EntityMappings<T>> getOrCreateSqlResultSetMapping()
sql-result-set-mapping element will be created and returned.
Otherwise, the first existing sql-result-set-mapping element will be returned.sql-result-set-mappingSqlResultSetMapping<EntityMappings<T>> createSqlResultSetMapping()
sql-result-set-mapping elementSqlResultSetMapping> List<SqlResultSetMapping<EntityMappings<T>>> getAllSqlResultSetMapping()
sql-result-set-mapping elementssql-result-set-mappingEntityMappings<T> removeAllSqlResultSetMapping()
sql-result-set-mapping elementsSqlResultSetMapping> MappedSuperclass<EntityMappings<T>> getOrCreateMappedSuperclass()
mapped-superclass element will be created and returned.
Otherwise, the first existing mapped-superclass element will be returned.mapped-superclassMappedSuperclass<EntityMappings<T>> createMappedSuperclass()
mapped-superclass elementMappedSuperclass> List<MappedSuperclass<EntityMappings<T>>> getAllMappedSuperclass()
mapped-superclass elementsmapped-superclassEntityMappings<T> removeAllMappedSuperclass()
mapped-superclass elementsMappedSuperclass> Entity<EntityMappings<T>> getOrCreateEntity()
entity element will be created and returned.
Otherwise, the first existing entity element will be returned.entityEntity<EntityMappings<T>> createEntity()
entity elementEntity> List<Entity<EntityMappings<T>>> getAllEntity()
entity elementsentityEntityMappings<T> removeAllEntity()
entity elementsEntity> Embeddable<EntityMappings<T>> getOrCreateEmbeddable()
embeddable element will be created and returned.
Otherwise, the first existing embeddable element will be returned.embeddableEmbeddable<EntityMappings<T>> createEmbeddable()
embeddable elementEmbeddable> List<Embeddable<EntityMappings<T>>> getAllEmbeddable()
embeddable elementsembeddableEntityMappings<T> removeAllEmbeddable()
embeddable elementsEmbeddable> EntityMappings<T> version(String version)
version attributeversion - the value for the attribute versionEntityMappingsString getVersion()
version attributeversionEntityMappings<T> removeVersion()
version attributeEntityMappingsCopyright © 2016 JBoss by Red Hat. All rights reserved.