|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.castor.cpa.persistence.sql.engine.info.TableInfo
org.castor.cpa.persistence.sql.engine.info.RelationTableInfo
public final class RelationTableInfo
Class representing a table for a many to many relation.
| Constructor Summary | |
|---|---|
protected |
RelationTableInfo(String tableName)
Constructor taking tableName in order to construct table that holds his name only. |
| Method Summary | |
|---|---|
ForeignKeyInfo |
getLeftForeignKey()
Get foreign key to left side of many to many relation. |
ForeignKeyInfo |
getRightForeignKey()
Get foreign key to right side of many to many relation. |
protected void |
setLeftForeignKey(ForeignKeyInfo foreignKey)
Set foreign key to left side of many to many relation. |
protected void |
setRightForeignKey(ForeignKeyInfo foreignKey)
Set foreign key to right side of many to many relation. |
List<ColumnValue> |
toSQL(Identity left)
Method appending values from passed identities to corresponding columns. |
List<ColumnValue> |
toSQL(Identity left,
Identity right)
Method appending values from passed identities to corresponding columns. |
| Methods inherited from class org.castor.cpa.persistence.sql.engine.info.TableInfo |
|---|
getTableName, toSQL |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected RelationTableInfo(String tableName)
tableName - Name of the table to be constructed.| Method Detail |
|---|
protected void setLeftForeignKey(ForeignKeyInfo foreignKey)
foreignKey - Foreign key to left side of many to many relation.protected void setRightForeignKey(ForeignKeyInfo foreignKey)
foreignKey - Foreign key to right side of many to many relation.public ForeignKeyInfo getLeftForeignKey()
public ForeignKeyInfo getRightForeignKey()
public List<ColumnValue> toSQL(Identity left)
left - Identity containing values to be assigned to corresponding columns.
public List<ColumnValue> toSQL(Identity left,
Identity right)
left - Identity containing values to be assigned to corresponding columns.right - Identity containing values to be assigned to corresponding columns.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||