org.melati
Class PoemContext

java.lang.Object
  extended by org.melati.PoemContext
All Implemented Interfaces:
java.lang.Cloneable

public class PoemContext
extends java.lang.Object
implements java.lang.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(java.lang.String logicalDatabase, java.lang.String table, java.lang.Integer troid, java.lang.String method)
          Constructor.
 
Method Summary
 java.lang.Object clone()
          Clone me.
 java.lang.String getLogicalDatabase()
           
 java.lang.String getMethod()
           
 java.lang.String getTable()
           
 java.lang.Integer getTroid()
           
 void setLogicalDatabase(java.lang.String logicalDatabase)
           
 void setMethod(java.lang.String method)
           
 void setTable(java.lang.String table)
           
 void setTroid(java.lang.Integer troid)
           
 java.lang.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(java.lang.String logicalDatabase,
                   java.lang.String table,
                   java.lang.Integer troid,
                   java.lang.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
Method Detail

toString

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

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Clone me.

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

getLogicalDatabase

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

getTable

public java.lang.String getTable()
Returns:
the table name.

getTroid

public java.lang.Integer getTroid()
Returns:
the TROID.

getMethod

public java.lang.String getMethod()
Returns:
the method.

setLogicalDatabase

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

setMethod

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

setTable

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

setTroid

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


Copyright © 2000-2009 PanEris. All Rights Reserved.