01: /*
02: * Copyright 2005-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: /*
17: * Created on Oct 12, 2005
18: *
19: */
20: package org.kuali.module.gl.batch.poster;
21:
22: import java.util.Date;
23:
24: import org.kuali.module.gl.bo.Transaction;
25:
26: /**
27: * An interface that delcares the methods that the Poster needs to post a transaction.
28: */
29: public interface PostTransaction {
30: /**
31: * Post a single transaction to a single destination.
32: *
33: * @param t Transaction to post
34: * @param mode PosterService.MODE_ENTRIES or PosterService.MODE_REVERSAL
35: * @param postDate post date/time
36: * @return The letter I if a row was inserted, U updated, D deleted. The string can have multiple codes.
37: */
38: public String post(Transaction t, int mode, Date postDate);
39:
40: /**
41: * The name of the destination for the post (ie, the database table name where resultant records will be posted)
42: *
43: * @return name
44: */
45: public String getDestinationName();
46: }
|