|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface OrmPersistentAttribute
ORM persistent attribute 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 | |
|---|---|
static interface |
OrmPersistentAttribute.Owner
interface allowing persistent attributes to be used in multiple places (e.g. |
| Field Summary | |
|---|---|
static java.lang.String |
JAVA_PERSISTENT_ATTRIBUTE_PROPERTY
|
| Fields inherited from interface org.eclipse.jpt.core.context.PersistentAttribute |
|---|
DEFAULT_MAPPING_PROPERTY, NAME_PROPERTY, SPECIFIED_MAPPING_PROPERTY |
| Fields inherited from interface org.eclipse.jpt.core.context.AccessHolder |
|---|
DEFAULT_ACCESS_PROPERTY, SPECIFIED_ACCESS_PROPERTY |
| Method Summary | |
|---|---|
boolean |
contains(int textOffset)
|
JavaPersistentAttribute |
getJavaPersistentAttribute()
|
OrmAttributeMapping |
getMapping()
Return the attribute's "specified" mapping, or if it is null return the "default" mapping. |
OrmPersistentType |
getPersistentType()
|
OrmAttributeMapping |
getSpecifiedMapping()
Return the attribute's "specified" mapping, could be null |
OrmTypeMapping |
getTypeMapping()
|
void |
makeSpecified()
Take a virtual persistent attribute and specify it. |
void |
makeSpecified(java.lang.String mappingKey)
Take a virtual persistent attribute and specify it. |
void |
makeVirtual()
Make the persistent attribute virtual. |
void |
nameChanged(java.lang.String oldName,
java.lang.String newName)
|
void |
update()
Update the OrmPersistentAttribute context model object to match the resource model object. |
| Methods inherited from interface org.eclipse.jpt.core.context.PersistentAttribute |
|---|
getDefaultMappingKey, getMappingKey, getName, getPrimaryKeyColumnName, isIdAttribute, isOverridableAssociation, isOverridableAttribute, isVirtual, setSpecifiedMappingKey |
| Methods inherited from interface org.eclipse.jpt.core.JpaStructureNode |
|---|
dispose, getContentType, getId, 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.XmlContextNode |
|---|
getValidationTextRange, validate |
| Field Detail |
|---|
static final java.lang.String JAVA_PERSISTENT_ATTRIBUTE_PROPERTY
| Method Detail |
|---|
OrmAttributeMapping getMapping()
PersistentAttribute
getMapping in interface PersistentAttributeOrmAttributeMapping getSpecifiedMapping()
PersistentAttribute
getSpecifiedMapping in interface PersistentAttributeOrmTypeMapping getTypeMapping()
getTypeMapping in interface PersistentAttributeOrmPersistentType getPersistentType()
getPersistentType in interface PersistentAttributeJavaPersistentAttribute getJavaPersistentAttribute()
void makeVirtual()
OrmPersistentType
and removed from the orm.xml file.
If the persistent attribute is already virtual, an IllegalStateException is thrown
PersistentAttribute.isVirtual()void makeSpecified()
PersistentAttribute.isVirtual()void makeSpecified(java.lang.String mappingKey)
PersistentAttribute.isVirtual()boolean contains(int textOffset)
void nameChanged(java.lang.String oldName,
java.lang.String newName)
void update()
JpaProject.update()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||