| com.caucho.amber.field.IdField
All known Subclasses: com.caucho.amber.field.EmbeddedIdField, com.caucho.amber.field.KeyManyToOneField, com.caucho.amber.field.KeyPropertyField, com.caucho.amber.field.KeyEmbeddedSubField,
IdField | public interface IdField extends AmberField(Code) | | Configuration for a bean's field
|
Method Summary | |
public void | generateCheckCreateKey(JavaWriter out) Generates the set for an insert. | public void | generateCopy(JavaWriter out, String dest, String source) Generates code to copy to an object. | public String | generateGetKeyProperty(String key) | public String | generateGetProxyProperty(String value) | public String | generateIsNull(String value) Returns a test for null. | public int | generateLoadForeign(JavaWriter out, String rs, String indexVar, int index) Returns the foreign type. | public int | generateLoadForeign(JavaWriter out, String rs, String indexVar, int index, String name) Returns the foreign type. | public String | generateMatchArgWhere(String id) | public String | generateRawWhere(String id) | public void | generateSetGeneratedKeys(JavaWriter out, String pstmt) Generates the set clause. | public void | generateSetInsert(JavaWriter out, String pstmt, String index) Generates the set for an insert. | public String | generateSetKeyProperty(String key, String value) | public ArrayList<Column> | getColumns() | public int | getComponentCount() Returns the component count. | public String | getForeignTypeName() Returns the foreign type. | public String | getGenerator() Returns the generator. | public String | getJavaTypeName() Returns the java type name. | public Type | getType() | public boolean | isAutoGenerate() Returns true for a generator. | public void | setKeyField(boolean isKey) Sets true if there are multiple keys. | public String | toValue(String value) Converts from an object. |
generateGetProxyProperty | public String generateGetProxyProperty(String value)(Code) | | Generates the property getter for an EJB proxy
Parameters: value - the non-null value |
generateMatchArgWhere | public String generateMatchArgWhere(String id)(Code) | | Returns the key code
|
getComponentCount | public int getComponentCount()(Code) | | Returns the component count.
|
getForeignTypeName | public String getForeignTypeName()(Code) | | Returns the foreign type.
|
getGenerator | public String getGenerator()(Code) | | Returns the generator.
|
getJavaTypeName | public String getJavaTypeName()(Code) | | Returns the java type name.
|
isAutoGenerate | public boolean isAutoGenerate()(Code) | | Returns true for a generator.
|
setKeyField | public void setKeyField(boolean isKey)(Code) | | Sets true if there are multiple keys.
|
|
|