Class TablePerClassPolicy
java.lang.Object
org.eclipse.persistence.descriptors.InterfacePolicy
org.eclipse.persistence.descriptors.TablePerClassPolicy
- All Implemented Interfaces:
Serializable,Cloneable
Purpose: Provides the functionality to support a TABLE_PER_CLASS inheritance strategy. Resolves relational mappings and querying.
- See Also:
-
Field Summary
Fields inherited from class org.eclipse.persistence.descriptors.InterfacePolicy
childDescriptors, descriptor, implementorDescriptor, implementorDescriptorClassName, parentDescriptors, parentInterfaceNames, parentInterfaces -
Constructor Summary
ConstructorsConstructorDescriptionTablePerClassPolicy(ClassDescriptor descriptor) INTERNAL: Create a new policy. -
Method Summary
Modifier and TypeMethodDescriptionbooleanINTERNAL:protected ObjectselectAllObjects(ReadAllQuery query) INTERNAL: Select all objects for a concrete descriptor.protected ObjectselectOneObject(ReadObjectQuery query) INTERNAL: Select one object of any concrete subclass.Methods inherited from class org.eclipse.persistence.descriptors.InterfacePolicy
addChildDescriptor, addParentDescriptor, addParentInterface, addParentInterfaceName, convertClassNamesToClasses, getChildDescriptors, getDescriptor, getImplementorDescriptor, getImplementorDescriptorClassName, getParentDescriptors, getParentInterfaceNames, getParentInterfaces, hasChild, initialize, isInterfaceChildDescriptor, prepareQuery, selectAllObjectsUsingMultipleTableSubclassRead, selectOneObjectUsingMultipleTableSubclassRead, setDescriptor, setImplementorDescriptor, setImplementorDescriptorClassName, setParentInterfaceNames, setParentInterfaces, usesImplementorDescriptor
-
Constructor Details
-
TablePerClassPolicy
INTERNAL: Create a new policy. Only descriptors involved in inheritance should have a policy.
-
-
Method Details
-
isTablePerClassPolicy
public boolean isTablePerClassPolicy()INTERNAL:- Overrides:
isTablePerClassPolicyin classInterfacePolicy
-
selectAllObjects
INTERNAL: Select all objects for a concrete descriptor.- Overrides:
selectAllObjectsin classInterfacePolicy
-
selectOneObject
INTERNAL: Select one object of any concrete subclass.- Overrides:
selectOneObjectin classInterfacePolicy- Throws:
DescriptorException
-