KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ofbiz > entity > transaction > TransactionFactoryInterface


1 /*
2  * $Id: TransactionFactoryInterface.java 6778 2006-02-20 05:13:55Z jonesde $
3  *
4  * Copyright 2001-2006 The Apache Software Foundation
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License"); you may not
7  * use this file except in compliance with the License. You may obtain a copy of
8  * the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
14  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
15  * License for the specific language governing permissions and limitations
16  * under the License.
17  */

18 package org.ofbiz.entity.transaction;
19
20 import javax.transaction.*;
21 import java.sql.*;
22
23 import org.ofbiz.entity.*;
24
25 /**
26  * TransactionFactory - central source for JTA objects
27  *
28  *@author <a HREF="mailto:jonesde@ofbiz.org">David E. Jones</a>
29  *@version 1.0
30  *@created July 1, 2001, 5:03 PM
31  */

32 public interface TransactionFactoryInterface {
33
34     public TransactionManager getTransactionManager();
35
36     public UserTransaction getUserTransaction();
37     
38     public String JavaDoc getTxMgrName();
39     
40     public Connection getConnection(String JavaDoc helperName) throws SQLException, GenericEntityException;
41     
42     public void shutdown();
43 }
44
Popular Tags