Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.javahispano.dbmt.functions
Class Function  view Function download Function.java

java.lang.Object
  extended byorg.javahispano.dbmt.functions.Function

public class Function
extends java.lang.Object

Encapsulates a Function to calculate field values

Since:
19 April 2003

Field Summary
private  java.util.List fieldsToReplace
           
private  java.lang.String name
          Description of the Field
private  java.lang.String sql
          Description of the Field
private  java.sql.Statement statement
           
 
Constructor Summary
Function(java.lang.String name, java.lang.String sql)
          Constructor for the Function object
 
Method Summary
private  java.util.List getFields()
           
 java.lang.String getName()
          Gets the name attribute of the Field object
private  java.lang.String getSQLStatement(java.sql.ResultSet current)
           
 java.lang.String getValue(java.sql.ResultSet current)
          Returns the result of this function's execution
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

private java.lang.String name
Description of the Field


sql

private java.lang.String sql
Description of the Field


fieldsToReplace

private java.util.List fieldsToReplace

statement

private java.sql.Statement statement
Constructor Detail

Function

public Function(java.lang.String name,
                java.lang.String sql)
Constructor for the Function object

Method Detail

getFields

private java.util.List getFields()

getName

public java.lang.String getName()
Gets the name attribute of the Field object


getValue

public java.lang.String getValue(java.sql.ResultSet current)
                          throws java.lang.Exception
Returns the result of this function's execution


getSQLStatement

private java.lang.String getSQLStatement(java.sql.ResultSet current)
                                  throws java.lang.Exception