com.irisel.oms.sql
Class Field

java.lang.Object
  extended by com.irisel.oms.sql.Field
All Implemented Interfaces:
java.io.Serializable

public class Field
extends java.lang.Object
implements java.io.Serializable

Represent a table field.Stores information about table name, field name and value, and modifiers like max(),min(),sum(),avg(). Creation date: (21/10/02 19:51:30)

See Also:
Serialized Form

Constructor Summary
Field()
           
Field(java.lang.String table, java.lang.String name)
           
Field(java.lang.String table, java.lang.String name, java.lang.Object value)
           
Field(java.lang.String table, java.lang.String name, java.lang.Object value, java.lang.String function)
           
 
Method Summary
 java.lang.String getDbType()
          Getter for property dbType.
static Field[] getFields(java.lang.String classname, java.lang.String[] propertynames)
           
 java.lang.String getFunction()
          Getter for property function.
 java.lang.String getName()
          Getter for property name.
 java.lang.String getTable()
          Getter for property table.
 java.lang.Object getValue()
          Getter for property value.
 boolean isDistinct()
          Getter for property distinct.
 java.lang.Object quotName()
           
 void setDbType(java.lang.String dbType)
          Setter for property dbType.
 void setDistinct(boolean distinct)
          Setter for property distinct.
 void setFunction(java.lang.String function)
          Setter for property function.
 void setName(java.lang.String name)
          Setter for property name.
 void setTable(java.lang.String table)
          Setter for property table.
 void setValue(java.lang.Object value)
           
 void setValue(java.lang.String value)
          Setter for property value.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Field

public Field()

Field

public Field(java.lang.String table,
             java.lang.String name)

Field

public Field(java.lang.String table,
             java.lang.String name,
             java.lang.Object value)

Field

public Field(java.lang.String table,
             java.lang.String name,
             java.lang.Object value,
             java.lang.String function)
Method Detail

isDistinct

public boolean isDistinct()
Getter for property distinct.

Returns:
Value of property distinct.

setDistinct

public void setDistinct(boolean distinct)
Setter for property distinct.

Parameters:
distinct - New value of property distinct.

getFunction

public java.lang.String getFunction()
Getter for property function.

Returns:
Value of property function.

setFunction

public void setFunction(java.lang.String function)
Setter for property function.

Parameters:
function - New value of property function.

getName

public java.lang.String getName()
Getter for property name.

Returns:
Value of property name.

setName

public void setName(java.lang.String name)
Setter for property name.

Parameters:
name - New value of property name.

getTable

public java.lang.String getTable()
Getter for property table.

Returns:
Value of property table.

setTable

public void setTable(java.lang.String table)
Setter for property table.

Parameters:
table - New value of property table.

getValue

public java.lang.Object getValue()
Getter for property value.

Returns:
Value of property value.

setValue

public void setValue(java.lang.String value)
Setter for property value.

Parameters:
value - New value of property value.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
the sql representation of the field

getDbType

public java.lang.String getDbType()
Getter for property dbType.

Returns:
Value of property dbType.

setDbType

public void setDbType(java.lang.String dbType)
Setter for property dbType.

Parameters:
dbType - New value of property dbType.

setValue

public void setValue(java.lang.Object value)

getFields

public static Field[] getFields(java.lang.String classname,
                                java.lang.String[] propertynames)

quotName

public java.lang.Object quotName()