org.objectweb.telosys.dal.dao
Interface ListQuery

All Known Implementing Classes:
StandardQuery

public interface ListQuery


Method Summary
 int getParamCount()
          Returns the number of parameters for the query
 java.lang.Object getParameter(int iIndex)
          Get the value of a parameter
 java.lang.String getParametersString()
          Return the query parameters as a String
 java.lang.String getSqlCount()
          Return the SQL request "select count(*) from ..."
 java.lang.String getSqlDelete()
          Return the SQL request "delete from ..."
 java.lang.String getSqlSelect()
          Return the SQL request "select ... from ..."
 void setParameter(int iIndex, int iValue)
          Set the value of a parameter
 void setParameter(int iIndex, long lValue)
          Set the value of a parameter
 void setParameter(int iIndex, java.lang.Object oValue)
          Set the value of a parameter
 void setParameter(int iIndex, short shValue)
          Set the value of a parameter
 

Method Detail

getSqlSelect

public java.lang.String getSqlSelect()
Return the SQL request "select ... from ..."

Returns:

getSqlDelete

public java.lang.String getSqlDelete()
Return the SQL request "delete from ..."

Returns:

getSqlCount

public java.lang.String getSqlCount()
Return the SQL request "select count(*) from ..."

Returns:

setParameter

public void setParameter(int iIndex,
                         java.lang.Object oValue)
Set the value of a parameter

Parameters:
iIndex - index of the parameter to set ( 1 to N )
oValue - value of the parameter

setParameter

public void setParameter(int iIndex,
                         short shValue)
Set the value of a parameter

Parameters:
iIndex - index of the parameter to set ( 1 to N )
shValue - value of the parameter

setParameter

public void setParameter(int iIndex,
                         int iValue)
Set the value of a parameter

Parameters:
iIndex - index of the parameter to set ( 1 to N )
iValue - value of the parameter

setParameter

public void setParameter(int iIndex,
                         long lValue)
Set the value of a parameter

Parameters:
iIndex - index of the parameter to set ( 1 to N )
lValue - value of the parameter

getParamCount

public int getParamCount()
Returns the number of parameters for the query

Returns:

getParameter

public java.lang.Object getParameter(int iIndex)
Get the value of a parameter

Parameters:
iIndex - index of the parameter ( 1 to N )
Returns:
the value

getParametersString

public java.lang.String getParametersString()
Return the query parameters as a String

Returns: