|
||||||||||
| 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 IAssociationSQLExceptionpublic String constructSelectExpression(IRecord record)
constructSelectExpression in interface IAssociation
public void disassociate(IRecord record0,
IRecord record1)
throws SQLException
disassociate in interface IAssociationSQLException
public Iterator getItems()
throws SQLException
getItems in interface IAssociationSQLExceptionpublic JoinData getJoinData()
getJoinData in interface IAssociationpublic String getTableName()
getTableName in interface IAssociationpublic boolean isForward()
isForward in interface IAssociationpublic boolean isJunction()
isJunction in interface IAssociationpublic String toDebugString()
toDebugString in interface IAssociationpublic String toString()
toString in interface IAssociationtoString 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 |