public abstract class CascadableField extends AbstractField
Modifier and Type | Method and Description |
---|---|
boolean |
generateFlushCheck(JavaWriter out)
Generates the flush check for this child.
|
protected void |
generateInternalCascade(JavaWriter out,
java.lang.String aConn,
CascadeType cascadeType) |
void |
generatePostCascade(JavaWriter out,
java.lang.String aConn,
CascadeType cascadeType)
Generates the (post) cascade operation from
parent to this child.
|
void |
generatePreCascade(JavaWriter out,
java.lang.String aConn,
CascadeType cascadeType)
Generates the (pre) cascade operation from
parent to this child.
|
CascadeType[] |
getCascadeType()
Sets the cascade types for this field
from parent to child.
|
boolean |
isCascadable()
Returns true if the field is cascadable.
|
boolean |
isCascade(CascadeType cascade)
Returns true if this is cascadable
from parent to child.
|
void |
setCascadeType(CascadeType[] cascadeTypes)
Sets the cascade types for this field
from parent to child.
|
childDelete, createExpr, generateCastFromObject, generateCopyLoadObject, generateCopyUpdateObject, generateCreateTableSQL, generateDetach, generateDumpRelationships, generateEquals, generateExpire, generateGet, generateGet, generateGetterMethod, generateInsert, generateInsertColumns, generateInsertSet, generateInvalidateForeign, generateJavaSelect, generateLoad, generateLoadFromObject, generateLoadNative, generateLoadSelect, generateMergeFrom, generateNativeColumnNames, generateNull, generatePostConstructor, generatePostDelete, generatePostLoadSelect, generatePreDelete, generatePrePersist, generatePrologue, generateSelect, generateSet, generateSet, generateSetterMethod, generateStatementSet, generateStatementSet, generateSuperGetter, generateSuperGetterMethod, generateSuperSetter, generateSuperSetterMethod, generateUpdate, generateUpdate, generateUpdateFromObject, generateUpdateSet, generateWhere, getBeanClass, getColumn, getCreateLoadMask, getEntitySourceType, getFieldName, getGetterMethod, getGetterName, getIndex, getJavaClass, getJavaType, getJavaTypeName, getLoadGroupIndex, getName, getPersistenceUnit, getSetterMethod, getSetterName, getSourceType, getTable, hasLoadGroup, init, isAbstract, isFieldAccess, isKey, isLazy, isOverride, isUpdateable, link, override, setColumn, setIndex, setJavaType, setLazy, setLoadGroupIndex, setName, setOverride, toObject, toString
public boolean isCascade(CascadeType cascade)
public void setCascadeType(CascadeType[] cascadeTypes)
public CascadeType[] getCascadeType()
public void generatePreCascade(JavaWriter out, java.lang.String aConn, CascadeType cascadeType) throws java.io.IOException
java.io.IOException
public void generatePostCascade(JavaWriter out, java.lang.String aConn, CascadeType cascadeType) throws java.io.IOException
java.io.IOException
public boolean isCascadable()
isCascadable
in interface AmberField
isCascadable
in class AbstractField
public boolean generateFlushCheck(JavaWriter out) throws java.io.IOException
java.io.IOException
protected void generateInternalCascade(JavaWriter out, java.lang.String aConn, CascadeType cascadeType) throws java.io.IOException
java.io.IOException