|
EclipseLink 2.3.2, build 'v20111125-r10461' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.persistence.descriptors.ClassDescriptor org.eclipse.persistence.descriptors.RelationalDescriptor
public class RelationalDescriptor
Purpose: EclipseLink has been designed to take advantage of the similarities between relational databases and objects while accommodating for their differences, providing an object oriented wrapper for relational databases. This is accomplished through the use of Descriptors. A descriptor is a pure specification class with all its behavior deputized to DescriptorEventManager, DescriptorQueryManager and ObjectBuilder. Look at the following variables for the list of specification on the descriptor.
A Descriptor is a set of mappings that describe how an objects's data is to be represented in a relational database. It contains mappings from the class instance variables to the table's fields, as well as the transformation routines necessary for storing and retrieving attributes. As such the descriptor acts as the link between the Java object and its database representation.
Every descriptor is initialized with the following information:
This descriptor subclass should be used for object-relational mapping, and allows for other datatype mappings to be done in the XML, EIS and OR sibling classes.
DescriptorEventManager
,
DescriptorQueryManager
,
InheritancePolicy
,
InterfacePolicy
,
Serialized FormField Summary | |
---|---|
protected java.util.List<org.eclipse.persistence.internal.descriptors.VirtualAttributeMethodInfo> |
virtualAttributeMethods
A list of methods that are used by virtual mappings. |
protected boolean |
weavingUsesPropertyAccess
This flag stores whether this descriptor is using Property access based on JPA semantics. |
Constructor Summary | |
---|---|
RelationalDescriptor()
PUBLIC: Return a new descriptor. |
Method Summary | |
---|---|
void |
addTableName(java.lang.String tableName)
PUBLIC: Specify the table name for the class of objects the receiver describes. |
java.lang.String |
getTableName()
PUBLIC: Return the name of the descriptor's first table. |
java.util.Vector |
getTableNames()
PUBLIC: Return the table names. |
java.util.List<org.eclipse.persistence.internal.descriptors.VirtualAttributeMethodInfo> |
getVirtualAttributeMethods()
INTERNAL: Return the list of virtual methods sets for this Entity. |
void |
setDefaultTableName(java.lang.String defaultTableName)
PUBLIC: The descriptors default table can be configured if the first table is not desired. |
void |
setTableName(java.lang.String tableName)
PUBLIC: Specify the table name for the class of objects the receiver describes. |
void |
setTableNames(java.util.Vector tableNames)
PUBLIC: Specify the all table names for the class of objects the receiver describes. |
void |
setTableQualifier(java.lang.String tableQualifier)
PUBLIC: Set the table Qualifier for this descriptor. |
void |
setVirtualAttributeMethods(java.util.List<org.eclipse.persistence.internal.descriptors.VirtualAttributeMethodInfo> virtualAttributeMethods)
INTERNAL: Set the list of methods used my mappings with virtual access this list is used to determine which methods to weave |
void |
usePropertyAccessForWeaving()
INTERNAL: Record that this descriptor uses property access. |
boolean |
usesPropertyAccessForWeaving()
INTERNAL: Return whether this descriptor uses property access. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected boolean weavingUsesPropertyAccess
protected java.util.List<org.eclipse.persistence.internal.descriptors.VirtualAttributeMethodInfo> virtualAttributeMethods
Constructor Detail |
---|
public RelationalDescriptor()
Method Detail |
---|
public void addTableName(java.lang.String tableName)
addTableName
in class ClassDescriptor
public java.lang.String getTableName()
getTableName
in class ClassDescriptor
public java.util.Vector getTableNames()
getTableNames
in class ClassDescriptor
public java.util.List<org.eclipse.persistence.internal.descriptors.VirtualAttributeMethodInfo> getVirtualAttributeMethods()
public void setDefaultTableName(java.lang.String defaultTableName)
setDefaultTableName
in class ClassDescriptor
public void setTableName(java.lang.String tableName) throws DescriptorException
setTableName
in class ClassDescriptor
DescriptorException
public void setTableNames(java.util.Vector tableNames)
setTableNames
in class ClassDescriptor
public void setTableQualifier(java.lang.String tableQualifier)
setTableQualifier
in class ClassDescriptor
public void setVirtualAttributeMethods(java.util.List<org.eclipse.persistence.internal.descriptors.VirtualAttributeMethodInfo> virtualAttributeMethods)
public boolean usesPropertyAccessForWeaving()
public void usePropertyAccessForWeaving()
|
EclipseLink 2.3.2, build 'v20111125-r10461' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |