it.eng.qbe.query
Class SelectClause

java.lang.Object
  extended by it.eng.qbe.query.SelectClause
All Implemented Interfaces:
ISelectClause, java.io.Serializable

public class SelectClause
extends java.lang.Object
implements ISelectClause

The Class SelectClause.

See Also:
Serialized Form

Constructor Summary
SelectClause()
          Instantiates a new select clause.
 
Method Summary
 void addCalculatedField(CalculatedField calculatedField)
          Adds the calculated field.
 void addSelectField(ISelectField selectField)
          Adds the select field.
 void deleteAllFields()
          Delete all fields.
 void deleteCalculatedField(java.lang.String calculatedFieldId)
          Delete calculated field.
 void deleteCalculatedFields()
          Delete calculated fields.
 void deleteSelectFields()
          Delete select fields.
 void delSelectField(java.lang.String fieldId)
          Del select field.
 java.util.List getCalcuatedFields()
          Gets the calcuated fields.
 CalculatedField getCalculatedFieldByPosition(int n)
          Gets the calculated field by position.
 int getCalculatedFieldsNumber()
          Gets the calculated fields number.
 ISelectClause getCopy()
          Gets the copy.
 ISelectField getSelectFieldByPosition(int n)
          Gets the select field by position.
 java.util.List getSelectFields()
          Gets the select fields.
 int getSelectFieldsNumber()
          Gets the select fields number.
 boolean isEmpty()
          Checks if is empty.
 void moveDown(java.lang.String fieldId)
          Move down.
 void moveUp(java.lang.String fieldId)
          Move up.
 void setCalcuatedFields(java.util.List calcuatedFields)
          Sets the calcuated fields.
 void setSelectFields(java.util.List aList)
          Sets the select fields.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectClause

public SelectClause()
Instantiates a new select clause.

Method Detail

getSelectFields

public java.util.List getSelectFields()
Description copied from interface: ISelectClause
Gets the select fields.

Specified by:
getSelectFields in interface ISelectClause
Returns:
the select fields

setSelectFields

public void setSelectFields(java.util.List aList)
Description copied from interface: ISelectClause
Sets the select fields.

Specified by:
setSelectFields in interface ISelectClause
Parameters:
aList - the new select fields

getSelectFieldsNumber

public int getSelectFieldsNumber()
Gets the select fields number.

Returns:
the select fields number

getSelectFieldByPosition

public ISelectField getSelectFieldByPosition(int n)
Gets the select field by position.

Parameters:
n - the n
Returns:
the select field by position

getCalcuatedFields

public java.util.List getCalcuatedFields()
Description copied from interface: ISelectClause
Gets the calcuated fields.

Specified by:
getCalcuatedFields in interface ISelectClause
Returns:
the calcuated fields

setCalcuatedFields

public void setCalcuatedFields(java.util.List calcuatedFields)
Sets the calcuated fields.

Parameters:
calcuatedFields - the new calcuated fields

addSelectField

public void addSelectField(ISelectField selectField)
Description copied from interface: ISelectClause
Adds the select field.

Specified by:
addSelectField in interface ISelectClause
Parameters:
selectField - the select field

delSelectField

public void delSelectField(java.lang.String fieldId)
Description copied from interface: ISelectClause
Del select field.

Specified by:
delSelectField in interface ISelectClause
Parameters:
fieldId - the field id

moveUp

public void moveUp(java.lang.String fieldId)
Description copied from interface: ISelectClause
Move up.

Specified by:
moveUp in interface ISelectClause
Parameters:
fieldId - the field id

moveDown

public void moveDown(java.lang.String fieldId)
Description copied from interface: ISelectClause
Move down.

Specified by:
moveDown in interface ISelectClause
Parameters:
fieldId - the field id

addCalculatedField

public void addCalculatedField(CalculatedField calculatedField)
Description copied from interface: ISelectClause
Adds the calculated field.

Specified by:
addCalculatedField in interface ISelectClause
Parameters:
calculatedField - the calculated field

getCalculatedFieldsNumber

public int getCalculatedFieldsNumber()
Gets the calculated fields number.

Returns:
the calculated fields number

getCalculatedFieldByPosition

public CalculatedField getCalculatedFieldByPosition(int n)
Gets the calculated field by position.

Parameters:
n - the n
Returns:
the calculated field by position

deleteCalculatedField

public void deleteCalculatedField(java.lang.String calculatedFieldId)
Description copied from interface: ISelectClause
Delete calculated field.

Specified by:
deleteCalculatedField in interface ISelectClause
Parameters:
calculatedFieldId - the calculated field

isEmpty

public boolean isEmpty()
Description copied from interface: ISelectClause
Checks if is empty.

Specified by:
isEmpty in interface ISelectClause
Returns:
true, if is empty

deleteCalculatedFields

public void deleteCalculatedFields()
Description copied from interface: ISelectClause
Delete calculated fields.

Specified by:
deleteCalculatedFields in interface ISelectClause

deleteSelectFields

public void deleteSelectFields()
Description copied from interface: ISelectClause
Delete select fields.

Specified by:
deleteSelectFields in interface ISelectClause

deleteAllFields

public void deleteAllFields()
Description copied from interface: ISelectClause
Delete all fields.

Specified by:
deleteAllFields in interface ISelectClause

getCopy

public ISelectClause getCopy()
Description copied from interface: ISelectClause
Gets the copy.

Specified by:
getCopy in interface ISelectClause
Returns:
the copy