All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jpattern.orm.datasource.IConnection Maven / Gradle / Ivy

The newest version!
package com.jpattern.orm.datasource;

import com.jpattern.orm.exception.OrmException;

public interface IConnection {

	boolean isValid() throws OrmException;
	
	void setTransactionIsolation(int transactionIsolation) throws OrmException;

	boolean isClosed() throws OrmException;

	void rollback() throws OrmException;
	
	void commit() throws OrmException;

	PreparedStatementWrapper prepareStatement(String sql) throws OrmException;

	PreparedStatementWrapper prepareStatement(String sql, String[] generatedColumnNames) throws OrmException;

	IStatement createStatement() throws OrmException;

	void addCaller(IConnectionCaller connectionCaller) throws OrmException;
	
	void close(IConnectionCaller connectionCaller) throws OrmException;

	void setRollbackOnly() throws OrmException;
	
	void setReadOnly(boolean readOnly) throws OrmException;

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy