|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PersistentType
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 |
ACCESS_PROPERTY
|
static java.lang.String |
MAPPING_PROPERTY
|
static java.lang.String |
NAME_PROPERTY
|
static java.lang.String |
PARENT_PERSISTENT_TYPE_PROPERTY
|
static java.lang.String |
SPECIFIED_ATTRIBUTES_LIST
|
Method Summary | ||
---|---|---|
void |
addToMessages(java.util.List<org.eclipse.wst.validation.internal.provisional.core.IMessage> messages)
Add to the list of current validation messages |
|
java.util.Iterator<java.lang.String> |
allAttributeNames()
|
|
java.util.Iterator<PersistentAttribute> |
allAttributes()
Return a read-only iterator of the all the PersistentAttribute s
in the hierarchy |
|
java.util.Iterator<java.lang.String> |
attributeNames()
|
|
|
attributes()
Return a read-only iterator of the contained PersistentAttribute |
|
int |
attributesSize()
Return the size of PersistentAttribute s list |
|
AccessType |
getAccess()
|
|
PersistentAttribute |
getAttributeNamed(java.lang.String attributeName)
Return the attribute named attributeName if
it exists locally on this type |
|
TypeMapping |
getMapping()
|
|
java.lang.String |
getMappingKey()
|
|
java.lang.String |
getName()
|
|
PersistentType |
getParentPersistentType()
Return the parent PersistentType from the inheritance hierarchy. |
|
java.util.Iterator<PersistentType> |
inheritanceHierarchy()
|
|
boolean |
isMapped()
|
|
PersistentAttribute |
resolveAttribute(java.lang.String attributeName)
Resolve and return the attribute named attributeName if it
is distinct and exists within the context of this type |
|
void |
setMappingKey(java.lang.String key)
|
Methods inherited from interface org.eclipse.jpt.core.context.JpaContextNode |
---|
getEntityMappings, getOrmPersistentType, getPersistenceUnit |
Methods inherited from interface org.eclipse.jpt.core.JpaNode |
---|
getJpaProject, getParent, getResource |
Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
---|
getAdapter |
Methods inherited from interface org.eclipse.jpt.core.JpaStructureNode |
---|
dispose, getId, getSelectionTextRange, getStructureNode |
Methods inherited from interface org.eclipse.jpt.core.JpaNode |
---|
getJpaProject, getParent, getResource |
Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
---|
getAdapter |
Field Detail |
---|
static final java.lang.String NAME_PROPERTY
static final java.lang.String ACCESS_PROPERTY
static final java.lang.String MAPPING_PROPERTY
static final java.lang.String PARENT_PERSISTENT_TYPE_PROPERTY
static final java.lang.String SPECIFIED_ATTRIBUTES_LIST
Method Detail |
---|
java.lang.String getName()
AccessType getAccess()
TypeMapping getMapping()
java.lang.String getMappingKey()
void setMappingKey(java.lang.String key)
boolean isMapped()
PersistentType getParentPersistentType()
PersistentType
from the inheritance hierarchy.
If the java inheritance parent is not a PersistentType
then continue
up the hierarchy(the JPA spec allows non-persistent types to be part of the hierarchy.)
Return null if this persistentType is the root persistent type.
Example:
@Entity public abstract class Model {} public abstract class Animal extends Model {} @Entity public class Cat extends Animal {}If this is the Cat JavaPersistentType then parentPersistentType is the Model JavaPersistentType The parentPersistentType could be found in java or xml.
<T extends PersistentAttribute> java.util.ListIterator<T> attributes()
PersistentAttribute
int attributesSize()
PersistentAttribute
s list
java.util.Iterator<java.lang.String> attributeNames()
java.util.Iterator<PersistentAttribute> allAttributes()
PersistentAttribute
s
in the hierarchy
java.util.Iterator<java.lang.String> allAttributeNames()
PersistentAttribute getAttributeNamed(java.lang.String attributeName)
attributeName
if
it exists locally on this type
PersistentAttribute resolveAttribute(java.lang.String attributeName)
attributeName
if it
is distinct and exists within the context of this type
java.util.Iterator<PersistentType> inheritanceHierarchy()
void addToMessages(java.util.List<org.eclipse.wst.validation.internal.provisional.core.IMessage> messages)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |