org.acmsl.queryj
Class Field

java.lang.Object
  |
  +--org.acmsl.queryj.Field
Direct Known Subclasses:
IntField

public abstract class Field
extends java.lang.Object

Represents SQL fields.

Version:
$Revision: 1.1 $
Author:
Jose San Leandro

Constructor Summary
Field(java.lang.String name, Table table)
          Creates a field using given information.
 
Method Summary
 VariableCondition equals()
          Retrieves the variable condition to be able to filter for equality.
 java.lang.String getName()
          Retrieves the field name.
 Table getTable()
          Retrieves the field table.
 VariableCondition greaterThan()
          Retrieves the variable condition to be able to filter for lower values.
 VariableCondition in(SelectQuery query)
          Retrieves the variable condition to be able to filter for values using belongs-to relationships.
 Condition isNull()
          Retrieves the variable condition to be able to filter for null values.
 VariableCondition lessThan()
          Retrieves the variable condition to be able to filter for greater values.
 VariableCondition notEquals()
          Retrieves the variable condition to be able to filter for non-equality.
 VariableCondition notIn(SelectQuery query)
          Retrieves the variable condition to be able to filter for values using not-belongs-to relationships.
protected  void setName(java.lang.String name)
          Specifies the field name.
protected  void setTable(Table table)
          Specifies the field table.
 java.lang.String toString()
          Outputs a text version of the field.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Field

public Field(java.lang.String name,
             Table table)
Creates a field using given information.

Parameters:
name - the field name.
table - the table.
Method Detail

setName

protected void setName(java.lang.String name)
Specifies the field name.

Parameters:
name - the name.

getName

public java.lang.String getName()
Retrieves the field name.

Returns:
such reference.

setTable

protected void setTable(Table table)
Specifies the field table.

Parameters:
table - the table.

getTable

public Table getTable()
Retrieves the field table.

Returns:
such reference.

equals

public VariableCondition equals()
Retrieves the variable condition to be able to filter for equality.

Returns:
such kind of condition.

notEquals

public VariableCondition notEquals()
Retrieves the variable condition to be able to filter for non-equality.

Returns:
such kind of condition.

greaterThan

public VariableCondition greaterThan()
Retrieves the variable condition to be able to filter for lower values.

Returns:
such kind of condition.

lessThan

public VariableCondition lessThan()
Retrieves the variable condition to be able to filter for greater values.

Returns:
such kind of condition.

in

public VariableCondition in(SelectQuery query)
Retrieves the variable condition to be able to filter for values using belongs-to relationships.

Returns:
such kind of condition.

notIn

public VariableCondition notIn(SelectQuery query)
Retrieves the variable condition to be able to filter for values using not-belongs-to relationships.

Returns:
such kind of condition.

isNull

public Condition isNull()
Retrieves the variable condition to be able to filter for null values.

Returns:
such kind of condition.

toString

public java.lang.String toString()
Outputs a text version of the field.

Overrides:
toString in class java.lang.Object
Returns:
the field.


Copyright © 2003 ACM S.L.. All Rights Reserved.