| java.lang.Object com.caucho.amber.table.LinkColumns
LinkColumns | public class LinkColumns (Code) | | Represents a many-to-one link from one table to another.
|
generateJoin | public String generateJoin(String sourceTable, String targetTable)(Code) | | Generates the linking for a join
Parameters: sourceTable - the SQL table name for the source Parameters: targetTable - the SQL table name for the target |
generateJoin | public String generateJoin(String sourceTable, String targetTable, boolean isArg)(Code) | | Generates the linking for a join
Parameters: sourceTable - the SQL table name for the source Parameters: targetTable - the SQL table name for the target Parameters: isArg - true if targetTable is an argument "?" |
generateJoin | public String generateJoin(LinkColumns manyToOneJoin, String sourceTable1, String sourceTable2)(Code) | | Generates the many-to-many linking.
This join is the one-to-many join and the other
join is passed in as an argument used to link
the two source tables that are pointing to the
same target table.
Parameters: join - the many-to-one join Parameters: sourceTable1 - the SQL table name for the 1st source Parameters: sourceTable2 - the SQL table name for the 2nd source |
generateMatchArgSQL | public String generateMatchArgSQL(String table)(Code) | | Generates SQL match.
|
generateSelectSQL | public String generateSelectSQL(String table)(Code) | | Generates SQL select.
|
generateUpdateSQL | public String generateUpdateSQL()(Code) | | Generates SQL select.
|
generateWhere | public String generateWhere(String sourceTable, String targetTable)(Code) | | Generates the linking for a where clause
Parameters: sourceTable - the SQL table name for the source Parameters: targetTable - the SQL table name for the target |
getSourceTable | public Table getSourceTable()(Code) | | Returns the source table.
|
getTargetTable | public Table getTargetTable()(Code) | | Returns the target table.
|
isSourceCascadeDelete | public boolean isSourceCascadeDelete()(Code) | | Return true if the source is deleted when the target is deleted.
|
isTargetCascadeDelete | public boolean isTargetCascadeDelete()(Code) | | Return true if the source is deleted when the target is deleted.
|
setSourceCascadeDelete | public void setSourceCascadeDelete(boolean isCascadeDelete)(Code) | | Sets the cascade-delete of the source when the target is deleted,
i.e. a one-to-many cascaded delete like an identifying relation.
|
setTargetCascadeDelete | public void setTargetCascadeDelete(boolean isCascadeDelete)(Code) | | Sets the cascade-delete of the target when the source is deleted.
|
|
|