org.vizzini.database
Interface IAssociation

All Known Implementing Classes:
Association

interface IAssociation

Provides an instance of a join which allows fetching, associating, and disassociating Records.

Since:
v0.3
Version:
v0.3
Author:
Jeffrey M. Thompson

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.
 

Method Detail

associate

void associate(IRecord record0,
               IRecord record1)
               throws SQLException
Associate the given Records through my join.

Throws:
SQLException
Since:
v0.3

constructSelectExpression

String constructSelectExpression(IRecord record)
Construct a select expression based upon my join.

Since:
v0.3

disassociate

void disassociate(IRecord record0,
                  IRecord record1)
                  throws SQLException
Disassociate the given Records through my join.

Throws:
SQLException
Since:
v0.3

getItems

Iterator getItems()
                  throws SQLException
Return an iterator over items involved in my join. Which table the items come from depends upon the forward flag.

Throws:
SQLException
Since:
v0.3

getJoinData

JoinData getJoinData()
Return the join data.

Since:
v0.3

getTableName

String getTableName()
Return the "other" table name based upon my forward flag.

Since:
v0.3

isForward

boolean isForward()
Return the forward flag.

Since:
v0.3

isJunction

boolean isJunction()
Return true if my join data represents a junction.

Since:
v0.3

toDebugString

String toDebugString()
Return a debug string representation of this object.

Since:
v0.3

toString

String toString()
Return a string representation of this object.

Overrides:
toString in class Object
Since:
v0.3


Copyright © 2007 Vizzini.org. All Rights Reserved. 2007.12.25.03.00.02