com.ibatis.sqlmap.engine.impl

Class SqlMapClientImpl

public class SqlMapClientImpl extends Object implements SqlMapClient, ExtendedSqlMapClient

Implementation of ExtendedSqlMapClient
Field Summary
SqlMapExecutorDelegatedelegate
Delegate for SQL execution
protected ThreadLocallocalSqlMapSession
Constructor Summary
SqlMapClientImpl(SqlMapExecutorDelegate delegate)
Constructor to supply a delegate
Method Summary
voidcommitTransaction()
intdelete(String id, Object param)
intdelete(String id)
voidendTransaction()
intexecuteBatch()
ListexecuteBatchDetailed()
voidflushDataCache()
voidflushDataCache(String cacheId)
ConnectiongetCurrentConnection()
DataSourcegetDataSource()
SqlMapExecutorDelegategetDelegate()
protected SqlMapSessionImplgetLocalSqlMapSession()
MappedStatementgetMappedStatement(String id)
ResultObjectFactorygetResultObjectFactory()
SqlMapSessiongetSession()
TODO : DEPRECATED
SqlExecutorgetSqlExecutor()
ConnectiongetUserConnection()
TODO Deprecated
Objectinsert(String id, Object param)
Objectinsert(String id)
booleanisEnhancementEnabled()
booleanisLazyLoadingEnabled()
SqlMapSessionopenSession()
SqlMapSessionopenSession(Connection conn)
ListqueryForList(String id, Object paramObject)
ListqueryForList(String id)
ListqueryForList(String id, Object paramObject, int skip, int max)
ListqueryForList(String id, int skip, int max)
MapqueryForMap(String id, Object paramObject, String keyProp)
MapqueryForMap(String id, Object paramObject, String keyProp, String valueProp)
ObjectqueryForObject(String id, Object paramObject)
ObjectqueryForObject(String id)
ObjectqueryForObject(String id, Object paramObject, Object resultObject)
PaginatedListqueryForPaginatedList(String id, Object paramObject, int pageSize)
PaginatedListqueryForPaginatedList(String id, int pageSize)
voidqueryWithRowHandler(String id, Object paramObject, RowHandler rowHandler)
voidqueryWithRowHandler(String id, RowHandler rowHandler)
voidsetUserConnection(Connection connection)
voidstartBatch()
voidstartTransaction()
voidstartTransaction(int transactionIsolation)
intupdate(String id, Object param)
intupdate(String id)

Field Detail

delegate

public SqlMapExecutorDelegate delegate
Delegate for SQL execution

localSqlMapSession

protected ThreadLocal localSqlMapSession

Constructor Detail

SqlMapClientImpl

public SqlMapClientImpl(SqlMapExecutorDelegate delegate)
Constructor to supply a delegate

Parameters: delegate - the delegate

Method Detail

commitTransaction

public void commitTransaction()

delete

public int delete(String id, Object param)

delete

public int delete(String id)

endTransaction

public void endTransaction()

executeBatch

public int executeBatch()

executeBatchDetailed

public List executeBatchDetailed()

flushDataCache

public void flushDataCache()

flushDataCache

public void flushDataCache(String cacheId)

getCurrentConnection

public Connection getCurrentConnection()

getDataSource

public DataSource getDataSource()

getDelegate

public SqlMapExecutorDelegate getDelegate()

getLocalSqlMapSession

protected SqlMapSessionImpl getLocalSqlMapSession()

getMappedStatement

public MappedStatement getMappedStatement(String id)

getResultObjectFactory

public ResultObjectFactory getResultObjectFactory()

getSession

public SqlMapSession getSession()

Deprecated: Use openSession()

TODO : DEPRECATED

getSqlExecutor

public SqlExecutor getSqlExecutor()

getUserConnection

public Connection getUserConnection()

Deprecated:

TODO Deprecated

Returns: Current connection

Throws: SQLException

insert

public Object insert(String id, Object param)

insert

public Object insert(String id)

isEnhancementEnabled

public boolean isEnhancementEnabled()

isLazyLoadingEnabled

public boolean isLazyLoadingEnabled()

openSession

public SqlMapSession openSession()

openSession

public SqlMapSession openSession(Connection conn)

queryForList

public List queryForList(String id, Object paramObject)

queryForList

public List queryForList(String id)

queryForList

public List queryForList(String id, Object paramObject, int skip, int max)

queryForList

public List queryForList(String id, int skip, int max)

queryForMap

public Map queryForMap(String id, Object paramObject, String keyProp)

queryForMap

public Map queryForMap(String id, Object paramObject, String keyProp, String valueProp)

queryForObject

public Object queryForObject(String id, Object paramObject)

queryForObject

public Object queryForObject(String id)

queryForObject

public Object queryForObject(String id, Object paramObject, Object resultObject)

queryForPaginatedList

public PaginatedList queryForPaginatedList(String id, Object paramObject, int pageSize)

Deprecated: All paginated list features have been deprecated

queryForPaginatedList

public PaginatedList queryForPaginatedList(String id, int pageSize)

Deprecated: All paginated list features have been deprecated

queryWithRowHandler

public void queryWithRowHandler(String id, Object paramObject, RowHandler rowHandler)

queryWithRowHandler

public void queryWithRowHandler(String id, RowHandler rowHandler)

setUserConnection

public void setUserConnection(Connection connection)

startBatch

public void startBatch()

startTransaction

public void startTransaction()

startTransaction

public void startTransaction(int transactionIsolation)

update

public int update(String id, Object param)

update

public int update(String id)
Copyright © 2011. All Rights Reserved.