| java.lang.Object com.caucho.amber.field.Id
All known Subclasses: com.caucho.amber.field.SubId, com.caucho.amber.field.CompositeId,
Id | public class Id (Code) | | Configuration for a bean's field
|
Field Summary | |
final protected static Logger | log |
Method Summary | |
protected void | addKey(IdField key) Adds a new field to the id. | public String | generateCastFromObject(String value) Generates code to convert to the type from the object. | public void | generateCheckCreateKey(JavaWriter out) Generates the set clause. | public void | generateCopy(JavaWriter out, String dest, String source) Generates code to copy to an object. | public String | generateCreateTableSQL(AmberPersistenceUnit manager) Generates the where clause. | public String | generateEquals(String leftBase, String value) Generates code to test the equals. | public String | generateGetProperty(String value) | public String | generateGetProxyKey(String value) | public String | generateJavaSelect(String id) Generates the JPA QL select clause. | 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 void | generateLoadFromObject(JavaWriter out, String obj) | public String | generateLoadSelect(String id) Generates the select clause. | public void | generateMatch(JavaWriter out, String key) Generates code for a match. | public String | generateMatchArgWhere(String id) Generates the where clause. | public void | generatePrologue(JavaWriter out, HashSet<Object> completedSet, String name) Generates any prologue. | public void | generatePrologue(JavaWriter out, HashSet<Object> completedSet) Generates any prologue. | public String | generateRawWhere(String id) Generates the where clause. | public String | generateSelect(String id) Generates the select clause. | public void | generateSet(JavaWriter out, String obj) | public void | generateSet(JavaWriter out, String pstmt, String index, String value) Generates the set clause. | public void | generateSet(JavaWriter out, String pstmt, String index) Generates the set clause. | public void | generateSetGeneratedKeys(JavaWriter out, String pstmt) Generates the set clause. | public void | generateSetInsert(JavaWriter out, String pstmt, String index) Generates the set clause. | public void | generateSetKey(JavaWriter out, String pstmt, String index, String keyObject) Generates the set clause. | public void | generateUpdateFromObject(JavaWriter out, String obj) | public ArrayList<Column> | getColumns() Returns all the column. | public EmbeddedIdField | getEmbeddedIdField() | public String | getForeignTypeName() Returns the foreign type. | public IdField | getKey() Returns the keys. | public int | getKeyCount() Returns all the keys. | public ArrayList<IdField> | getKeys() Returns all the keys. | public Object | getObject(ResultSet rs, int index) Generates code to convert to the object. | public RelatedType | getOwnerType() Returns the owner type. | public void | init() Initialize the id. | public boolean | isEmbeddedId() | public boolean | isIdentityGenerator() | public String | toObject(String value) Generates code to convert to the object. | public Object | toObjectKey(long value) Generates code to convert to the object. |
addKey | protected void addKey(IdField key)(Code) | | Adds a new field to the id.
|
generateCastFromObject | public String generateCastFromObject(String value)(Code) | | Generates code to convert to the type from the object.
|
generateGetProperty | public String generateGetProperty(String value)(Code) | | Returns the key for the value
|
generateGetProxyKey | public String generateGetProxyKey(String value)(Code) | | Returns the key for the value
|
generateJavaSelect | public String generateJavaSelect(String id)(Code) | | Generates the JPA QL select clause.
|
generateLoadSelect | public String generateLoadSelect(String id)(Code) | | Generates the select clause.
|
generateMatchArgWhere | public String generateMatchArgWhere(String id)(Code) | | Generates the where clause.
|
generateRawWhere | public String generateRawWhere(String id)(Code) | | Generates the where clause.
|
getForeignTypeName | public String getForeignTypeName()(Code) | | Returns the foreign type.
|
getKeyCount | public int getKeyCount()(Code) | | Returns all the keys.
|
init | public void init() throws ConfigException(Code) | | Initialize the id.
|
isEmbeddedId | public boolean isEmbeddedId()(Code) | | Returns true if this is an @EmbeddedId
|
isIdentityGenerator | public boolean isIdentityGenerator()(Code) | | |
toObject | public String toObject(String value)(Code) | | Generates code to convert to the object.
|
toObjectKey | public Object toObjectKey(long value)(Code) | | Generates code to convert to the object.
|
|
|