a. Interface descriptors can be used to query across a set of classes that do not share a table.
b. As a target of a variable one to one mapping.
| Modifier and Type | Field and Description |
|---|---|
| protected List | |
| protected ClassDescriptor | |
| protected Class | |
| protected String | |
| protected List | |
| protected List | |
| protected List |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addChildDescriptor(ClassDescriptor childDescriptor)
INTERNAL: Add child descriptor to the parent descriptor. |
| public void | |
| public void | |
| public void | |
| public void | convertClassNamesToClasses(ClassLoader classLoader)
INTERNAL: Convert all the class-name-based settings in this InheritancePolicy to actual class-based settings. |
| public List | |
| protected ClassDescriptor | |
| public <T> Class | |
| public String | |
| public List | |
| public List | |
| public List | |
| public boolean | |
| public void | |
| public boolean | |
| public boolean | |
| protected ObjectLevelReadQuery | |
| protected Object | |
| public Object | selectAllObjectsUsingMultipleTableSubclassRead(ReadAllQuery query)
INTERNAL: Select all objects for an interface descriptor. |
| protected Object | |
| public Object | selectOneObjectUsingMultipleTableSubclassRead(ReadObjectQuery query)
INTERNAL: Select one object of any concrete subclass. |
| public void | |
| public void | setImplementorDescriptor(Class<?> implementorDescriptor)
INTERNAL: Sets the implementor descriptor class. |
| public void | setImplementorDescriptorClassName(String implementorDescriptorClassName)
INTERNAL: Sets the implementor descriptor class name. |
| public void | |
| public void | |
| public boolean | usesImplementorDescriptor()
INTERNAL: Returns true if this descriptor should be ignored and the implementing descriptor should be used instead. |
| childDescriptors | back to summary |
|---|---|
| protected List<ClassDescriptor> childDescriptors | |
| descriptor | back to summary |
|---|---|
| protected ClassDescriptor descriptor | |
| implementorDescriptor | back to summary |
|---|---|
| protected Class<?> implementorDescriptor | |
| implementorDescriptorClassName | back to summary |
|---|---|
| protected String implementorDescriptorClassName | |
| parentDescriptors | back to summary |
|---|---|
| protected List<ClassDescriptor> parentDescriptors | |
| parentInterfaceNames | back to summary |
|---|---|
| protected List<String> parentInterfaceNames | |
| parentInterfaces | back to summary |
|---|---|
| protected List<Class<?>> parentInterfaces | |
| InterfacePolicy | back to summary |
|---|---|
| public InterfacePolicy() INTERNAL: Create a new policy. Only descriptor involved in interface should have a policy. | |
| InterfacePolicy | back to summary |
|---|---|
| public InterfacePolicy(ClassDescriptor descriptor) INTERNAL: Create a new policy. Only descriptor involved in interface should have a policy. | |
| addChildDescriptor | back to summary |
|---|---|
| public void addChildDescriptor(ClassDescriptor childDescriptor) INTERNAL: Add child descriptor to the parent descriptor. | |
| addParentDescriptor | back to summary |
|---|---|
| public void addParentDescriptor(ClassDescriptor parentDescriptor) INTERNAL: Add parent descriptor. | |
| addParentInterface | back to summary |
|---|---|
| public void addParentInterface(Class<?> parentInterface) PUBLIC: Add the parent Interface class. This method should be called once for each parent Interface of the Descriptor. | |
| addParentInterfaceName | back to summary |
|---|---|
| public void addParentInterfaceName(String parentInterfaceName) | |
| convertClassNamesToClasses | back to summary |
|---|---|
| public void convertClassNamesToClasses(ClassLoader classLoader) INTERNAL: Convert all the class-name-based settings in this InheritancePolicy to actual class-based settings. This method is used when converting a project that has been built with class names to a project with classes. It will also convert referenced classes to the versions of the classes from the classLoader. | |
| getChildDescriptors | back to summary |
|---|---|
| public List INTERNAL: Return all the child descriptors. | |
| getDescriptor | back to summary |
|---|---|
| protected ClassDescriptor getDescriptor() | |
| getImplementorDescriptor | back to summary |
|---|---|
| public <T> Class INTERNAL: Returns the implementor descriptor class.
| |
| getImplementorDescriptorClassName | back to summary |
|---|---|
| public String getImplementorDescriptorClassName() INTERNAL: Returns the implementor descriptor class name. | |
| getParentDescriptors | back to summary |
|---|---|
| public List INTERNAL: Return all the parent descriptors. | |
| getParentInterfaceNames | back to summary |
|---|---|
| public List | |
| getParentInterfaces | back to summary |
|---|---|
| public List INTERNAL: Return the list of parent interfaces. | |
| hasChild | back to summary |
|---|---|
| public boolean hasChild() INTERNAL: Return if there are any child descriptors. | |
| initialize | back to summary |
|---|---|
| public void initialize(AbstractSession session) INTERNAL: Set the vector to store parent interfaces. | |
| isInterfaceChildDescriptor | back to summary |
|---|---|
| public boolean isInterfaceChildDescriptor() INTERNAL: Check if it is a child descriptor. | |
| isTablePerClassPolicy | back to summary |
|---|---|
| public boolean isTablePerClassPolicy() INTERNAL: | |
| prepareQuery | back to summary |
|---|---|
| protected ObjectLevelReadQuery prepareQuery(ObjectLevelReadQuery query) INTERNAL: Select all objects for a concrete descriptor. | |
| selectAllObjects | back to summary |
|---|---|
| protected Object selectAllObjects(ReadAllQuery query) INTERNAL: Select all objects for a concrete descriptor. | |
| selectAllObjectsUsingMultipleTableSubclassRead | back to summary |
|---|---|
| public Object selectAllObjectsUsingMultipleTableSubclassRead(ReadAllQuery query) throws DatabaseException INTERNAL: Select all objects for an interface descriptor. This is accomplished by selecting for all of the concrete classes and then merging the objects. | |
| selectOneObject | back to summary |
|---|---|
| protected Object selectOneObject(ReadObjectQuery query) throws DescriptorException INTERNAL: Select one object of any concrete subclass. | |
| selectOneObjectUsingMultipleTableSubclassRead | back to summary |
|---|---|
| public Object selectOneObjectUsingMultipleTableSubclassRead(ReadObjectQuery query) throws DatabaseException, QueryException INTERNAL: Select one object of any concrete subclass. | |
| setDescriptor | back to summary |
|---|---|
| public void setDescriptor(ClassDescriptor descriptor) INTERNAL: Set the descriptor. | |
| setImplementorDescriptor | back to summary |
|---|---|
| public void setImplementorDescriptor(Class<?> implementorDescriptor) INTERNAL: Sets the implementor descriptor class. | |
| setImplementorDescriptorClassName | back to summary |
|---|---|
| public void setImplementorDescriptorClassName(String implementorDescriptorClassName) INTERNAL: Sets the implementor descriptor class name. | |
| setParentInterfaceNames | back to summary |
|---|---|
| public void setParentInterfaceNames(List<String> parentInterfaceNames) | |
| setParentInterfaces | back to summary |
|---|---|
| public void setParentInterfaces(List<Class<?>> parentInterfaces) Set the Vector to store parent interfaces. | |
| usesImplementorDescriptor | back to summary |
|---|---|
| public boolean usesImplementorDescriptor() INTERNAL: Returns true if this descriptor should be ignored and the implementing descriptor should be used instead. | |