All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class designer.Assignment

java.lang.Object
   |
   +----designer.Assignment

public class Assignment
extends Object
implements Step
Class Name: Assignment
Purpose: This class encapsulates the database assignment
feature.


Constructor Index

 o Assignment(String)
Method Name: Constructor
Purpose: Obvious.

Method Index

 o execute()
Method Name: execute() Purpose: This method will execute the assignment, even if it means executing
a calculation.
 o getName()
Method Name: getName()
Purpose: This method will return the class name to the caller.
 o setResult(String)
Method Name: setResult()
Purpose: Sets the result, or DB variable to assign (right hand side).
 o setValue(Calculation)
Method name: setValue()
Purpose: Sets the right hand of the assignment.
 o setValue(LogicalOperation)
Method name: setValue()
Purpose: Sets the right hand of the assignment.
 o setValue(Number)
Method name: setValue()
Purpose: Sets the right hand of the assignment.
 o setValue(String)
Method name: setValue()
Purpose: Sets the right hand of the assignment.

Constructors

 o Assignment
 public Assignment(String name)
Method Name: Constructor
Purpose: Obvious.
PRE: name is the name of this object.
POST: new "Assignment" object is created.

Methods

 o getName
 public String getName()
Method Name: getName()
Purpose: This method will return the class name to the caller.
PRE: Nothing
POST: Nothing

 o setResult
 public void setResult(String dbVar)
Method Name: setResult()
Purpose: Sets the result, or DB variable to assign (right hand side).
PRE: dbVar must not be null or equal to ""
POST: Ensure the assignment occurred.

 o setValue
 public void setValue(String dbString)
Method name: setValue()
Purpose: Sets the right hand of the assignment. String version.
PRE: dbString must not be null.
POST: Assignment occurred.

 o setValue
 public void setValue(Number dbValue)
Method name: setValue()
Purpose: Sets the right hand of the assignment. Number version.
PRE: dbValue must not be null.
POST: Assignment occurred.

 o setValue
 public void setValue(Calculation dbValue)
Method name: setValue()
Purpose: Sets the right hand of the assignment. Calculation version.
PRE: dbValue must not be null.
POST: Assignment occurred.

 o setValue
 public void setValue(LogicalOperation dbValue)
Method name: setValue()
Purpose: Sets the right hand of the assignment. LogicalOperation version.
PRE: dbValue must not be null.
POST: Assignment occurred.

 o execute
 public boolean execute()
Method Name: execute() Purpose: This method will execute the assignment, even if it means executing
a calculation.
PRE: Result and Value must be setup. Type of Value is equal to type of
variable.
POST: Database assignment is made.


All Packages  Class Hierarchy  This Package  Previous  Next  Index