|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface JavaPersistentAttribute
Context Java persistent attribute (field or property).
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 |
JavaPersistentAttribute.JpaContainerDefinition
JPA container definition interface (and null implementation) |
| Field Summary |
|---|
| Fields inherited from interface org.eclipse.jpt.jpa.core.context.ReadOnlyPersistentAttribute |
|---|
DEFAULT_MAPPING_KEY_PROPERTY, MAPPING_PROPERTY, NAME_PROPERTY |
| Fields inherited from interface org.eclipse.jpt.jpa.core.context.AccessHolder |
|---|
DEFAULT_ACCESS_PROPERTY, SPECIFIED_ACCESS_PROPERTY |
| Method Summary | |
|---|---|
boolean |
contains(int offset,
org.eclipse.jdt.core.dom.CompilationUnit astRoot)
Return whether the attribute contains the given offset into its Java source code file. |
Embeddable |
getEmbeddable()
Return the embeddable (type mapping) corresponding to the persistent attribute's type. |
JavaPersistentAttribute.JpaContainerDefinition |
getJpaContainerDefinition()
Return the JpaContainer that corresponds to this attribute's type. |
JavaAttributeMapping |
getMapping()
Return the attribute's mapping. |
java.lang.String |
getMultiReferenceMapKeyTypeName()
If the attribute's type is a map type, return the type parameter that can be used as a key type. |
java.lang.String |
getMultiReferenceTargetTypeName()
If the attribute's type is an appropriate "container" type, return the type parameter that can be used as a target type. |
JavaResourcePersistentAttribute |
getResourcePersistentAttribute()
Return the corresponding resource persistent attribute. |
java.lang.String |
getSingleReferenceTargetTypeName()
Return the attribute's type name if it is valid as a target type (i.e. |
boolean |
isField()
Return whether the attribute is a field (as opposed to a property). |
boolean |
isFinal()
Return whether the attribute is final,
which is problematic. |
boolean |
isProperty()
Return whether the attribute is a property (as opposed to a field). |
boolean |
isPublic()
Return whether the attribute is public,
which is problematic for fields. |
JavaAttributeMapping |
setMappingKey(java.lang.String key)
Set the attribute's mapping. |
boolean |
typeIsBasic()
Return whether the attribute's type is valid for a default basic mapping. |
| Methods inherited from interface org.eclipse.jpt.jpa.core.context.ReadOnlyPersistentAttribute |
|---|
getDefaultMappingKey, getJavaPersistentAttribute, getMappingKey, getName, getOwningPersistentType, getOwningTypeMapping, getPrimaryKeyColumnName, getTypeName, isVirtual |
| Methods inherited from interface org.eclipse.jpt.jpa.core.context.JpaContextNode |
|---|
getContextDefaultDbCatalog, getContextDefaultDbSchema, getContextDefaultDbSchemaContainer, getMappingFileRoot, getPersistenceUnit, getResourceType, synchronizeWithResourceModel, update |
| Methods inherited from interface org.eclipse.jpt.jpa.core.JpaStructureNode |
|---|
dispose, getId, getResourceType, getSelectionTextRange, getStructureNode |
| Methods inherited from interface org.eclipse.jpt.jpa.core.JpaNode |
|---|
getJpaProject, getParent, stateChanged |
| Methods inherited from interface org.eclipse.jpt.common.utility.model.Model |
|---|
addChangeListener, addCollectionChangeListener, addListChangeListener, addPropertyChangeListener, addStateChangeListener, addTreeChangeListener, removeChangeListener, removeCollectionChangeListener, removeListChangeListener, removePropertyChangeListener, removeStateChangeListener, removeTreeChangeListener |
| Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
|---|
getAdapter |
| Methods inherited from interface org.eclipse.jpt.common.core.IResourcePart |
|---|
getResource |
| Methods inherited from interface org.eclipse.jpt.jpa.core.context.AccessHolder |
|---|
getDefaultAccess, getSpecifiedAccess, setSpecifiedAccess |
| Methods inherited from interface org.eclipse.jpt.jpa.core.context.ReadOnlyAccessHolder |
|---|
getAccess |
| Methods inherited from interface org.eclipse.jpt.jpa.core.context.java.JavaJpaContextNode |
|---|
getValidationTextRange, javaCompletionProposals, validate |
| Method Detail |
|---|
JavaAttributeMapping getMapping()
ReadOnlyPersistentAttributenull
(although, it may be a null mapping).
Set the mapping via PersistentAttribute.setMappingKey(String).
getMapping in interface ReadOnlyPersistentAttributeJavaAttributeMapping setMappingKey(java.lang.String key)
PersistentAttributenull, clear the specified mapping,
allowing the attribute's mapping to default (if appropriate).
Return the new mapping (which may be a null mapping).
setMappingKey in interface PersistentAttributeJavaResourcePersistentAttribute getResourcePersistentAttribute()
boolean contains(int offset,
org.eclipse.jdt.core.dom.CompilationUnit astRoot)
Embeddable getEmbeddable()
null if it is not found.
boolean isField()
boolean isProperty()
boolean isPublic()
public,
which is problematic for fields.
boolean isFinal()
final,
which is problematic.
boolean typeIsBasic()
java.lang.String getSingleReferenceTargetTypeName()
java.lang.String getMultiReferenceTargetTypeName()
java.lang.String getMultiReferenceMapKeyTypeName()
JavaPersistentAttribute.JpaContainerDefinition getJpaContainerDefinition()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||