| 
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.Objectorg.eclipse.persistence.descriptors.InterfacePolicy
org.eclipse.persistence.descriptors.TablePerClassPolicy
public class TablePerClassPolicy
Purpose: Provides the functionality to support a TABLE_PER_CLASS inheritance strategy. Resolves relational mappings and querying.
| Field Summary | |
|---|---|
protected  java.util.HashMap<DatabaseMapping,DatabaseQuery> | 
selectionQueriesForAllObjects
Selection queries from read all mappings will be cached and re-used.  | 
| Fields inherited from class org.eclipse.persistence.descriptors.InterfacePolicy | 
|---|
childDescriptors, descriptor, implementorDescriptor, implementorDescriptorClassName, parentDescriptors, parentInterfaceNames, parentInterfaces | 
| Constructor Summary | |
|---|---|
TablePerClassPolicy(ClassDescriptor descriptor)
INTERNAL: Create a new policy.  | 
|
| Method Summary | |
|---|---|
protected  void | 
addSelectionQuery(ForeignReferenceMapping cloneMapping,
                  ForeignReferenceMapping sourceMapping,
                  org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL:  | 
 boolean | 
isTablePerClassPolicy()
INTERNAL:  | 
 void | 
prepareChildrenSelectionQuery(DatabaseMapping sourceMapping,
                              org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL: This method is called from individual mappings during their initialization.  | 
protected  void | 
prepareManyToManySelectionQuery(ManyToManyMapping sourceMapping,
                                org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL:  | 
protected  void | 
prepareOneToManySelectionQuery(OneToManyMapping sourceMapping,
                               org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL:  | 
protected  void | 
prepareOneToOneSelectionQuery(OneToOneMapping sourceMapping,
                              org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL:  | 
protected  void | 
prepareSelectionQuery(DatabaseMapping sourceMapping,
                      org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL: The selection queries are created by cloning the source mapping, updating the necessary database fields on the mapping and then initializing the mapping to create the internal selection query.  | 
protected  java.lang.Object | 
selectAllObjects(ReadAllQuery query)
INTERNAL: Select all objects for a concrete descriptor.  | 
protected  java.lang.Object | 
selectOneObject(ReadObjectQuery query)
INTERNAL: Select one object of any concrete subclass.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
protected java.util.HashMap<DatabaseMapping,DatabaseQuery> selectionQueriesForAllObjects
| Constructor Detail | 
|---|
public TablePerClassPolicy(ClassDescriptor descriptor)
| Method Detail | 
|---|
protected void addSelectionQuery(ForeignReferenceMapping cloneMapping,
                                 ForeignReferenceMapping sourceMapping,
                                 org.eclipse.persistence.internal.sessions.AbstractSession session)
public boolean isTablePerClassPolicy()
isTablePerClassPolicy in class InterfacePolicy
public void prepareChildrenSelectionQuery(DatabaseMapping sourceMapping,
                                          org.eclipse.persistence.internal.sessions.AbstractSession session)
selectAllObjects(ReadAllQuery), 
selectOneObject(ReadObjectQuery)
protected void prepareManyToManySelectionQuery(ManyToManyMapping sourceMapping,
                                               org.eclipse.persistence.internal.sessions.AbstractSession session)
protected void prepareOneToManySelectionQuery(OneToManyMapping sourceMapping,
                                              org.eclipse.persistence.internal.sessions.AbstractSession session)
protected void prepareOneToOneSelectionQuery(OneToOneMapping sourceMapping,
                                             org.eclipse.persistence.internal.sessions.AbstractSession session)
protected void prepareSelectionQuery(DatabaseMapping sourceMapping,
                                     org.eclipse.persistence.internal.sessions.AbstractSession session)
protected java.lang.Object selectAllObjects(ReadAllQuery query)
selectAllObjects in class InterfacePolicy
protected java.lang.Object selectOneObject(ReadObjectQuery query)
                                    throws DescriptorException
selectOneObject in class InterfacePolicyDescriptorException
  | 
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 | ||||||||