|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.eng.spagobi.commons.services.DelegatedBasicListService
public class DelegatedBasicListService
Provides all methods to handle a list of objects. Its methods are called from a list module class to get the objects list.
Field Summary | |
---|---|
static java.lang.String |
LIST_CURRENT
|
static java.lang.String |
LIST_DELETE
|
static java.lang.String |
LIST_FIRST
|
static java.lang.String |
LIST_LAST
|
static java.lang.String |
LIST_NEXT
|
static java.lang.String |
LIST_NOCACHE
|
static java.lang.String |
LIST_PAGE
|
static java.lang.String |
LIST_PREV
|
Constructor Summary | |
---|---|
DelegatedBasicListService()
Instantiates a new delegated basic list service. |
Method Summary | |
---|---|
static boolean |
delete(it.eng.spago.dispatching.service.ServiceIFace service,
it.eng.spago.base.SourceBean request,
it.eng.spago.base.SourceBean response)
Function that controls if the deletion of a row in a DB table has success or not. |
static java.lang.Object |
executeSelect(it.eng.spago.base.RequestContainer requestContainer,
it.eng.spago.base.ResponseContainer responseContainer,
java.lang.String pool,
java.lang.String statement)
Executes a select statement. |
static it.eng.spago.paginator.basic.ListIFace |
filterList(it.eng.spago.paginator.basic.ListIFace list,
java.util.List valuesfilter,
java.lang.String valuetypefilter,
java.lang.String columnfilter,
java.lang.String typeFilter,
it.eng.spago.error.EMFErrorHandler errorHandler)
Filters the list with a list of filtering values. |
static it.eng.spago.paginator.basic.ListIFace |
filterList(it.eng.spago.paginator.basic.ListIFace list,
java.lang.String valuefilter,
java.lang.String valuetypefilter,
java.lang.String columnfilter,
java.lang.String typeFilter,
it.eng.spago.error.EMFErrorHandler errorHandler)
Filters the list with a unique value filter. |
static java.util.List |
filterList(java.util.List list,
java.lang.String[] valuesfilter,
java.lang.String valuetypefilter,
java.lang.String columnfilter,
java.lang.String typeFilter)
Filters the list with a list of filtering values. |
static java.util.List |
filterList(java.util.List list,
java.lang.String valuefilter,
java.lang.String valuetypefilter,
java.lang.String columnfilter,
java.lang.String typeFilter)
|
static it.eng.spago.paginator.basic.ListIFace |
getList(it.eng.spago.dispatching.service.ServiceIFace service,
it.eng.spago.base.SourceBean request,
it.eng.spago.base.SourceBean response)
Gets the list for a particular SpagoBI object. |
static java.lang.String |
getMessage(it.eng.spago.base.SourceBean request)
Gets the information contained in a Source Bean attribute identified by the key "MESSAGE". |
static void |
service(it.eng.spago.dispatching.service.ServiceIFace service,
it.eng.spago.base.SourceBean request,
it.eng.spago.base.SourceBean response)
The service method for this class. |
static java.util.Date |
toDate(java.lang.String dateStr,
java.lang.String format)
Converts a String representing a date into a Date object, given the date format. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String LIST_PAGE
public static final java.lang.String LIST_FIRST
public static final java.lang.String LIST_PREV
public static final java.lang.String LIST_NEXT
public static final java.lang.String LIST_LAST
public static final java.lang.String LIST_CURRENT
public static final java.lang.String LIST_NOCACHE
public static final java.lang.String LIST_DELETE
Constructor Detail |
---|
public DelegatedBasicListService()
Method Detail |
---|
public static void service(it.eng.spago.dispatching.service.ServiceIFace service, it.eng.spago.base.SourceBean request, it.eng.spago.base.SourceBean response) throws java.lang.Exception
service
- The service interface objectrequest
- The request Source Beanresponse
- The response Source Bean
java.lang.Exception
- If any Exception occurredpublic static it.eng.spago.paginator.basic.ListIFace getList(it.eng.spago.dispatching.service.ServiceIFace service, it.eng.spago.base.SourceBean request, it.eng.spago.base.SourceBean response) throws java.lang.Exception
service
- The service interface objectrequest
- The request Source Beanresponse
- The response Source Bean
java.lang.Exception
- If any exception occurredpublic static it.eng.spago.paginator.basic.ListIFace filterList(it.eng.spago.paginator.basic.ListIFace list, java.util.List valuesfilter, java.lang.String valuetypefilter, java.lang.String columnfilter, java.lang.String typeFilter, it.eng.spago.error.EMFErrorHandler errorHandler)
list
- The list to be filteredvaluesfilter
- The list of filtering valuesvaluetypefilter
- The type of the value of the filter (STRING/NUM/DATE)columnfilter
- The column to be filteredtypeFilter
- The type of the filtererrorHandler
- The EMFErrorHandler object, in which errors are stored if they occurs
public static it.eng.spago.paginator.basic.ListIFace filterList(it.eng.spago.paginator.basic.ListIFace list, java.lang.String valuefilter, java.lang.String valuetypefilter, java.lang.String columnfilter, java.lang.String typeFilter, it.eng.spago.error.EMFErrorHandler errorHandler)
list
- The list to be filteredvaluefilter
- The value of the filtervaluetypefilter
- The type of the value of the filter (STRING/NUM/DATE)columnfilter
- The column to be filteredtypeFilter
- The type of the filtererrorHandler
- The EMFErrorHandler object, in which errors are stored if they occurs
public static java.util.List filterList(java.util.List list, java.lang.String[] valuesfilter, java.lang.String valuetypefilter, java.lang.String columnfilter, java.lang.String typeFilter)
list
- The list to be filteredvaluesfilter
- The list of filtering valuesvaluetypefilter
- The type of the value of the filter (STRING/NUM/DATE)columnfilter
- The column to be filteredtypeFilter
- The type of the filtererrorHandler
- The EMFErrorHandler object, in which errors are stored if they occurs
public static java.util.List filterList(java.util.List list, java.lang.String valuefilter, java.lang.String valuetypefilter, java.lang.String columnfilter, java.lang.String typeFilter)
public static java.util.Date toDate(java.lang.String dateStr, java.lang.String format) throws java.lang.Exception
dateStr
- The String representing the dateformat
- The date format
java.lang.Exception
- if any parsing exception occurspublic static java.lang.Object executeSelect(it.eng.spago.base.RequestContainer requestContainer, it.eng.spago.base.ResponseContainer responseContainer, java.lang.String pool, java.lang.String statement) throws it.eng.spago.error.EMFInternalError
requestContainer
- The request container objectresponseContainer
- The response container objectpool
- The pool definition stringstatement
- The statement definition string
it.eng.spago.error.EMFInternalError
- the EMF internal errorpublic static boolean delete(it.eng.spago.dispatching.service.ServiceIFace service, it.eng.spago.base.SourceBean request, it.eng.spago.base.SourceBean response)
service
- The service interface objectrequest
- The request Source Beanresponse
- The response SourceBean
public static java.lang.String getMessage(it.eng.spago.base.SourceBean request)
request
- The input Source Bean
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |