org.melati
Class PoemContext

Package class diagram package PoemContext
java.lang.Object
  extended by org.melati.PoemContext
All Implemented Interfaces:
Cloneable

public class PoemContext
extends Object
implements Cloneable

Holds the names of the database, table and method and the value of the TROID for a POEM session. A PoemContext can specify an individual database record, a table or the whole database.


Constructor Summary
PoemContext()
          Empty constructor.
PoemContext(Persistent p)
           
PoemContext(Persistent p, String method)
           
PoemContext(String logicalDatabase, String table, Integer troid, String method)
          Constructor.
 
Method Summary
 Object clone()
          Clone me.
 String getLogicalDatabase()
           
 String getMethod()
           
 String getTable()
           
 Integer getTroid()
           
 void setLogicalDatabase(String logicalDatabase)
           
 void setMethod(String method)
           
 void setTable(String table)
           
 void setTroid(Integer troid)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PoemContext

public PoemContext()
Empty constructor. If you use this then you have to populate the object by hand.


PoemContext

public PoemContext(String logicalDatabase,
                   String table,
                   Integer troid,
                   String method)
Constructor.

Parameters:
logicalDatabase - the name of a logical database
table - the name of the table we are dealing with table
troid - the Table Row Object ID we are dealing with
method - what we are doing to this object

PoemContext

public PoemContext(Persistent p)

PoemContext

public PoemContext(Persistent p,
                   String method)
Method Detail

toString

public String toString()
Overrides:
toString in class Object
Returns:
a string representation of the state of this class

clone

public Object clone()
             throws CloneNotSupportedException
Clone me.

Overrides:
clone in class Object
Returns:
a duplicate of this
Throws:
CloneNotSupportedException - cannot be thrown

getLogicalDatabase

public String getLogicalDatabase()
Returns:
the logical database name.

getTable

public String getTable()
Returns:
the table name.

getTroid

public Integer getTroid()
Returns:
the TROID.

getMethod

public String getMethod()
Returns:
the method.

setLogicalDatabase

public void setLogicalDatabase(String logicalDatabase)
Parameters:
logicalDatabase - The logicalDatabase to set.

setMethod

public void setMethod(String method)
Parameters:
method - The method to set.

setTable

public void setTable(String table)
Parameters:
table - The table to set.

setTroid

public void setTroid(Integer troid)
Parameters:
troid - The troid to set.


Copyright © 2000-2010 PanEris. All Rights Reserved.