01: /*
02: * Copyright 2007 The Kuali Foundation
03: *
04: * Licensed under the Educational Community License, Version 1.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.opensource.org/licenses/ecl1.php
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16: package edu.iu.uis.eden.messaging.dao;
17:
18: import java.util.List;
19: import java.util.Map;
20:
21: import javax.xml.namespace.QName;
22:
23: import edu.iu.uis.eden.messaging.PersistedMassagePayload;
24: import edu.iu.uis.eden.messaging.PersistedMessage;
25:
26: public interface MessageQueueDAO {
27:
28: public void remove(PersistedMessage routeQueue);
29:
30: public void save(PersistedMessage routeQueue);
31:
32: public PersistedMessage findByRouteQueueId(Long routeQueueId);
33:
34: public List<PersistedMessage> findAll();
35:
36: public List<PersistedMessage> findAll(int maxRows);
37:
38: public List<PersistedMessage> getNextDocuments(Integer maxDocuments);
39:
40: public List<PersistedMessage> findByServiceName(QName serviceName,
41: String methodName);
42:
43: /**
44: * Finds the persisted messages that match the values passed into the criteriaValues Map, with an EqualTo criteria
45: * for each.
46: *
47: * @param criteriaValues
48: * A Map of Key/Value pairs, where the Key is a string holding the field name, and the Value is a
49: * string holding the value to match.
50: * @return A populated (or empty) list containing the results of the search. If no matches are made, an empty list
51: * will be returned.
52: */
53: public List<PersistedMessage> findByValues(
54: Map<String, String> criteriaValues, int maxRows);
55:
56: public PersistedMassagePayload findByPersistedMessageByRouteQueueId(
57: Long routeQueueId);
58: }
|