pt.moredata.dao.core
Class SQLInformation

java.lang.Object
  extended bypt.moredata.dao.core.SQLInformation

public class SQLInformation
extends java.lang.Object

This is a java bean used for presenting aditional information to the SQLStatmentBuilder interface so it can build SQL statments. Company MoreData

Version:
$Revision: 1.6 $
Author:
pcarmo

Constructor Summary
SQLInformation()
          Create a new SQLInformation Object.
SQLInformation(java.lang.String tableName)
          Create a new SQLInformation Object.
SQLInformation(java.lang.String tableName, int rowNumber)
          Create a new SQLInformation Object.
SQLInformation(java.lang.String tableName, int rowNumber, int updateType)
          Create a new SQLInformation Object.
SQLInformation(java.lang.String tableName, java.lang.String whereString)
          Create a new SQLInformation Object.
SQLInformation(java.lang.String tableName, java.lang.String whereString, java.util.List joinString, java.util.List orderBy, boolean distinctQuery)
          Create a new SQLInformation Object.
 
Method Summary
 java.util.List getOrderBy()
          Getter for property orderBy.
 int getRowNumber()
          Getter for property rowNumber.
 java.util.List getSelectList()
          Getter for property selectList.
 java.lang.String getTableName()
          Getter for property tableName.
 java.util.List getTablesJoin()
          Getter for property joinString.
 int getUpdateType()
          Getter for property updateType.
 java.lang.String getWhereString()
          Getter for property whereString.
 boolean isDistinctQuery()
          Getter for property distinctQuery.
 boolean isForUpdate()
          Getter for property forUpdate.
 boolean isUseJoin()
          Getter for property useJoin.
 void setDistinctQuery(boolean distinctQuery)
          Setter for property distinctQuery.
 void setForUpdate(boolean forUpdate)
          Setter for property forUpdate.
 void setOrderBy(java.util.List orderBy)
          Setter for property orderBy.
 void setRowNumber(int rowNumber)
          Setter for property rowNumber.
 void setSelectList(java.util.List selectList)
          Setter for property selectList.
 void setTableName(java.lang.String tableName)
          Setter for property tableName.
 void setTablesJoin(java.util.List tablesJoin)
          Setter for property tablesJoin.
 void setUpdateType(int updateType)
          Setter for property updateType.
 void setUseJoin(boolean useJoin)
          Setter for property useJoin.
 void setWhereString(java.lang.String whereString)
          Setter for property whereString.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SQLInformation

public SQLInformation()
Create a new SQLInformation Object.


SQLInformation

public SQLInformation(java.lang.String tableName,
                      java.lang.String whereString)
Create a new SQLInformation Object.

Parameters:
tableName - The table name to be used by the SQLStatmentBuilder.
whereString - The where string clause to be used by the SQLStatmentBuilder.

SQLInformation

public SQLInformation(java.lang.String tableName,
                      java.lang.String whereString,
                      java.util.List joinString,
                      java.util.List orderBy,
                      boolean distinctQuery)
Create a new SQLInformation Object.

Parameters:
tableName - The table name to be used by the SQLStatmentBuilder.
whereString - The where string clause to be used by the SQLStatmentBuilder.
joinString - The join where string clause to be used by the SQLStatmentBuilder.
orderBy - The order by clause to be used by the SQLStatmentBuilder.
distinctQuery - Indicates if the distinct query should be used by the SQLStatmentBuilder.

SQLInformation

public SQLInformation(java.lang.String tableName,
                      int rowNumber)
Create a new SQLInformation Object.

Parameters:
tableName - The table name to be used by the SQLStatmentBuilder.
rowNumber - The row number thas is the target of the SQLStatmentBuilder.

SQLInformation

public SQLInformation(java.lang.String tableName,
                      int rowNumber,
                      int updateType)
Create a new SQLInformation Object.

Parameters:
tableName - The table name to be used by the SQLStatmentBuilder.
rowNumber - The row number thas is the target of the SQLStatmentBuilder.
updateType - The update type to be used by the SQLStatmentBuilder. The update type avaliable are DataAccessObject.SUPERSET_UPDATE and DataAccessObject.INDIVIDUAL_UPDATE.

SQLInformation

public SQLInformation(java.lang.String tableName)
Create a new SQLInformation Object.

Parameters:
tableName - The table name to be used by the SQLStatmentBuilder.
Method Detail

getTableName

public java.lang.String getTableName()
Getter for property tableName.

Returns:
Value of property tableName.

setTableName

public void setTableName(java.lang.String tableName)
Setter for property tableName.

Parameters:
tableName - New value of property tableName.

getWhereString

public java.lang.String getWhereString()
Getter for property whereString.

Returns:
Value of property whereString.

setWhereString

public void setWhereString(java.lang.String whereString)
Setter for property whereString.

Parameters:
whereString - New value of property whereString.

getTablesJoin

public java.util.List getTablesJoin()
Getter for property joinString.

Returns:
Value of property joinString.

setTablesJoin

public void setTablesJoin(java.util.List tablesJoin)
Setter for property tablesJoin.

Parameters:
tablesJoin - New value of property joinString.

getOrderBy

public java.util.List getOrderBy()
Getter for property orderBy.

Returns:
Value of property orderBy.

setOrderBy

public void setOrderBy(java.util.List orderBy)
Setter for property orderBy.

Parameters:
orderBy - New value of property orderBy.

isDistinctQuery

public boolean isDistinctQuery()
Getter for property distinctQuery.

Returns:
Value of property distinctQuery.

setDistinctQuery

public void setDistinctQuery(boolean distinctQuery)
Setter for property distinctQuery.

Parameters:
distinctQuery - New value of property distinctQuery.

getRowNumber

public int getRowNumber()
Getter for property rowNumber.

Returns:
Value of property rowNumber.

setRowNumber

public void setRowNumber(int rowNumber)
Setter for property rowNumber.

Parameters:
rowNumber - New value of property rowNumber.

getUpdateType

public int getUpdateType()
Getter for property updateType.

Returns:
Value of property updateType.

setUpdateType

public void setUpdateType(int updateType)
Setter for property updateType.

Parameters:
updateType - New value of property updateType.

getSelectList

public java.util.List getSelectList()
Getter for property selectList.

Returns:
Value of property selectList.

setSelectList

public void setSelectList(java.util.List selectList)
Setter for property selectList.

Parameters:
selectList - New value of property selectList.

isForUpdate

public boolean isForUpdate()
Getter for property forUpdate.

Returns:
Value of property forUpdate.

setForUpdate

public void setForUpdate(boolean forUpdate)
Setter for property forUpdate.

Parameters:
forUpdate - New value of property forUpdate.

isUseJoin

public boolean isUseJoin()
Getter for property useJoin.

Returns:
Value of property useJoin.

setUseJoin

public void setUseJoin(boolean useJoin)
Setter for property useJoin.

Parameters:
useJoin - New value of property useJoin.