|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.vizzini.database.JoinData
org.vizzini.database.JunctionData
class JunctionData
Provides storage for data detailing a junction between two tables. The middle table is constructed automatically.
Constructor Summary | |
---|---|
JunctionData()
|
Method Summary | |
---|---|
void |
associate(IRecord record0,
IRecord record1)
Associate the given records by inserting a new record in the middle table. |
String |
constructSelectExpression(ITableData targetTableData,
IRecord record,
boolean forward)
Construct a select expression using this join. |
void |
disassociate(IRecord record0,
IRecord record1)
Disassociate the given records by deleting the existing record in the middle table. |
String |
getColumnName22()
Return the middle table second column name. |
String |
getColumnName3()
Return the third table column name. |
String |
getLastTableName()
Return the last table name. |
String |
getTableName3()
Return the third table name. |
void |
inflate(Element element)
Inflate this object from the given XML element. |
boolean |
match(String startTableName,
String endTableName)
Return true if the given table names match this join. |
void |
setColumnName22(String name)
Set the middle table second column name. |
void |
setColumnName3(String name)
Set the third column name. |
void |
setTableName3(String name)
Set the third table name. |
String |
toDebugString()
Return a debug string representation of this object. |
Methods inherited from class org.vizzini.database.JoinData |
---|
getColumnName1, getColumnName2, getTableName1, getTableName2, setColumnName1, setColumnName2, setTableName1, setTableName2, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
JunctionData()
Method Detail |
---|
public void associate(IRecord record0, IRecord record1) throws SQLException
associate
in class JoinData
SQLException
public String constructSelectExpression(ITableData targetTableData, IRecord record, boolean forward)
constructSelectExpression
in class JoinData
public void disassociate(IRecord record0, IRecord record1) throws SQLException
disassociate
in class JoinData
SQLException
public String getColumnName22()
public String getColumnName3()
public String getLastTableName()
getLastTableName
in class JoinData
public String getTableName3()
public void inflate(Element element)
inflate
in class JoinData
public boolean match(String startTableName, String endTableName)
match
in class JoinData
public void setColumnName22(String name)
public void setColumnName3(String name)
public void setTableName3(String name)
public String toDebugString()
toDebugString
in class JoinData
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2007 Vizzini.org. All Rights Reserved. | 2007.12.25.03.00.02 |