|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--kiurubeans.KiuruHandler
|
+--kiurubeans.SearchHandler
|
+--kiurubeans.ReservationSearch
Search class for Reservations
| Field Summary |
| Fields inherited from class kiurubeans.SearchHandler |
RESET_SEARCH, SUBMIT_SEARCH |
| Fields inherited from class kiurubeans.KiuruHandler |
NO_ACTION |
| Constructor Summary | |
ReservationSearch()
Creates a new instance of ReservationSearch |
|
| Method Summary | |
protected void |
defaultAction()
No implementation yet. |
protected void |
doClearActionState(javax.servlet.http.HttpServletRequest request)
Default implementation of clearing action state. |
protected void |
doClearEmptyParameters(javax.servlet.http.HttpServletRequest request)
Ensures empty request parameters are clearer when entity is posted. |
boolean |
getOldReservations()
Getter for attribute oldReservations |
int |
getReservationId()
Getter for attribute reservationId |
RS2 |
getReservations(DB db)
Returns all active reservations active since now. |
RS2 |
getReservations(DB db,
int personId)
returns person's reservations |
java.lang.String |
getReservationSql()
Gets sql string for retrieving reservations |
java.lang.String |
getReservationSql(int resId)
Gets sql string for retrieving a single reservation data |
void |
resetSearch()
No implementation yet. |
void |
setOldReservations(boolean b)
Setter for attribute oldReservations |
void |
setReservationId(int i)
Setter for attribute reservationId |
void |
submitSearch()
No implementation yet. |
| Methods inherited from class kiurubeans.SearchHandler |
assignDefaultOrder, clearEmptyParameters, fieldIndexOf, getMaxState, getOrder, getOrderClause, getVisibleFields, getVisibleFields, setContinueSearch, setOrder, setSubmitSearch, setVisibleFields, setVisibleFields |
| Methods inherited from class kiurubeans.KiuruHandler |
addError, addNotice, getEnumState, getError, getLangId, getOk, getUser, performAction, resetActionState, resetErrorState, setEnumState, setError, setOk, setUser |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ReservationSearch()
| Method Detail |
public void setReservationId(int i)
i - new idpublic int getReservationId()
public java.lang.String getReservationSql()
public java.lang.String getReservationSql(int resId)
resId - input reservation id
public void setOldReservations(boolean b)
b - new valuepublic boolean getOldReservations()
public RS2 getReservations(DB db)
throws java.lang.Exception
db - open db connection
java.lang.Exception - if problems with db connections
public RS2 getReservations(DB db,
int personId)
throws java.lang.Exception
db - open db connectionpersonId - person whose reservations we are searching
java.lang.Exception - if problems with db connectionsprotected void doClearActionState(javax.servlet.http.HttpServletRequest request)
doClearActionState in class SearchHandlerrequest - The request-object of the JSP.SearchHandler.doClearActionState(HttpServletRequest)protected void doClearEmptyParameters(javax.servlet.http.HttpServletRequest request)
If bean is used in a JSP, this should be called in the beginning of page. If form content is "" or null it is not sent via HTTP, so those fields must be cleared manually. No action yet.
doClearEmptyParameters in class SearchHandlerrequest - HTTP request with parametersSearchHandler.clearEmptyParameters(HttpServletRequest)protected void defaultAction()
defaultAction in class SearchHandlerKiuruHandler.performAction()public void submitSearch()
submitSearch in class SearchHandlerpublic void resetSearch()
resetSearch in class SearchHandler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||