1 16 package scriptella.spi; 17 18 26 public interface Connection { 27 30 DialectIdentifier getDialectIdentifier() throws ProviderException; 31 32 40 void executeScript(Resource scriptContent, ParametersCallback parametersCallback) throws ProviderException; 41 42 51 void executeQuery(Resource queryContent, ParametersCallback parametersCallback, QueryCallback queryCallback) throws ProviderException; 52 53 61 long getExecutedStatementsCount(); 62 63 66 void commit() throws ProviderException; 67 68 73 void rollback() throws ProviderException, UnsupportedOperationException ; 74 75 76 79 void close() throws ProviderException; 80 81 84 String toString(); 85 } 86 | Popular Tags |