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
ConstructorDescriptionTablePerClassPolicy
(ClassDescriptor descriptor) INTERNAL: Create a new policy. -
Method Summary
Modifier and TypeMethodDescriptionboolean
INTERNAL:protected Object
selectAllObjects
(ReadAllQuery query) INTERNAL: Select all objects for a concrete descriptor.protected Object
selectOneObject
(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:
isTablePerClassPolicy
in classInterfacePolicy
-
selectAllObjects
INTERNAL: Select all objects for a concrete descriptor.- Overrides:
selectAllObjects
in classInterfacePolicy
-
selectOneObject
INTERNAL: Select one object of any concrete subclass.- Overrides:
selectOneObject
in classInterfacePolicy
- Throws:
DescriptorException
-