com.jpattern.orm.session.datasource
Interface IConnection

All Known Implementing Classes:
DataSourceConnection

public interface IConnection


Method Summary
 void addCaller(IConnectionCaller connectionCaller)
           
 void close(IConnectionCaller connectionCaller)
           
 void commit()
           
 IStatement createStatement()
           
 boolean isClosed()
           
 boolean isValid()
           
 PreparedStatement prepareStatement(String sql)
           
 PreparedStatement prepareStatement(String sql, String[] generatedColumnNames)
           
 void rollback()
           
 void setReadOnly(boolean readOnly)
           
 void setRollbackOnly()
           
 void setTransactionIsolation(int transactionIsolation)
           
 

Method Detail

isValid

boolean isValid()
                throws OrmException
Throws:
OrmException

setTransactionIsolation

void setTransactionIsolation(int transactionIsolation)
                             throws OrmException
Throws:
OrmException

isClosed

boolean isClosed()
                 throws OrmException
Throws:
OrmException

rollback

void rollback()
              throws OrmException
Throws:
OrmException

commit

void commit()
            throws OrmException
Throws:
OrmException

prepareStatement

PreparedStatement prepareStatement(String sql)
                                   throws OrmException
Throws:
OrmException

prepareStatement

PreparedStatement prepareStatement(String sql,
                                   String[] generatedColumnNames)
                                   throws OrmException
Throws:
OrmException

createStatement

IStatement createStatement()
                           throws OrmException
Throws:
OrmException

addCaller

void addCaller(IConnectionCaller connectionCaller)
               throws OrmException
Throws:
OrmException

close

void close(IConnectionCaller connectionCaller)
           throws OrmException
Throws:
OrmException

setRollbackOnly

void setRollbackOnly()
                     throws OrmException
Throws:
OrmException

setReadOnly

void setReadOnly(boolean readOnly)
                 throws OrmException
Throws:
OrmException


Copyright © 2013. All Rights Reserved.