| java.lang.Object com.caucho.amber.table.Column com.caucho.amber.table.ForeignColumn
ForeignColumn | public class ForeignColumn extends Column (Code) | | Column linking to another table
|
ForeignColumn | ForeignColumn(Table table, String name, Column targetColumn)(Code) | | Creates a foreign column.
Parameters: table - the owning table Parameters: name - the column name Parameters: targetColumn - the key column of the target table |
getTargetColumn | public Column getTargetColumn()(Code) | | Returns the target column.
|
Methods inherited from com.caucho.amber.table.Column | protected ConfigException error(String msg, Throwable e)(Code)(Java Doc) String generateCreateTableSQL(AmberPersistenceUnit manager)(Code)(Java Doc) public String generateInsertName()(Code)(Java Doc) public int generateLoad(JavaWriter out, String rs, String indexVar, int index) throws IOException(Code)(Java Doc) public String generateMatchArgWhere(String id)(Code)(Java Doc) public void generatePrologue(JavaWriter out) throws IOException(Code)(Java Doc) public String generateSelect(String id)(Code)(Java Doc) public void generateSet(JavaWriter out, String pstmt, String index, String value) throws IOException(Code)(Java Doc) public void generateSetVersion(JavaWriter out, String pstmt, String index, String value) throws IOException(Code)(Java Doc) public String generateUpdateSet()(Code)(Java Doc) public String generateUpdateSetNull()(Code)(Java Doc) public String getFieldName()(Code)(Java Doc) public int getLength()(Code)(Java Doc) public String getName()(Code)(Java Doc) public int getPrecision()(Code)(Java Doc) public String getSQLType()(Code)(Java Doc) public int getScale()(Code)(Java Doc) public Table getTable()(Code)(Java Doc) public Type getType()(Code)(Java Doc) public boolean isNotNull()(Code)(Java Doc) public boolean isPrimaryKey()(Code)(Java Doc) public boolean isUnique()(Code)(Java Doc) public void setConfigLocation(String location)(Code)(Java Doc) public void setGeneratorType(String type)(Code)(Java Doc) public void setLength(int length)(Code)(Java Doc) public void setName(String name)(Code)(Java Doc) public void setNotNull(boolean isNotNull)(Code)(Java Doc) public void setPrecision(int precision)(Code)(Java Doc) public void setPrimaryKey(boolean isPrimaryKey)(Code)(Java Doc) public void setSQLType(String sqlType)(Code)(Java Doc) public void setScale(int scale)(Code)(Java Doc) public void setUnique(boolean isUnique)(Code)(Java Doc) public Object toObjectKey(long value)(Code)(Java Doc) public String toString()(Code)(Java Doc) void validateDatabase(AmberPersistenceUnit amberPersistenceUnit) throws ConfigException(Code)(Java Doc)
|
|
|