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 org.kuali.module.labor.service;
17:
18: import org.kuali.module.labor.bo.LaborGeneralLedgerEntry;
19:
20: /**
21: * This interface provides its clients with access to labor general leger entries in the backend data store.
22: */
23: public interface LaborGeneralLedgerEntryService {
24:
25: /**
26: * Save the given ledger entry or update it if it exsits
27: *
28: * @param ledgerEntry the given ledger entry
29: */
30: void save(LaborGeneralLedgerEntry laborGeneralLedgerEntry);
31:
32: /**
33: * The sequence number is one of the primary keys of ledger entry. The entries can be grouped by other keys. This method is used
34: * to get the maximum sequence number in the group of entries.
35: *
36: * @param ledgerEntry the given ledger entry
37: * @return the maximum sequence number in a group of entries. If the group doesn't exist, return 0.
38: */
39: Integer getMaxSequenceNumber(
40: LaborGeneralLedgerEntry laborGeneralLedgerEntry);
41: }
|