|
Oracle Application Server TopLink API Reference 10g Release 2 (10.1.2) B15903-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.toplink.publicinterface.InheritancePolicy
Purpose: Allows customization of an object's inheritance.
Method Summary | |
void |
addClassIndicator(java.lang.Class childClass, java.lang.Object typeValue) PUBLIC: Add a class indicator for the root classes subclass. |
void |
dontReadSubclassesOnQueries() PUBLIC: Set the descriptor to only read instance of itself when queried. |
void |
dontUseClassNameAsIndicator() PUBLIC: Set the descriptor not to use the class' full name as the indicator. |
java.lang.String |
getClassExtractionMethodName() PUBLIC: A class extraction method can be registered with the descriptor to override the default inheritance mechanism. |
java.util.Vector |
getClassIndicatorAssociations() PUBLIC: Set the class indicator associations. |
java.lang.String |
getClassIndicatorFieldName() PUBLIC: Return the class indicator field name. |
Expression |
getOnlyInstancesExpression() PUBLIC: REturn the 'only instances expression'. |
java.lang.Class |
getParentClass() PUBLIC: Return the parent class. |
java.lang.String |
getReadAllSubclassesViewName() PUBLIC: The view can be used to optimize/customize the query for all subclasses where they have multiple tables. |
Expression |
getWithAllSubclassesExpression() PUBLIC: Return the Expression which gets all subclasses. |
void |
readSubclassesOnQueries() PUBLIC: Set the descriptor to read instance of itself and its subclasses when queried. |
void |
setAlwaysUseOuterJoinForClassType(boolean choice) PUBLIC: Sets the inheritance policy to always use an outer join when quering across a relationship of class. |
void |
setClassExtractionMethodName(java.lang.String staticClassClassExtractionMethod) PUBLIC: A class extraction method can be registered with the descriptor to override the default inheritance mechanism. |
void |
setClassIndicatorAssociations(java.util.Vector classIndicatorAssociations) PUBLIC: Set the class indicator associations. |
void |
setClassIndicatorFieldName(java.lang.String fieldName) PUBLIC: To set the class indicator field name. |
void |
setClassIndicatorMapping(java.util.Hashtable classIndicatorMapping) PUBLIC: Set the association of indicators and classes. |
void |
setOnlyInstancesExpression(Expression onlyInstancesExpression) PUBLIC: Sets the expression used to select instance of the class only. |
void |
setParentClass(java.lang.Class parentClass) PUBLIC: Set the parent class. |
void |
setReadAllSubclassesViewName(java.lang.String readAllSubclassesViewName) PUBLIC: The view can be used to optimize/customize the query for all subclasses where they have multiple tables. |
void |
setShouldReadSubclasses(boolean shouldReadSubclasses) PUBLIC: Set the descriptor to read instance of itself and its subclasses when queried. |
void |
setShouldReadSubclasses(java.lang.Boolean shouldReadSubclasses) PUBLIC: Set the descriptor to read instance of itself and its subclasses when queried. |
void |
setShouldUseClassNameAsIndicator(boolean shouldUseClassNameAsIndicator) PUBLIC: Set if the descriptor uses the classes fully qualified name as the indicator. |
void |
setWithAllSubclassesExpression(Expression withAllSubclassesExpression) PUBLIC: Sets the expression to be used for querying for a class and all its subclasses. |
boolean |
shouldAlwaysUseOuterJoin() PUBLIC: returns if the inheritance policy will always use an outerjoin when selecting class type |
boolean |
shouldReadSubclasses() PUBLIC: Return true if this descriptor should read instances of itself and subclasses on queries. |
java.lang.Boolean |
shouldReadSubclassesValue() PUBLIC: Return true if this descriptor should read instances of itself and subclasses on queries. |
boolean |
shouldUseClassNameAsIndicator() PUBLIC: Return true if the descriptor use the classes full name as the indicator. |
void |
useClassNameAsIndicator() PUBLIC: Set the descriptor to use the classes full name as the indicator. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
public void addClassIndicator(java.lang.Class childClass, java.lang.Object typeValue)
public void dontReadSubclassesOnQueries()
public void dontUseClassNameAsIndicator()
public java.lang.String getClassExtractionMethodName()
setWithAllSubclassesExpression(Expression)
, setOnlyInstancesExpression(Expression)
public java.util.Vector getClassIndicatorAssociations()
public java.lang.String getClassIndicatorFieldName()
public Expression getOnlyInstancesExpression()
public java.lang.Class getParentClass()
public java.lang.String getReadAllSubclassesViewName()
public Expression getWithAllSubclassesExpression()
public void readSubclassesOnQueries()
public void setClassExtractionMethodName(java.lang.String staticClassClassExtractionMethod)
setWithAllSubclassesExpression(Expression)
, setOnlyInstancesExpression(Expression)
public void setClassIndicatorAssociations(java.util.Vector classIndicatorAssociations)
public void setClassIndicatorFieldName(java.lang.String fieldName)
public void setClassIndicatorMapping(java.util.Hashtable classIndicatorMapping)
public void setOnlyInstancesExpression(Expression onlyInstancesExpression)
public void setParentClass(java.lang.Class parentClass)
public void setReadAllSubclassesViewName(java.lang.String readAllSubclassesViewName)
public void setShouldReadSubclasses(java.lang.Boolean shouldReadSubclasses)
public void setShouldReadSubclasses(boolean shouldReadSubclasses)
public void setShouldUseClassNameAsIndicator(boolean shouldUseClassNameAsIndicator)
public void setAlwaysUseOuterJoinForClassType(boolean choice)
public void setWithAllSubclassesExpression(Expression withAllSubclassesExpression)
public boolean shouldReadSubclasses()
public java.lang.Boolean shouldReadSubclassesValue()
public boolean shouldAlwaysUseOuterJoin()
public boolean shouldUseClassNameAsIndicator()
public void useClassNameAsIndicator()
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |