|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PersistentType
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 | |
|---|---|
static interface |
PersistentType.Owner
|
| Field Summary | |
|---|---|
static java.lang.String |
ATTRIBUTES_LIST
|
static java.lang.String |
MAPPING_PROPERTY
|
static java.lang.String |
NAME_PROPERTY
|
static java.lang.String |
PARENT_PERSISTENT_TYPE_PROPERTY
|
| Fields inherited from interface org.eclipse.jpt.core.context.AccessHolder |
|---|
DEFAULT_ACCESS_PROPERTY, SPECIFIED_ACCESS_PROPERTY |
| Method Summary | ||
|---|---|---|
java.util.Iterator<java.lang.String> |
allAttributeNames()
|
|
java.util.Iterator<PersistentAttribute> |
allAttributes()
Return a read-only iterator of the all the PersistentAttributes
in the hierarchy |
|
java.util.Iterator<PersistentType> |
ancestors()
Excludes the present persistent type. |
|
java.util.Iterator<java.lang.String> |
attributeNames()
|
|
|
attributes()
Return a read-only iterator of the contained PersistentAttribute |
|
int |
attributesSize()
Return the size of PersistentAttributes list |
|
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()
Return the persistent type's [fully-qualified] name. |
|
AccessType |
getOwnerDefaultAccess()
Return the client persistent type's default access type; null if there is no such access default. |
|
AccessType |
getOwnerOverrideAccess()
Return the access type that overrides the client persistent type's access type; null if there is no such access override |
|
PersistentType |
getParentPersistentType()
Return the parent PersistentType from the inheritance hierarchy. |
|
java.lang.String |
getShortName()
Return the persistent type's short name. |
|
java.util.Iterator<PersistentType> |
inheritanceHierarchy()
Includes the present persistent type. |
|
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)
|
|
void |
validate(java.util.List<org.eclipse.wst.validation.internal.provisional.core.IMessage> messages,
org.eclipse.wst.validation.internal.provisional.core.IReporter reporter)
Add to the list of current validation messages |
|
| 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 |
| Field Detail |
|---|
static final java.lang.String NAME_PROPERTY
static final java.lang.String MAPPING_PROPERTY
static final java.lang.String PARENT_PERSISTENT_TYPE_PROPERTY
static final java.lang.String ATTRIBUTES_LIST
| Method Detail |
|---|
java.lang.String getName()
getShortName()java.lang.String getShortName()
getName()AccessType getOwnerOverrideAccess()
AccessType getOwnerDefaultAccess()
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()
PersistentAttributes list
java.util.Iterator<java.lang.String> attributeNames()
java.util.Iterator<PersistentAttribute> allAttributes()
PersistentAttributes
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()
java.util.Iterator<PersistentType> ancestors()
void validate(java.util.List<org.eclipse.wst.validation.internal.provisional.core.IMessage> messages,
org.eclipse.wst.validation.internal.provisional.core.IReporter reporter)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||