public class EntityMapField extends AbstractField
Modifier and Type | Field and Description |
---|---|
protected static java.util.logging.Logger |
log |
Constructor and Description |
---|
EntityMapField(EntityType entityType) |
Modifier and Type | Method and Description |
---|---|
void |
generateCopyLoadObject(JavaWriter out,
java.lang.String dst,
java.lang.String src,
int loadIndex)
Updates the cached copy.
|
void |
generateCopyUpdateObject(JavaWriter out,
java.lang.String dst,
java.lang.String src,
int updateIndex)
Updates the cached copy.
|
void |
generateGetterMethod(JavaWriter out)
Generates the set property.
|
void |
generateLoadFromObject(JavaWriter out,
java.lang.String obj)
Generates loading cache
|
java.lang.String |
generateLoadSelect(java.lang.String id)
Generates the select clause.
|
void |
generateSuperGetterMethod(JavaWriter out)
Generates the get property.
|
void |
generateSuperSetterMethod(JavaWriter out)
Generates the get property.
|
void |
generateUpdate(JavaWriter out,
java.lang.String mask,
java.lang.String pstmt,
java.lang.String index)
Generates loading cache
|
void |
generateUpdateFromObject(JavaWriter out,
java.lang.String obj)
Generates loading cache
|
java.util.ArrayList<AmberColumn> |
getIndexColumns()
Sets the index columns.
|
boolean |
isUpdateable()
Returns true if the methods are abstract.
|
void |
setId(IdField id)
Sets the id field.
|
void |
setIndex(IdField index)
Sets the index field.
|
void |
setIndexColumns(java.util.ArrayList<AmberColumn> columns)
Sets the index columns.
|
void |
setMapMethod(JMethod method)
Sets the map method.
|
void |
setName(java.lang.String name)
Sets the field name.
|
void |
setTargetType(EntityType type)
Sets the target type.
|
childDelete, createExpr, generateCastFromObject, generateCreateTableSQL, generateDetach, generateDumpRelationships, generateEquals, generateExpire, generateGet, generateGet, generateInsert, generateInsertColumns, generateInsertSet, generateInvalidateForeign, generateJavaSelect, generateLoad, generateLoadNative, generateLoadSelect, generateMergeFrom, generateNativeColumnNames, generateNull, generatePostConstructor, generatePostDelete, generatePostLoadSelect, generatePreDelete, generatePrePersist, generatePrologue, generateSelect, generateSet, generateSet, generateSetterMethod, generateStatementSet, generateStatementSet, generateSuperGetter, generateSuperSetter, generateUpdate, generateUpdateSet, generateWhere, getBeanClass, getColumn, getCreateLoadMask, getEntitySourceType, getFieldName, getGetterMethod, getGetterName, getIndex, getJavaClass, getJavaType, getJavaTypeName, getLoadGroupIndex, getName, getPersistenceUnit, getSetterMethod, getSetterName, getSourceType, getTable, hasLoadGroup, init, isAbstract, isCascadable, isFieldAccess, isKey, isLazy, isOverride, link, override, setColumn, setIndex, setJavaType, setLazy, setLoadGroupIndex, setOverride, toObject, toString
public EntityMapField(EntityType entityType)
public void setName(java.lang.String name)
setName
in class AbstractField
public void setTargetType(EntityType type)
public boolean isUpdateable()
isUpdateable
in interface AmberField
isUpdateable
in class AbstractField
public void setMapMethod(JMethod method)
public void setId(IdField id)
public void setIndex(IdField index)
public void setIndexColumns(java.util.ArrayList<AmberColumn> columns)
public java.util.ArrayList<AmberColumn> getIndexColumns()
public void generateUpdate(JavaWriter out, java.lang.String mask, java.lang.String pstmt, java.lang.String index) throws java.io.IOException
generateUpdate
in interface AmberField
generateUpdate
in class AbstractField
java.io.IOException
public void generateLoadFromObject(JavaWriter out, java.lang.String obj) throws java.io.IOException
generateLoadFromObject
in interface AmberField
generateLoadFromObject
in class AbstractField
java.io.IOException
public void generateUpdateFromObject(JavaWriter out, java.lang.String obj) throws java.io.IOException
generateUpdateFromObject
in interface AmberField
generateUpdateFromObject
in class AbstractField
java.io.IOException
public java.lang.String generateLoadSelect(java.lang.String id)
public void generateCopyUpdateObject(JavaWriter out, java.lang.String dst, java.lang.String src, int updateIndex) throws java.io.IOException
generateCopyUpdateObject
in interface AmberField
generateCopyUpdateObject
in class AbstractField
java.io.IOException
public void generateCopyLoadObject(JavaWriter out, java.lang.String dst, java.lang.String src, int loadIndex) throws java.io.IOException
generateCopyLoadObject
in interface AmberField
generateCopyLoadObject
in class AbstractField
java.io.IOException
public void generateSuperGetterMethod(JavaWriter out) throws java.io.IOException
generateSuperGetterMethod
in interface AmberField
generateSuperGetterMethod
in class AbstractField
java.io.IOException
public void generateSuperSetterMethod(JavaWriter out) throws java.io.IOException
generateSuperSetterMethod
in interface AmberField
generateSuperSetterMethod
in class AbstractField
java.io.IOException
public void generateGetterMethod(JavaWriter out) throws java.io.IOException
generateGetterMethod
in interface AmberField
generateGetterMethod
in class AbstractField
java.io.IOException