|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface OrmPersistentType
Context orm.xml persistent type.
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.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.eclipse.jpt.core.context.PersistentType |
|---|
PersistentType.Owner |
| Field Summary | |
|---|---|
static java.lang.String |
JAVA_PERSISTENT_TYPE_PROPERTY
|
static java.lang.String |
VIRTUAL_ATTRIBUTES_LIST
|
| Fields inherited from interface org.eclipse.jpt.core.context.PersistentType |
|---|
ATTRIBUTES_LIST, MAPPING_PROPERTY, NAME_PROPERTY, SUPER_PERSISTENT_TYPE_PROPERTY |
| Fields inherited from interface org.eclipse.jpt.core.context.AccessHolder |
|---|
DEFAULT_ACCESS_PROPERTY, SPECIFIED_ACCESS_PROPERTY |
| Method Summary | |
|---|---|
OrmPersistentAttribute |
addSpecifiedAttribute(java.lang.String mappingKey,
java.lang.String attributeName)
|
java.util.ListIterator<OrmPersistentAttribute> |
attributes()
Return the persistent type's persistent attributes. |
void |
changeMapping(OrmPersistentAttribute ormPersistentAttribute,
OrmAttributeMapping oldMapping,
OrmAttributeMapping newMapping)
|
void |
classChanged(java.lang.String oldClass,
java.lang.String newClass)
|
boolean |
contains(int textOffset)
|
boolean |
containsVirtualAttribute(OrmPersistentAttribute ormPersistentAttribute)
Return whether this persistent type contains the given virtual persistent attribute. |
OrmPersistentAttribute |
getAttributeNamed(java.lang.String attributeName)
Return the persistent attribute with the specified name, if it exists locally on the persistent type (as opposed to in its inheritance hierarchy). |
java.lang.String |
getDefaultPackage()
Return the persistent type's default package. |
JavaPersistentType |
getJavaPersistentType()
Return the Java persistent type that is referred to by this orm.xml persistent type. |
OrmTypeMapping |
getMapping()
Return the persistent type's mapping. |
EntityMappings |
getParent()
Return the JPA node's parent. |
boolean |
isDefaultMetadataComplete()
Return whether the persistent type is default metadata complete. |
boolean |
isFor(java.lang.String typeName)
Return whether the persistent type applies to the specified type. |
void |
makeAttributeSpecified(OrmPersistentAttribute ormPersistentAttribute)
Add the given virtual orm persistent attribute to the orm.xml. |
void |
makeAttributeSpecified(OrmPersistentAttribute ormPersistentAttribute,
java.lang.String mappingKey)
Add the given virtual orm persistent attribute to the orm.xml with a mapping of type mappingKey. |
void |
makeAttributeVirtual(OrmPersistentAttribute ormPersistentAttribute)
Remove the given specified orm persistent attribute from the orm.xml. |
void |
removeSpecifiedAttribute(OrmPersistentAttribute specifiedAttribute)
|
java.util.ListIterator<OrmPersistentAttribute> |
specifiedAttributes()
Return a read only iterator of the specified OrmPersistentAttributes. |
int |
specifiedAttributesSize()
Return the number of specified OrmPersistentAttributes. |
void |
update()
Update the OrmPersistentType context model object to match the resource model object. |
java.util.ListIterator<OrmPersistentAttribute> |
virtualAttributes()
Return a read only iterator of the virtual orm persistent attributes. |
int |
virtualAttributesSize()
Return the number of virtual orm persistent attributes. |
| Methods inherited from interface org.eclipse.jpt.core.context.PersistentType |
|---|
allAttributeNames, allAttributes, ancestors, attributeNames, attributesSize, getMappingKey, getName, getOwnerDefaultAccess, getOwnerOverrideAccess, getShortName, getSuperPersistentType, inheritanceHierarchy, isMapped, resolveAttribute, setMappingKey, validate |
| Methods inherited from interface org.eclipse.jpt.core.JpaStructureNode |
|---|
dispose, getId, getResourceType, getSelectionTextRange, getStructureNode |
| Methods inherited from interface org.eclipse.jpt.core.context.AccessHolder |
|---|
getAccess, getDefaultAccess, getSpecifiedAccess, setSpecifiedAccess |
| Methods inherited from interface org.eclipse.jpt.core.context.PersistentType.Owner |
|---|
getDefaultPersistentTypeAccess, getOverridePersistentTypeAccess |
| Methods inherited from interface org.eclipse.jpt.core.context.XmlContextNode |
|---|
getValidationTextRange, validate |
| Field Detail |
|---|
static final java.lang.String VIRTUAL_ATTRIBUTES_LIST
static final java.lang.String JAVA_PERSISTENT_TYPE_PROPERTY
| Method Detail |
|---|
EntityMappings getParent()
JpaNode
getParent in interface JpaNodejava.util.ListIterator<OrmPersistentAttribute> attributes()
PersistentType
attributes in interface PersistentTypeOrmPersistentAttribute getAttributeNamed(java.lang.String attributeName)
PersistentType
getAttributeNamed in interface PersistentTypeOrmTypeMapping getMapping()
PersistentTypePersistentType.setMappingKey(String).
getMapping in interface PersistentTypejava.util.ListIterator<OrmPersistentAttribute> specifiedAttributes()
OrmPersistentAttributes.
int specifiedAttributesSize()
OrmPersistentAttributes.
OrmPersistentAttribute addSpecifiedAttribute(java.lang.String mappingKey,
java.lang.String attributeName)
void removeSpecifiedAttribute(OrmPersistentAttribute specifiedAttribute)
java.util.ListIterator<OrmPersistentAttribute> virtualAttributes()
int virtualAttributesSize()
boolean containsVirtualAttribute(OrmPersistentAttribute ormPersistentAttribute)
void makeAttributeVirtual(OrmPersistentAttribute ormPersistentAttribute)
void makeAttributeSpecified(OrmPersistentAttribute ormPersistentAttribute)
void makeAttributeSpecified(OrmPersistentAttribute ormPersistentAttribute,
java.lang.String mappingKey)
void changeMapping(OrmPersistentAttribute ormPersistentAttribute,
OrmAttributeMapping oldMapping,
OrmAttributeMapping newMapping)
void update()
JpaProject.update()
boolean contains(int textOffset)
boolean isFor(java.lang.String typeName)
void classChanged(java.lang.String oldClass,
java.lang.String newClass)
JavaPersistentType getJavaPersistentType()
java.lang.String getDefaultPackage()
boolean isDefaultMetadataComplete()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||