|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EntityMappings
Provisional API: This interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_ACCESS_PROPERTY
|
static java.lang.String |
DEFAULT_CATALOG_PROPERTY
|
static java.lang.String |
DEFAULT_SCHEMA_PROPERTY
|
static java.lang.String |
DESCRIPTION_PROPERTY
|
static java.lang.String |
NAMED_NATIVE_QUERIES_LIST
|
static java.lang.String |
NAMED_QUERIES_LIST
|
static java.lang.String |
PACKAGE_PROPERTY
|
static java.lang.String |
PERSISTENT_TYPES_LIST
|
static java.lang.String |
SEQUENCE_GENERATORS_LIST
|
static java.lang.String |
SPECIFIED_ACCESS_PROPERTY
|
static java.lang.String |
SPECIFIED_CATALOG_PROPERTY
|
static java.lang.String |
SPECIFIED_SCHEMA_PROPERTY
|
static java.lang.String |
TABLE_GENERATORS_LIST
|
Method Summary | |
---|---|
OrmNamedNativeQuery |
addNamedNativeQuery(int index)
Add a named native query to the entity return the object representing it. |
OrmNamedQuery |
addNamedQuery(int index)
Add a named query to the entity return the object representing it. |
OrmPersistentType |
addOrmPersistentType(java.lang.String mappingKey,
java.lang.String className)
|
OrmSequenceGenerator |
addSequenceGenerator(int index)
|
OrmTableGenerator |
addTableGenerator(int index)
|
void |
changeMapping(OrmPersistentType ormPersistentType,
OrmTypeMapping oldMapping,
OrmTypeMapping newMapping)
|
boolean |
containsOffset(int textOffset)
|
boolean |
containsPersistentType(java.lang.String className)
|
AccessType |
getAccess()
Return the specifiedAccess if not null, otherwise return the defaultAccess. |
java.lang.String |
getCatalog()
Return the specifiedCatalog if not null, otherwise return the defaultCatalog. |
AccessType |
getDefaultAccess()
|
java.lang.String |
getDefaultCatalog()
|
java.lang.String |
getDefaultSchema()
|
java.lang.String |
getDescription()
|
java.lang.String |
getPackage()
|
PersistenceUnitDefaults |
getPersistenceUnitDefaults()
|
PersistenceUnitMetadata |
getPersistenceUnitMetadata()
|
OrmPersistentType |
getPersistentType(java.lang.String fullyQualifiedTypeName)
Return the {@link OrmPersistentType) listed in this mapping file with the given fullyQualifiedTypeName. |
java.lang.String |
getSchema()
Return the specifiedSchema if not null, otherwise return the defaultSchema. |
AccessType |
getSpecifiedAccess()
|
java.lang.String |
getSpecifiedCatalog()
|
java.lang.String |
getSpecifiedSchema()
|
java.lang.String |
getVersion()
|
void |
moveNamedNativeQuery(int targetIndex,
int sourceIndex)
Move the named native query from the source index to the target index. |
void |
moveNamedQuery(int targetIndex,
int sourceIndex)
Move the named query from the source index to the target index. |
void |
moveSequenceGenerator(int targetIndex,
int sourceIndex)
|
void |
moveTableGenerator(int targetIndex,
int sourceIndex)
|
java.util.ListIterator<OrmNamedNativeQuery> |
namedNativeQueries()
Return a list iterator of the specified named native queries. |
int |
namedNativeQueriesSize()
Return the number of named native queries. |
java.util.ListIterator<OrmNamedQuery> |
namedQueries()
Return a list iterator of the named queries. |
int |
namedQueriesSize()
Return the number of named queries. |
java.util.ListIterator<OrmPersistentType> |
ormPersistentTypes()
|
int |
ormPersistentTypesSize()
|
void |
removeNamedNativeQuery(int index)
Remove the named native query at the index from the entity. |
void |
removeNamedQuery(int index)
Remove the named query at the index from the entity. |
void |
removeOrmPersistentType(int index)
|
void |
removeOrmPersistentType(OrmPersistentType ormPersistentType)
|
void |
removeSequenceGenerator(int index)
|
void |
removeSequenceGenerator(OrmSequenceGenerator sequenceGenerator)
|
void |
removeTableGenerator(int index)
|
void |
removeTableGenerator(OrmTableGenerator tableGenerator)
|
java.util.ListIterator<OrmSequenceGenerator> |
sequenceGenerators()
|
int |
sequenceGeneratorsSize()
|
void |
setDescription(java.lang.String newDescription)
|
void |
setPackage(java.lang.String newPackage)
|
void |
setSpecifiedAccess(AccessType newSpecifiedAccess)
|
void |
setSpecifiedCatalog(java.lang.String newSpecifiedCatalog)
|
void |
setSpecifiedSchema(java.lang.String newSpecifiedSchema)
|
java.util.ListIterator<OrmTableGenerator> |
tableGenerators()
|
int |
tableGeneratorsSize()
|
void |
update(XmlEntityMappings entityMappings)
|
Methods inherited from interface org.eclipse.jpt.core.context.orm.OrmJpaContextNode |
---|
addToMessages, getValidationTextRange |
Methods inherited from interface org.eclipse.jpt.core.context.JpaContextNode |
---|
getEntityMappings, getOrmPersistentType, getPersistenceUnit |
Methods inherited from interface org.eclipse.jpt.core.JpaStructureNode |
---|
dispose, getId, getSelectionTextRange, getStructureNode |
Methods inherited from interface org.eclipse.jpt.core.context.QueryHolder |
---|
removeNamedNativeQuery, removeNamedQuery |
Methods inherited from interface org.eclipse.jpt.core.context.JpaContextNode |
---|
getEntityMappings, getOrmPersistentType, getPersistenceUnit |
Field Detail |
---|
static final java.lang.String DESCRIPTION_PROPERTY
static final java.lang.String PACKAGE_PROPERTY
static final java.lang.String DEFAULT_SCHEMA_PROPERTY
static final java.lang.String SPECIFIED_SCHEMA_PROPERTY
static final java.lang.String DEFAULT_CATALOG_PROPERTY
static final java.lang.String SPECIFIED_CATALOG_PROPERTY
static final java.lang.String DEFAULT_ACCESS_PROPERTY
static final java.lang.String SPECIFIED_ACCESS_PROPERTY
static final java.lang.String PERSISTENT_TYPES_LIST
static final java.lang.String SEQUENCE_GENERATORS_LIST
static final java.lang.String TABLE_GENERATORS_LIST
static final java.lang.String NAMED_QUERIES_LIST
static final java.lang.String NAMED_NATIVE_QUERIES_LIST
Method Detail |
---|
java.lang.String getVersion()
java.lang.String getDescription()
void setDescription(java.lang.String newDescription)
java.lang.String getPackage()
void setPackage(java.lang.String newPackage)
java.lang.String getSchema()
java.lang.String getDefaultSchema()
java.lang.String getSpecifiedSchema()
void setSpecifiedSchema(java.lang.String newSpecifiedSchema)
java.lang.String getCatalog()
java.lang.String getDefaultCatalog()
java.lang.String getSpecifiedCatalog()
void setSpecifiedCatalog(java.lang.String newSpecifiedCatalog)
AccessType getAccess()
AccessType getDefaultAccess()
AccessType getSpecifiedAccess()
void setSpecifiedAccess(AccessType newSpecifiedAccess)
PersistenceUnitMetadata getPersistenceUnitMetadata()
java.util.ListIterator<OrmPersistentType> ormPersistentTypes()
int ormPersistentTypesSize()
OrmPersistentType addOrmPersistentType(java.lang.String mappingKey, java.lang.String className)
void removeOrmPersistentType(int index)
void removeOrmPersistentType(OrmPersistentType ormPersistentType)
boolean containsPersistentType(java.lang.String className)
java.util.ListIterator<OrmSequenceGenerator> sequenceGenerators()
int sequenceGeneratorsSize()
OrmSequenceGenerator addSequenceGenerator(int index)
void removeSequenceGenerator(int index)
void removeSequenceGenerator(OrmSequenceGenerator sequenceGenerator)
void moveSequenceGenerator(int targetIndex, int sourceIndex)
java.util.ListIterator<OrmTableGenerator> tableGenerators()
int tableGeneratorsSize()
OrmTableGenerator addTableGenerator(int index)
void removeTableGenerator(int index)
void removeTableGenerator(OrmTableGenerator tableGenerator)
void moveTableGenerator(int targetIndex, int sourceIndex)
java.util.ListIterator<OrmNamedQuery> namedQueries()
QueryHolder
namedQueries
in interface QueryHolder
int namedQueriesSize()
QueryHolder
namedQueriesSize
in interface QueryHolder
OrmNamedQuery addNamedQuery(int index)
QueryHolder
addNamedQuery
in interface QueryHolder
void removeNamedQuery(int index)
QueryHolder
removeNamedQuery
in interface QueryHolder
void moveNamedQuery(int targetIndex, int sourceIndex)
QueryHolder
moveNamedQuery
in interface QueryHolder
java.util.ListIterator<OrmNamedNativeQuery> namedNativeQueries()
QueryHolder
namedNativeQueries
in interface QueryHolder
int namedNativeQueriesSize()
QueryHolder
namedNativeQueriesSize
in interface QueryHolder
OrmNamedNativeQuery addNamedNativeQuery(int index)
QueryHolder
addNamedNativeQuery
in interface QueryHolder
void removeNamedNativeQuery(int index)
QueryHolder
removeNamedNativeQuery
in interface QueryHolder
void moveNamedNativeQuery(int targetIndex, int sourceIndex)
QueryHolder
moveNamedNativeQuery
in interface QueryHolder
PersistenceUnitDefaults getPersistenceUnitDefaults()
OrmPersistentType getPersistentType(java.lang.String fullyQualifiedTypeName)
void changeMapping(OrmPersistentType ormPersistentType, OrmTypeMapping oldMapping, OrmTypeMapping newMapping)
void update(XmlEntityMappings entityMappings)
boolean containsOffset(int textOffset)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |