|
ShrinkWrap Descriptors Generated Java EE API 2.0.0-alpha-3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EntityMappings<T>
This interface defines the contract for the entity-mappings
xsd type
Method Summary | |
---|---|
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 |
Methods inherited from interface org.jboss.shrinkwrap.descriptor.api.Child |
---|
up |
Method Detail |
---|
EntityMappings<T> description(String description)
description
element
description
- the value for the element description
EntityMappings
String getDescription()
description
element
description
EntityMappings<T> removeDescription()
description
element
EntityMappings
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
element
EntityMappings
EntityMappings<T> _package(String _package)
package
element
_package
- the value for the element package
EntityMappings
String getPackage()
package
element
package
EntityMappings<T> removePackage()
package
element
EntityMappings
EntityMappings<T> schema(String schema)
schema
element
schema
- the value for the element schema
EntityMappings
String getSchema()
schema
element
schema
EntityMappings<T> removeSchema()
schema
element
EntityMappings
EntityMappings<T> catalog(String catalog)
catalog
element
catalog
- the value for the element catalog
EntityMappings
String getCatalog()
catalog
element
catalog
EntityMappings<T> removeCatalog()
catalog
element
EntityMappings
EntityMappings<T> access(AccessType access)
access
element
access
- the value for the element access
EntityMappings
EntityMappings<T> access(String access)
access
element
access
- the value for the element access
EntityMappings
AccessType getAccess()
access
element
access
String getAccessAsString()
access
element
access
EntityMappings<T> removeAccess()
access
attribute
EntityMappings
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
element
SequenceGenerator>
List<SequenceGenerator<EntityMappings<T>>> getAllSequenceGenerator()
sequence-generator
elements
sequence-generator
EntityMappings<T> removeAllSequenceGenerator()
sequence-generator
elements
SequenceGenerator>
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
element
TableGenerator>
List<TableGenerator<EntityMappings<T>>> getAllTableGenerator()
table-generator
elements
table-generator
EntityMappings<T> removeAllTableGenerator()
table-generator
elements
TableGenerator>
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
element
NamedQuery>
List<NamedQuery<EntityMappings<T>>> getAllNamedQuery()
named-query
elements
named-query
EntityMappings<T> removeAllNamedQuery()
named-query
elements
NamedQuery>
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
element
NamedNativeQuery>
List<NamedNativeQuery<EntityMappings<T>>> getAllNamedNativeQuery()
named-native-query
elements
named-native-query
EntityMappings<T> removeAllNamedNativeQuery()
named-native-query
elements
NamedNativeQuery>
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
element
SqlResultSetMapping>
List<SqlResultSetMapping<EntityMappings<T>>> getAllSqlResultSetMapping()
sql-result-set-mapping
elements
sql-result-set-mapping
EntityMappings<T> removeAllSqlResultSetMapping()
sql-result-set-mapping
elements
SqlResultSetMapping>
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
element
MappedSuperclass>
List<MappedSuperclass<EntityMappings<T>>> getAllMappedSuperclass()
mapped-superclass
elements
mapped-superclass
EntityMappings<T> removeAllMappedSuperclass()
mapped-superclass
elements
MappedSuperclass>
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
element
Entity>
List<Entity<EntityMappings<T>>> getAllEntity()
entity
elements
entity
EntityMappings<T> removeAllEntity()
entity
elements
Entity>
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
element
Embeddable>
List<Embeddable<EntityMappings<T>>> getAllEmbeddable()
embeddable
elements
embeddable
EntityMappings<T> removeAllEmbeddable()
embeddable
elements
Embeddable>
EntityMappings<T> version(String version)
version
attribute
version
- the value for the attribute version
EntityMappings
String getVersion()
version
attribute
version
EntityMappings<T> removeVersion()
version
attribute
EntityMappings
|
ShrinkWrap Descriptors Generated Java EE API 2.0.0-alpha-3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |