public class InheritInfo extends Object
| Constructor and Description |
|---|
InheritInfo(InheritInfo r,
InheritInfo parent,
DeployInheritInfo deploy) |
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(InheritInfo childInfo)
Add a child node.
|
void |
addChildrenProperties(SqlTreeProperties selectProps)
Add the local properties for each sub class below this one.
|
Object |
createBean()
Create an EntityBean for this type.
|
BeanProperty |
findSubTypeProperty(String propertyName)
Get the bean property additionally looking in the sub types.
|
BeanDescriptor<?> |
getBeanDescriptor()
Return the associated BeanDescriptor for this node.
|
String |
getDiscriminatorColumn()
Return the column name of the discriminator.
|
int |
getDiscriminatorLength()
Return the length of the discriminator column.
|
String |
getDiscriminatorStringValue()
Return the discriminator value for this node.
|
int |
getDiscriminatorType()
Return the sql type of the discriminator value.
|
Object |
getDiscriminatorValue() |
IdBinder |
getIdBinder()
Return the IdBinder for this type.
|
InheritInfo |
getParent()
Return the parent node.
|
InheritInfo |
getRoot()
Return the root node of the tree.
|
Class<?> |
getType()
return the type.
|
InheritInfo |
getType(String discValue)
For a discriminator get the inheritance information for this tree.
|
String |
getWhere()
Return the derived where for the discriminator.
|
boolean |
isAbstract()
Return true if this is abstract node.
|
boolean |
isDeleteRecurseSkippable()
return true if anything in the inheritance hierarchy has a relationship
with a delete cascade on it.
|
boolean |
isRoot()
Return true if this is the root node.
|
boolean |
isSaveRecurseSkippable()
return true if anything in the inheritance hierarchy has a relationship
with a save cascade on it.
|
InheritInfo |
readType(Class<?> beanType)
Return the associated InheritInfo for this bean type.
|
InheritInfo |
readType(DbReadContext ctx)
Return the associated InheritInfo for this DB row read.
|
InheritInfo |
readType(String discValue)
Return the associated InheritInfo for this discriminator value.
|
void |
setDescriptor(BeanDescriptor<?> descriptor)
Set the descriptor for this node.
|
String |
toString() |
void |
visitChildren(InheritInfoVisitor visitor)
Visit all the children in the inheritance tree.
|
public InheritInfo(InheritInfo r, InheritInfo parent, DeployInheritInfo deploy)
public void visitChildren(InheritInfoVisitor visitor)
public boolean isSaveRecurseSkippable()
public boolean isDeleteRecurseSkippable()
public void setDescriptor(BeanDescriptor<?> descriptor)
public BeanDescriptor<?> getBeanDescriptor()
public BeanProperty findSubTypeProperty(String propertyName)
public void addChildrenProperties(SqlTreeProperties selectProps)
public InheritInfo readType(DbReadContext ctx) throws SQLException
SQLExceptionpublic InheritInfo readType(String discValue)
public InheritInfo readType(Class<?> beanType)
public Object createBean()
public IdBinder getIdBinder()
public Class<?> getType()
public InheritInfo getRoot()
The root has a map of discriminator values to types.
public InheritInfo getParent()
public boolean isAbstract()
public boolean isRoot()
public InheritInfo getType(String discValue)
public void addChild(InheritInfo childInfo)
public String getWhere()
public String getDiscriminatorColumn()
public int getDiscriminatorType()
public int getDiscriminatorLength()
public String getDiscriminatorStringValue()
public Object getDiscriminatorValue()
Copyright © 2014. All Rights Reserved.