| java.lang.Object com.caucho.amber.field.EmbeddedSubField
All known Subclasses: com.caucho.amber.field.KeyEmbeddedSubField,
EmbeddedSubField | public class EmbeddedSubField implements AmberField(Code) | | Represents the sub-field of an embedded type.
|
Field Summary | |
final protected static Logger | log |
Method Summary | |
public void | childDelete(AmberConnection aConn, Serializable primaryKey) | public AmberExpr | createExpr(QueryParser parser, PathExpr parent) Creates the expression for the field. | public String | generateCastFromObject(String value) Generates code to convert to the type from the object. | public void | generateCopyLoadObject(JavaWriter out, String dst, String src, int loadIndex) Updates the cached copy. | public void | generateCopyMergeObject(JavaWriter out, String dst, String src, int loadIndex) Updates the cached copy. | public void | generateCopyUpdateObject(JavaWriter out, String dst, String src, int updateIndex) Updates the cached copy. | public String | generateCreateTableSQL(AmberPersistenceUnit manager) Generates the table create. | public void | generateDumpRelationships(JavaWriter out, int updateIndex) Checks entity-relationships from an object. | public String | generateEquals(String leftBase, String value) Generates code to test the equals. | public void | generateExpire(JavaWriter out) Generates the expire code. | public void | generateGet(JavaWriter out, String value) Generates the field getter. | public String | generateGet(String objThis) Generates the field getter. | public void | generateGetProperty(JavaWriter out) Generates the get property. | public void | generateInsertColumns(ArrayList<String> columns) Generates the insert. | public void | generateInsertSet(JavaWriter out, String pstmt, String index, String obj) Generates the set clause for the insert clause. | public void | generateInvalidateForeign(JavaWriter out) | public String | generateJavaSelect(String id) Generates the JPA QL select clause. | public int | generateLoad(JavaWriter out, String rs, String indexVar, int loadGroupIndex) | public void | generateLoadFromObject(JavaWriter out, String obj) | public String | generateLoadSelect(Table table, String id) Generates the select clause for an entity load. | public void | generatePostConstructor(JavaWriter out) | public void | generatePostDelete(JavaWriter out) | public int | generatePostLoadSelect(JavaWriter out, int index) Generates loading code after the basic fields. | public void | generatePreDelete(JavaWriter out) | public void | generatePrologue(JavaWriter out, HashSet<Object> completedSet) Generates any prologue. | public String | generateSelect(String id) Generates the select clause. | public void | generateSet(JavaWriter out, String obj) | public String | generateSet(String obj, String value) Generates the field setter. | public void | generateSet(JavaWriter out, String pstmt, String index) Generates the JDBC preparedStatement set clause. | public void | generateSet(JavaWriter out, String pstmt, String index, String obj) Generates the set clause. | public void | generateSetProperty(JavaWriter out) Generates the set property. | public String | generateSuperGetter() Returns the actual data. | public void | generateSuperGetter(JavaWriter out) Generates the get property. | public String | generateSuperSetter(String value) Sets the actual data. | public String | generateSuperSetter(String objThis, String value) Sets the actual data. | public void | generateSuperSetter(JavaWriter out) Generates the get property. | public void | generateUpdate(JavaWriter out, String mask, String pstmt, String index) | public void | generateUpdate(CharBuffer sql) Generates the where clause. | public void | generateUpdateFromObject(JavaWriter out, String obj) | public void | generateUpdateSet(JavaWriter out, String pstmt, String index, String obj) Generates the set clause for the insert clause. | public String | generateWhere(String id) Generates the where clause. | public Column | getColumn() | public long | getCreateLoadMask(int group) Returns the load group mask. | public JMethod | getGetterMethod() Returns the getter method. | public String | getGetterName() Returns the getter name. | public int | getIndex() Returns the property index. | public JType | getJavaType() | public String | getJavaTypeName() Returns the name of the java type. | public int | getLoadGroupIndex() Returns the property's group index. | public String | getName() Returns the field name. | public JMethod | getSetterMethod() Returns the setter method. | public String | getSetterName() Returns the setter name. | public AbstractStatefulType | getSourceType() Returns the owning entity class. | public Table | getTable() | public boolean | hasLoadGroup(int index) | public void | init() Links to the target. | public boolean | isAbstract() Returns true if the methods are abstract. | public boolean | isCascadable() Returns true if the field is cascadable. | public boolean | isLazy() Returns true if and only if this is a LAZY field. | public boolean | isUpdateable() Returns true for an updateable field. | public void | link() Links to the target. | public void | setIndex(int index) Links to the target. | public String | toObject(String value) Converts to an object. |
generateCastFromObject | public String generateCastFromObject(String value)(Code) | | Generates code to convert to the type from the object.
|
generateDumpRelationships | public void generateDumpRelationships(JavaWriter out, int updateIndex) throws IOException(Code) | | Checks entity-relationships from an object.
|
generateGet | public String generateGet(String objThis)(Code) | | Generates the field getter.
Parameters: value - the non-null value |
generateInsertColumns | public void generateInsertColumns(ArrayList<String> columns)(Code) | | Generates the insert.
|
generateInvalidateForeign | public void generateInvalidateForeign(JavaWriter out) throws IOException(Code) | | Generates code for foreign entity create/delete
|
generateJavaSelect | public String generateJavaSelect(String id)(Code) | | Generates the JPA QL select clause.
|
generateLoadSelect | public String generateLoadSelect(Table table, String id)(Code) | | Generates the select clause for an entity load.
|
generatePostConstructor | public void generatePostConstructor(JavaWriter out) throws IOException(Code) | | Generates the post constructor fixup
|
generatePostLoadSelect | public int generatePostLoadSelect(JavaWriter out, int index) throws IOException(Code) | | Generates loading code after the basic fields.
|
generateSet | public String generateSet(String obj, String value)(Code) | | Generates the field setter.
Parameters: value - the non-null value |
generateSuperGetter | public String generateSuperGetter()(Code) | | Returns the actual data.
|
generateSuperSetter | public String generateSuperSetter(String value)(Code) | | Sets the actual data.
|
generateUpdate | public void generateUpdate(CharBuffer sql)(Code) | | Generates the where clause.
|
getCreateLoadMask | public long getCreateLoadMask(int group)(Code) | | Returns the load group mask.
|
getGetterMethod | public JMethod getGetterMethod()(Code) | | Returns the getter method.
|
getGetterName | public String getGetterName()(Code) | | Returns the getter name.
|
getIndex | public int getIndex()(Code) | | Returns the property index.
|
getJavaType | public JType getJavaType()(Code) | | Returns the type of the field
|
getJavaTypeName | public String getJavaTypeName()(Code) | | Returns the name of the java type.
|
getLoadGroupIndex | public int getLoadGroupIndex()(Code) | | Returns the property's group index.
|
getName | public String getName()(Code) | | Returns the field name.
|
getSetterMethod | public JMethod getSetterMethod()(Code) | | Returns the setter method.
|
getSetterName | public String getSetterName()(Code) | | Returns the setter name.
|
getTable | public Table getTable()(Code) | | Returns the table containing the value (or null)
|
hasLoadGroup | public boolean hasLoadGroup(int index)(Code) | | Generates loading code
|
init | public void init() throws ConfigException(Code) | | Links to the target.
|
isAbstract | public boolean isAbstract()(Code) | | Returns true if the methods are abstract.
|
isCascadable | public boolean isCascadable()(Code) | | Returns true if the field is cascadable.
|
isLazy | public boolean isLazy()(Code) | | Returns true if and only if this is a LAZY field.
|
isUpdateable | public boolean isUpdateable()(Code) | | Returns true for an updateable field.
|
link | public void link()(Code) | | Links to the target.
|
setIndex | public void setIndex(int index)(Code) | | Links to the target.
|
|
|