|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.vizzini.database.Association
class Association
Provides an instance of a join which allows fetching, associating, and disassociating Records.
Constructor Summary | |
---|---|
Association(IDatabase database,
JoinData joinData,
boolean forward)
Construct this object. |
Method Summary | |
---|---|
void |
associate(IRecord record0,
IRecord record1)
Associate the given Records through my join. |
String |
constructSelectExpression(IRecord record)
Construct a select expression based upon my join. |
void |
disassociate(IRecord record0,
IRecord record1)
Disassociate the given Records through my join. |
Iterator |
getItems()
Return an iterator over items involved in my join. |
JoinData |
getJoinData()
Return the join data. |
String |
getTableName()
Return the "other" table name based upon my forward flag. |
boolean |
isForward()
Return the forward flag. |
boolean |
isJunction()
Return true if my join data represents a junction. |
String |
toDebugString()
Return a debug string representation of this object. |
String |
toString()
Return a string representation of this object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Association(IDatabase database, JoinData joinData, boolean forward)
database
- The database.joinData
- The join data.forward
- Flag indicating if this is forward along the join.Method Detail |
---|
public void associate(IRecord record0, IRecord record1) throws SQLException
associate
in interface IAssociation
SQLException
public String constructSelectExpression(IRecord record)
constructSelectExpression
in interface IAssociation
public void disassociate(IRecord record0, IRecord record1) throws SQLException
disassociate
in interface IAssociation
SQLException
public Iterator getItems() throws SQLException
getItems
in interface IAssociation
SQLException
public JoinData getJoinData()
getJoinData
in interface IAssociation
public String getTableName()
getTableName
in interface IAssociation
public boolean isForward()
isForward
in interface IAssociation
public boolean isJunction()
isJunction
in interface IAssociation
public String toDebugString()
toDebugString
in interface IAssociation
public String toString()
toString
in interface IAssociation
toString
in class Object
|
||||||||||
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 |