public class TablePerClassPolicy extends InterfacePolicy
Purpose: Provides the functionality to support a TABLE_PER_CLASS inheritance strategy. Resolves relational mappings and querying.
childDescriptors, descriptor, implementorDescriptor, implementorDescriptorClassName, parentDescriptors, parentInterfaceNames, parentInterfaces
Constructor and Description |
---|
TablePerClassPolicy(ClassDescriptor descriptor)
INTERNAL:
Create a new policy.
|
Modifier and Type | Method and 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.
|
addChildDescriptor, addParentDescriptor, addParentInterface, addParentInterfaceName, convertClassNamesToClasses, getChildDescriptors, getDescriptor, getImplementorDescriptor, getImplementorDescriptorClassName, getParentDescriptors, getParentInterfaceNames, getParentInterfaces, hasChild, initialize, isInterfaceChildDescriptor, prepareQuery, selectAllObjectsUsingMultipleTableSubclassRead, selectOneObjectUsingMultipleTableSubclassRead, setDescriptor, setImplementorDescriptor, setImplementorDescriptorClassName, setParentInterfaceNames, setParentInterfaces, usesImplementorDescriptor
public TablePerClassPolicy(ClassDescriptor descriptor)
public boolean isTablePerClassPolicy()
isTablePerClassPolicy
in class InterfacePolicy
protected java.lang.Object selectAllObjects(ReadAllQuery query)
selectAllObjects
in class InterfacePolicy
protected java.lang.Object selectOneObject(ReadObjectQuery query) throws DescriptorException
selectOneObject
in class InterfacePolicy
DescriptorException