java.lang.Objectorg.objectweb.telosys.common.TelosysObject
org.objectweb.telosys.service.StandardScreenService
org.objectweb.telosys.service.search.SQLSearchAncestor
Generic abstract class for SQL search services
Field Summary | |
protected boolean |
_bDynamicParameters
|
protected Criteria |
_criteria
|
protected SQLDataSetDefinition |
_dsDefinition
|
protected SearchMessages |
_messages
|
protected static int |
MAXI_DEFAULT
|
protected static int |
MAXI_NOT_SET
|
protected static int |
MAXI_UNLIMITED
|
Constructor Summary | |
SQLSearchAncestor()
|
Method Summary | |
void |
after(ScreenSession screenSession,
ServiceRequest serviceRequest,
ServiceResponse serviceResponse)
Hook method called after the search operation ( designed to be overridden in subclasses if necessary ) |
void |
before(ScreenSession screenSession,
ServiceRequest serviceRequest,
ServiceResponse serviceResponse)
Hook method called before the search operation ( designed to be overridden in subclasses if necessary ) |
protected int |
countParams(java.util.Map requestParameters)
|
protected int |
getDefaultMaxRows()
Returns the default value for the maximum number of rows |
protected Joker |
getJoker()
Returns the current "joker" |
protected int |
getMaxRows()
Returns the current value for the maximum number of rows |
protected java.lang.String |
getParamValue(java.util.Map requestParameters,
int iParamNum)
|
protected java.lang.String |
getParamValue(java.util.Map requestParameters,
java.lang.String sParamName)
|
protected java.lang.String[] |
getStringParams(java.util.Map requestParameters)
Return a String array of parameters |
protected void |
init(SQLDataSetDefinition def)
Initializes the SQL search service (no dynamic parameters) |
protected void |
init(SQLDataSetDefinition def,
Criteria criteria)
Initializes the SQL search service (with dynamic parameters) |
protected boolean |
maxRowsIsNotSet()
Returns true if the maximum number of rows is not set |
protected boolean |
maxRowsIsSet()
Returns true if the maximum number of rows is set |
protected void |
setCriterias(java.util.Map requestParameters)
Set the dynamic criterias according with the input parameters |
protected int |
setDefaultMaxRows()
Set the default maximum number of rows |
protected void |
setJoker()
Set the default "joker" ( all the "*" are replaced by "%" ) By default there's no joker |
protected void |
setJoker(Joker joker)
Set the specific "joker" to use By default there's no joker |
protected void |
setMaxRows(int iMaxi)
Set the maximum number of rows |
protected void |
setMessages(SearchMessages messages)
Set the messages provider to use |
protected void |
setSessionKey(java.lang.String s)
Deprecated. |
Methods inherited from class org.objectweb.telosys.service.StandardScreenService |
getName, getRenderer, getSessionKey, init |
Methods inherited from class org.objectweb.telosys.common.TelosysObject |
error, error, error, getFlagTrace, info, setFlagTrace, trace, warn |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.objectweb.telosys.service.ScreenService |
execute |
Field Detail |
protected static final int MAXI_UNLIMITED
protected static final int MAXI_NOT_SET
protected static final int MAXI_DEFAULT
protected boolean _bDynamicParameters
protected Criteria _criteria
protected SQLDataSetDefinition _dsDefinition
protected SearchMessages _messages
Constructor Detail |
public SQLSearchAncestor()
Method Detail |
protected void init(SQLDataSetDefinition def)
def
- the SQLDataset definition to use in this serviceprotected void init(SQLDataSetDefinition def, Criteria criteria)
def
- the SQLDataset definition to use in this servicecriteria
- the SQL criteria to useprotected boolean maxRowsIsSet()
protected boolean maxRowsIsNotSet()
protected int setDefaultMaxRows()
protected int getDefaultMaxRows()
protected void setMaxRows(int iMaxi)
iMaxi
- protected int getMaxRows()
protected void setMessages(SearchMessages messages)
messages
- protected void setSessionKey(java.lang.String s)
s
- protected void setJoker(Joker joker)
joker
- protected void setJoker()
protected Joker getJoker()
protected java.lang.String getParamValue(java.util.Map requestParameters, java.lang.String sParamName)
protected java.lang.String getParamValue(java.util.Map requestParameters, int iParamNum)
protected int countParams(java.util.Map requestParameters)
protected java.lang.String[] getStringParams(java.util.Map requestParameters)
requestParameters
-
protected void setCriterias(java.util.Map requestParameters)
requestParameters
-
public void before(ScreenSession screenSession, ServiceRequest serviceRequest, ServiceResponse serviceResponse)
screenSession
- serviceRequest
- serviceResponse
- public void after(ScreenSession screenSession, ServiceRequest serviceRequest, ServiceResponse serviceResponse)
screenSession
- serviceRequest
- serviceResponse
-