Class TablePerClassPolicy
- java.lang.Object
-
- org.eclipse.persistence.descriptors.InterfacePolicy
-
- org.eclipse.persistence.descriptors.TablePerClassPolicy
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
public class TablePerClassPolicy extends InterfacePolicy
Purpose: Provides the functionality to support a TABLE_PER_CLASS inheritance strategy. Resolves relational mappings and querying.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.eclipse.persistence.descriptors.InterfacePolicy
childDescriptors, descriptor, implementorDescriptor, implementorDescriptorClassName, parentDescriptors, parentInterfaceNames, parentInterfaces
-
-
Constructor Summary
Constructors Constructor Description TablePerClassPolicy(ClassDescriptor descriptor)
INTERNAL: Create a new policy.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isTablePerClassPolicy()
INTERNAL: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 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 Detail
-
TablePerClassPolicy
public TablePerClassPolicy(ClassDescriptor descriptor)
INTERNAL: Create a new policy. Only descriptors involved in inheritance should have a policy.
-
-
Method Detail
-
isTablePerClassPolicy
public boolean isTablePerClassPolicy()
INTERNAL:- Overrides:
isTablePerClassPolicy
in classInterfacePolicy
-
selectAllObjects
protected java.lang.Object selectAllObjects(ReadAllQuery query)
INTERNAL: Select all objects for a concrete descriptor.- Overrides:
selectAllObjects
in classInterfacePolicy
-
selectOneObject
protected java.lang.Object selectOneObject(ReadObjectQuery query) throws DescriptorException
INTERNAL: Select one object of any concrete subclass.- Overrides:
selectOneObject
in classInterfacePolicy
- Throws:
DescriptorException
-
-