info.informatica.data.sql
Class SelectStatement

java.lang.Object
  extended by info.informatica.data.sql.SQLStatement
      extended by info.informatica.data.sql.SQLDataStatement
          extended by info.informatica.data.sql.SelectStatement
All Implemented Interfaces:
Serializable

public class SelectStatement
extends SQLDataStatement
implements Serializable

Select statement.

Author:
amengual at informatica dot info
See Also:
Serialized Form

Constructor Summary
SelectStatement(MetaData metadata)
           
 
Method Summary
 SortMap getOrderBy()
           
 String getStatement()
           
 PreparedStatement prepareStatement(Connection con)
           
 void setKeysInWhere()
           
 void setOrderByKeys()
          Set the Order By clause to the key fields, in ascending order.
 void setWhereClause(WhereClause where)
           
 String toString()
           
 
Methods inherited from class info.informatica.data.sql.SQLDataStatement
getFlags, getTableReference, setFlags, setTableReference
 
Methods inherited from class info.informatica.data.sql.SQLStatement
fillStatement, fillStatement, onModify, setStatement
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SelectStatement

public SelectStatement(MetaData metadata)
Method Detail

setWhereClause

public void setWhereClause(WhereClause where)

setKeysInWhere

public void setKeysInWhere()
                    throws DataException
Throws:
DataException

setOrderByKeys

public void setOrderByKeys()
Set the Order By clause to the key fields, in ascending order.


getOrderBy

public SortMap getOrderBy()

prepareStatement

public PreparedStatement prepareStatement(Connection con)
                                   throws SQLException
Overrides:
prepareStatement in class SQLStatement
Throws:
SQLException

toString

public String toString()
Overrides:
toString in class SQLStatement

getStatement

public String getStatement()
Overrides:
getStatement in class SQLStatement