org.objectweb.telosys.service.search
Class SQLSearchAncestor

java.lang.Object
  extended byorg.objectweb.telosys.common.TelosysObject
      extended byorg.objectweb.telosys.service.StandardScreenService
          extended byorg.objectweb.telosys.service.search.SQLSearchAncestor
All Implemented Interfaces:
ScreenService
Direct Known Subclasses:
SQLSearch, SQLSearchWithCount, SQLSearchWithPages

public abstract class SQLSearchAncestor
extends StandardScreenService


Field Summary
protected  boolean _bDynamicParameters
           
protected  Criteria _criterias
           
protected  SQLDataSetDefinition _dsDefinition
           
protected  SearchMessages _messages
           
protected  java.lang.String _sSessionKey
           
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()
           
protected  Joker getJoker()
           
protected  int getMaxRows()
           
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)
           
protected  void init(SQLDataSetDefinition def, Criteria criterias)
           
protected  boolean maxRowsIsNotSet()
           
protected  boolean maxRowsIsSet()
           
protected  void setCriterias(java.util.Map requestParameters)
          Set the dynamic criterias according with the input parameters
protected  int setDefaultMaxRows()
           
protected  void setJoker()
           
protected  void setJoker(Joker joker)
           
protected  void setMaxRows(int iMaxi)
           
protected  void setMessages(SearchMessages messages)
           
protected  void setSessionKey(java.lang.String s)
           
 
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

MAXI_UNLIMITED

protected static final int MAXI_UNLIMITED
See Also:
Constant Field Values

MAXI_NOT_SET

protected static final int MAXI_NOT_SET
See Also:
Constant Field Values

MAXI_DEFAULT

protected static final int MAXI_DEFAULT
See Also:
Constant Field Values

_bDynamicParameters

protected boolean _bDynamicParameters

_criterias

protected Criteria _criterias

_dsDefinition

protected SQLDataSetDefinition _dsDefinition

_messages

protected SearchMessages _messages

_sSessionKey

protected java.lang.String _sSessionKey
Constructor Detail

SQLSearchAncestor

public SQLSearchAncestor()
Method Detail

init

protected void init(SQLDataSetDefinition def)

init

protected void init(SQLDataSetDefinition def,
                    Criteria criterias)

maxRowsIsSet

protected boolean maxRowsIsSet()

maxRowsIsNotSet

protected boolean maxRowsIsNotSet()

setDefaultMaxRows

protected int setDefaultMaxRows()

getDefaultMaxRows

protected int getDefaultMaxRows()

setMaxRows

protected void setMaxRows(int iMaxi)

getMaxRows

protected int getMaxRows()

setMessages

protected void setMessages(SearchMessages messages)

setSessionKey

protected void setSessionKey(java.lang.String s)

setJoker

protected void setJoker(Joker joker)

setJoker

protected void setJoker()

getJoker

protected Joker getJoker()

getParamValue

protected java.lang.String getParamValue(java.util.Map requestParameters,
                                         java.lang.String sParamName)

getParamValue

protected java.lang.String getParamValue(java.util.Map requestParameters,
                                         int iParamNum)

countParams

protected int countParams(java.util.Map requestParameters)

getStringParams

protected java.lang.String[] getStringParams(java.util.Map requestParameters)
Return a String array of parameters

Parameters:
requestParameters -
Returns:
parameters array

setCriterias

protected void setCriterias(java.util.Map requestParameters)
Set the dynamic criterias according with the input parameters

Parameters:
requestParameters -
Returns:

before

public void before(ScreenSession screenSession,
                   ServiceRequest serviceRequest,
                   ServiceResponse serviceResponse)
Hook method called before the search operation
( designed to be overridden in subclasses if necessary )

Parameters:
screenSession -
serviceRequest -
serviceResponse -

after

public void after(ScreenSession screenSession,
                  ServiceRequest serviceRequest,
                  ServiceResponse serviceResponse)
Hook method called after the search operation
( designed to be overridden in subclasses if necessary )

Parameters:
screenSession -
serviceRequest -
serviceResponse -