public interface EntityMappings<T> extends Child<T>
entity-mappings
xsd typeModifier 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 description
EntityMappings
String getDescription()
description
elementdescription
EntityMappings<T> removeDescription()
description
elementEntityMappings
PersistenceUnitMetadata<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
elementEntityMappings
EntityMappings<T> _package(String _package)
package
element_package
- the value for the element package
EntityMappings
String getPackage()
package
elementpackage
EntityMappings<T> removePackage()
package
elementEntityMappings
EntityMappings<T> schema(String schema)
schema
elementschema
- the value for the element schema
EntityMappings
String getSchema()
schema
elementschema
EntityMappings<T> removeSchema()
schema
elementEntityMappings
EntityMappings<T> catalog(String catalog)
catalog
elementcatalog
- the value for the element catalog
EntityMappings
String getCatalog()
catalog
elementcatalog
EntityMappings<T> removeCatalog()
catalog
elementEntityMappings
EntityMappings<T> access(AccessType access)
access
elementaccess
- the value for the element access
EntityMappings
EntityMappings<T> access(String access)
access
elementaccess
- the value for the element access
EntityMappings
AccessType getAccess()
access
elementaccess
String getAccessAsString()
access
elementaccess
EntityMappings<T> removeAccess()
access
attributeEntityMappings
SequenceGenerator<EntityMappings<T>> getOrCreateSequenceGenerator()
sequence-generator
element will be created and returned.
Otherwise, the first existing sequence-generator
element will be returned.sequence-generator
SequenceGenerator<EntityMappings<T>> createSequenceGenerator()
sequence-generator
elementSequenceGenerator>
List<SequenceGenerator<EntityMappings<T>>> getAllSequenceGenerator()
sequence-generator
elementssequence-generator
EntityMappings<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-generator
TableGenerator<EntityMappings<T>> createTableGenerator()
table-generator
elementTableGenerator>
List<TableGenerator<EntityMappings<T>>> getAllTableGenerator()
table-generator
elementstable-generator
EntityMappings<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-query
NamedQuery<EntityMappings<T>> createNamedQuery()
named-query
elementNamedQuery>
List<NamedQuery<EntityMappings<T>>> getAllNamedQuery()
named-query
elementsnamed-query
EntityMappings<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-query
NamedNativeQuery<EntityMappings<T>> createNamedNativeQuery()
named-native-query
elementNamedNativeQuery>
List<NamedNativeQuery<EntityMappings<T>>> getAllNamedNativeQuery()
named-native-query
elementsnamed-native-query
EntityMappings<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-mapping
SqlResultSetMapping<EntityMappings<T>> createSqlResultSetMapping()
sql-result-set-mapping
elementSqlResultSetMapping>
List<SqlResultSetMapping<EntityMappings<T>>> getAllSqlResultSetMapping()
sql-result-set-mapping
elementssql-result-set-mapping
EntityMappings<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-superclass
MappedSuperclass<EntityMappings<T>> createMappedSuperclass()
mapped-superclass
elementMappedSuperclass>
List<MappedSuperclass<EntityMappings<T>>> getAllMappedSuperclass()
mapped-superclass
elementsmapped-superclass
EntityMappings<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.entity
Entity<EntityMappings<T>> createEntity()
entity
elementEntity>
List<Entity<EntityMappings<T>>> getAllEntity()
entity
elementsentity
EntityMappings<T> removeAllEntity()
entity
elementsEntity>
Embeddable<EntityMappings<T>> getOrCreateEmbeddable()
embeddable
element will be created and returned.
Otherwise, the first existing embeddable
element will be returned.embeddable
Embeddable<EntityMappings<T>> createEmbeddable()
embeddable
elementEmbeddable>
List<Embeddable<EntityMappings<T>>> getAllEmbeddable()
embeddable
elementsembeddable
EntityMappings<T> removeAllEmbeddable()
embeddable
elementsEmbeddable>
EntityMappings<T> version(String version)
version
attributeversion
- the value for the attribute version
EntityMappings
String getVersion()
version
attributeversion
EntityMappings<T> removeVersion()
version
attributeEntityMappings
Copyright © 2015 JBoss by Red Hat. All rights reserved.