1 package org.apache.ojb.broker.accesslayer; 2 3 17 18 import org.apache.ojb.broker.metadata.JdbcConnectionDescriptor; 19 import org.apache.ojb.broker.platforms.Platform; 20 21 import java.sql.Connection ; 22 23 28 public interface ConnectionManagerIF 29 { 30 31 34 JdbcConnectionDescriptor getConnectionDescriptor(); 35 36 41 Platform getSupportedPlatform(); 42 43 47 boolean isAlive(Connection conn); 48 49 52 Connection getConnection() throws LookupException; 53 54 57 boolean isInLocalTransaction(); 58 59 63 void localBegin(); 64 65 68 void localCommit(); 69 70 73 void localRollback(); 74 75 78 void releaseConnection(); 79 80 84 void setBatchMode(boolean mode); 85 86 89 boolean isBatchMode(); 90 91 94 void executeBatch(); 95 96 100 void executeBatchIfNecessary(); 101 102 105 void clearBatch(); 106 107 } 108 | Popular Tags |