| java.lang.Object com.caucho.amber.field.Id com.caucho.amber.field.SubId
SubId | public class SubId extends Id (Code) | | Configuration for a bean's field
|
Field Summary | |
final protected static Logger | log |
Method Summary | |
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 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 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) Generates any prologue. | public String | generateSelect(String id) Generates the select clause. | public void | generateSet(JavaWriter out, String obj) | public void | generateSet(JavaWriter out, String pstmt, String obj, String index) Generates the set clause. | public void | generateSet(JavaWriter out, String pstmt, String index) 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 obj, String index) Generates the set clause. | public void | generateUpdateFromObject(JavaWriter out, String obj) | public String | getForeignTypeName() Returns the foreign type. | public ArrayList<IdField> | getKeys() Returns the keys. | public ArrayList<IdField> | getParentKeys() Returns the parent keys. | public String | toObject(String value) Generates code to convert to the object. |
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
|
generateLoadSelect | public String generateLoadSelect(String id)(Code) | | Generates the select clause.
|
generateMatchArgWhere | public String generateMatchArgWhere(String id)(Code) | | Generates the where clause.
|
getForeignTypeName | public String getForeignTypeName()(Code) | | Returns the foreign type.
|
toObject | public String toObject(String value)(Code) | | Generates code to convert to the object.
|
Methods inherited from com.caucho.amber.field.Id | protected void addKey(IdField key)(Code)(Java Doc) public String generateCastFromObject(String value)(Code)(Java Doc) public void generateCheckCreateKey(JavaWriter out) throws IOException(Code)(Java Doc) public void generateCopy(JavaWriter out, String dest, String source) throws IOException(Code)(Java Doc) public String generateCreateTableSQL(AmberPersistenceUnit manager)(Code)(Java Doc) public String generateEquals(String leftBase, String value)(Code)(Java Doc) public String generateGetProperty(String value)(Code)(Java Doc) public String generateGetProxyKey(String value)(Code)(Java Doc) public String generateJavaSelect(String id)(Code)(Java Doc) public int generateLoadForeign(JavaWriter out, String rs, String indexVar, int index) throws IOException(Code)(Java Doc) public int generateLoadForeign(JavaWriter out, String rs, String indexVar, int index, String name) throws IOException(Code)(Java Doc) public void generateLoadFromObject(JavaWriter out, String obj) throws IOException(Code)(Java Doc) public String generateLoadSelect(String id)(Code)(Java Doc) public void generateMatch(JavaWriter out, String key) throws IOException(Code)(Java Doc) public String generateMatchArgWhere(String id)(Code)(Java Doc) public void generatePrologue(JavaWriter out, HashSet<Object> completedSet, String name) throws IOException(Code)(Java Doc) public void generatePrologue(JavaWriter out, HashSet<Object> completedSet) throws IOException(Code)(Java Doc) public String generateRawWhere(String id)(Code)(Java Doc) public String generateSelect(String id)(Code)(Java Doc) public void generateSet(JavaWriter out, String obj) throws IOException(Code)(Java Doc) public void generateSet(JavaWriter out, String pstmt, String index, String value) throws IOException(Code)(Java Doc) public void generateSet(JavaWriter out, String pstmt, String index) throws IOException(Code)(Java Doc) public void generateSetGeneratedKeys(JavaWriter out, String pstmt) throws IOException(Code)(Java Doc) public void generateSetInsert(JavaWriter out, String pstmt, String index) throws IOException(Code)(Java Doc) public void generateSetKey(JavaWriter out, String pstmt, String index, String keyObject) throws IOException(Code)(Java Doc) public void generateUpdateFromObject(JavaWriter out, String obj) throws IOException(Code)(Java Doc) public ArrayList<Column> getColumns()(Code)(Java Doc) public EmbeddedIdField getEmbeddedIdField()(Code)(Java Doc) public String getForeignTypeName()(Code)(Java Doc) public IdField getKey()(Code)(Java Doc) public int getKeyCount()(Code)(Java Doc) public ArrayList<IdField> getKeys()(Code)(Java Doc) public Object getObject(ResultSet rs, int index) throws SQLException(Code)(Java Doc) public RelatedType getOwnerType()(Code)(Java Doc) public void init() throws ConfigException(Code)(Java Doc) public boolean isEmbeddedId()(Code)(Java Doc) public boolean isIdentityGenerator()(Code)(Java Doc) public String toObject(String value)(Code)(Java Doc) public Object toObjectKey(long value)(Code)(Java Doc)
|
|
|