| java.lang.Object com.caucho.amber.field.Id com.caucho.amber.field.CompositeId
All known Subclasses: com.caucho.amber.field.EmbeddedId,
CompositeId | public class CompositeId 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 String | generateGetProxyProperty(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 void | generatePrologue(JavaWriter out, HashSet<Object> completedSet) Generates any prologue. | public void | generatePrologue(JavaWriter out, HashSet<Object> completedSet, String name) Generates any prologue. | public void | generatePrologueLoad(JavaWriter out, HashSet<Object> completedSet) Generates any prologue. | public void | generatePrologueMake(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 | generateSetKey(JavaWriter out, String pstmt, String obj, String index) Generates the set clause. | public void | generateUpdateFromObject(JavaWriter out, String obj) | public String | generateWhere(String id) Generates the where clause. | public String | getForeignMakeKeyName() Returns the foreign type. | public String | getForeignTypeName() Returns the foreign type. | public void | setKeyClass(JClass keyClass) Sets the foreign key type. | 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
|
generateGetProxyProperty | public String generateGetProxyProperty(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.
|
getForeignMakeKeyName | public String getForeignMakeKeyName()(Code) | | Returns the foreign type.
|
getForeignTypeName | public String getForeignTypeName()(Code) | | Returns the foreign type.
|
setKeyClass | public void setKeyClass(JClass keyClass)(Code) | | Sets the foreign key 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)
|
|
|