java.lang.Objectorg.objectweb.telosys.dal.dao.StandardQuery
Constructor Summary | |
StandardQuery(int iKeySize,
java.lang.String sSqlSelectData,
java.lang.String sSqlSelectCount,
java.lang.String sSqlDelete)
Constructor for a standard LIST QUERY object |
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StandardQuery(int iKeySize, java.lang.String sSqlSelectData, java.lang.String sSqlSelectCount, java.lang.String sSqlDelete)
iKeySize
- sSqlSelectData
- sSqlSelectCount
- sSqlDelete
- Method Detail |
public int getParamCount()
ListQuery
getParamCount
in interface ListQuery
public java.lang.String getParametersString()
ListQuery
getParametersString
in interface ListQuery
public java.lang.String getSqlSelect()
ListQuery
getSqlSelect
in interface ListQuery
public java.lang.String getSqlDelete()
ListQuery
getSqlDelete
in interface ListQuery
public java.lang.String getSqlCount()
ListQuery
getSqlCount
in interface ListQuery
public void setParameter(int iIndex, java.lang.Object oValue)
ListQuery
setParameter
in interface ListQuery
iIndex
- index of the parameter to set ( 1 to N )oValue
- value of the parameterpublic void setParameter(int iIndex, short shValue)
ListQuery
setParameter
in interface ListQuery
iIndex
- index of the parameter to set ( 1 to N )shValue
- value of the parameterpublic void setParameter(int iIndex, int iValue)
ListQuery
setParameter
in interface ListQuery
iIndex
- index of the parameter to set ( 1 to N )iValue
- value of the parameterpublic void setParameter(int iIndex, long lValue)
ListQuery
setParameter
in interface ListQuery
iIndex
- index of the parameter to set ( 1 to N )lValue
- value of the parameterpublic java.lang.Object getParameter(int iIndex)
ListQuery
getParameter
in interface ListQuery
iIndex
- index of the parameter ( 1 to N )