public class VersionField extends PropertyField
Constructor and Description |
---|
VersionField(EntityType entityType) |
VersionField(EntityType entityType,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
void |
generateIncrementVersion(JavaWriter out)
Generates the increment version.
|
java.lang.String |
generateIsNull()
Generates the is null test.
|
java.lang.String |
generateMatchArgWhere(java.lang.String id)
Returns the where code
|
void |
generatePostConstructor(JavaWriter out)
Generates the post constructor initialization.
|
void |
generateSetVersion(JavaWriter out,
java.lang.String pstmt,
java.lang.String index)
Generates the set version clause.
|
void |
generateUpdate(CharBuffer sql)
Generates the update set clause
|
void |
generateUpdate(JavaWriter out,
java.lang.String maskVar,
java.lang.String pstmt,
java.lang.String index)
Generates loading cache
|
createExpr, generateGetterMethod, generateInsertColumns, generateInsertSet, generateLoad, generateLoadNative, generateLoadSelect, generateNativeColumnNames, generateNull, generateSelect, generateSetterMethod, generateStatementSet, generateUpdateSet, generateWhere, getColumn, getFieldName, getRelatedSourceType, getTable, getType, init, isInsert, isUpdate, override, setColumn, setInsert, setType, setUpdate
childDelete, generateCastFromObject, generateCopyLoadObject, generateCopyUpdateObject, generateCreateTableSQL, generateDetach, generateDumpRelationships, generateEquals, generateExpire, generateGet, generateGet, generateInsert, generateInvalidateForeign, generateJavaSelect, generateLoadFromObject, generateMergeFrom, generatePostDelete, generatePostLoadSelect, generatePreDelete, generatePrePersist, generatePrologue, generateSet, generateSet, generateStatementSet, generateSuperGetter, generateSuperGetterMethod, generateSuperSetter, generateSuperSetterMethod, generateUpdateFromObject, getBeanClass, getCreateLoadMask, getEntitySourceType, getGetterMethod, getGetterName, getIndex, getJavaClass, getJavaType, getJavaTypeName, getLoadGroupIndex, getName, getPersistenceUnit, getSetterMethod, getSetterName, getSourceType, hasLoadGroup, isAbstract, isCascadable, isFieldAccess, isKey, isLazy, isOverride, isUpdateable, link, setIndex, setJavaType, setLazy, setLoadGroupIndex, setName, setOverride, toObject, toString
public VersionField(EntityType entityType, java.lang.String name) throws ConfigException
ConfigException
public VersionField(EntityType entityType)
public java.lang.String generateIsNull()
public void generateIncrementVersion(JavaWriter out) throws java.io.IOException
java.io.IOException
public java.lang.String generateMatchArgWhere(java.lang.String id)
public void generatePostConstructor(JavaWriter out) throws java.io.IOException
generatePostConstructor
in interface AmberField
generatePostConstructor
in class AbstractField
java.io.IOException
public void generateSetVersion(JavaWriter out, java.lang.String pstmt, java.lang.String index) throws java.io.IOException
java.io.IOException
public void generateUpdate(CharBuffer sql)
generateUpdate
in interface AmberField
generateUpdate
in class PropertyField
public void generateUpdate(JavaWriter out, java.lang.String maskVar, java.lang.String pstmt, java.lang.String index) throws java.io.IOException
generateUpdate
in interface AmberField
generateUpdate
in class AbstractField
java.io.IOException