|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.silverpeas.gallery.dao.MediaOrderSQLQueryBuilder
public class MediaOrderSQLQueryBuilder
A dynamic builder of a SQL query.
Constructor Summary | |
---|---|
MediaOrderSQLQueryBuilder()
|
Method Summary | |
---|---|
void |
endProcessing()
Informs the processor the process is ended. |
List<Order> |
orderingResult(List<Order> orders)
This method must be called after the order list is entirely loaded. |
MediaOrderCriteriaProcessor |
processComponentInstance(String componentInstanceId)
Processes the criterion on the component instance identifier. |
MediaOrderCriteriaProcessor |
processIdentifiers(List<String> identifiers)
Processes the criterion on the order identifiers. |
MediaOrderCriteriaProcessor |
processNbDaysAfterThatDeleteAnOrder(Date referenceDate,
int nbDaysAfterThatDeleteAnOrder)
Processes the criterion on the nb of days after that an order should be deleted. |
MediaOrderCriteriaProcessor |
processOrderer(String ordererId)
Processes the criterion on the orderer identifier of the orders. |
org.apache.commons.lang3.tuple.Pair<String,List<Object>> |
result()
Gets the result of the processing. |
void |
startProcessing()
Informs the processor the start of the process. |
MediaOrderCriteriaProcessor |
then()
Informs the processor that there is a new criterion to process. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MediaOrderSQLQueryBuilder()
Method Detail |
---|
public void startProcessing()
MediaOrderCriteriaProcessor
startProcessing
in interface MediaOrderCriteriaProcessor
public void endProcessing()
MediaOrderCriteriaProcessor
The processing has to stop once this method is called. Hence, the call of process methods should result to nothing or to an exception.
endProcessing
in interface MediaOrderCriteriaProcessor
public org.apache.commons.lang3.tuple.Pair<String,List<Object>> result()
MediaOrderCriteriaProcessor
MediaOrderCriteriaProcessor.endProcessing()
method).
result
in interface MediaOrderCriteriaProcessor
public MediaOrderCriteriaProcessor then()
MediaOrderCriteriaProcessor
then
in interface MediaOrderCriteriaProcessor
public MediaOrderCriteriaProcessor processComponentInstance(String componentInstanceId)
MediaOrderCriteriaProcessor
processComponentInstance
in interface MediaOrderCriteriaProcessor
componentInstanceId
- the identifier of the component instance concerned by the
criterion.
public MediaOrderCriteriaProcessor processOrderer(String ordererId)
MediaOrderCriteriaProcessor
processOrderer
in interface MediaOrderCriteriaProcessor
ordererId
- the orderer user concerned by the criterion.
public MediaOrderCriteriaProcessor processNbDaysAfterThatDeleteAnOrder(Date referenceDate, int nbDaysAfterThatDeleteAnOrder)
MediaOrderCriteriaProcessor
processNbDaysAfterThatDeleteAnOrder
in interface MediaOrderCriteriaProcessor
nbDaysAfterThatDeleteAnOrder
- the nb of days after that an order should be deleted.
public MediaOrderCriteriaProcessor processIdentifiers(List<String> identifiers)
MediaOrderCriteriaProcessor
processIdentifiers
in interface MediaOrderCriteriaProcessor
identifiers
- the order identifiers concerned by the criterion.
public List<Order> orderingResult(List<Order> orders)
MediaOrderCriteriaProcessor
orderingResult
in interface MediaOrderCriteriaProcessor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |