Package com.ibatis
Class Mybatis
- java.lang.Object
-
- com.ibatis.Mybatis
-
- All Implemented Interfaces:
MybatisInterface
@Repository public class Mybatis extends java.lang.Object implements MybatisInterface
-
-
Constructor Summary
Constructors Constructor Description Mybatis()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description intdelete(java.lang.String namespace, java.lang.String statementID)DELETEintdelete(java.lang.String namespace, java.lang.String statementID, Solo parameter)DELETEintinsert(java.lang.String namespace, java.lang.String statementID)INSERTintinsert(java.lang.String namespace, java.lang.String statementID, Solo parameter)INSERTSListselectList(java.lang.String namespace, java.lang.String statementID)SELECT LISTSListselectList(java.lang.String namespace, java.lang.String statementID, Solo parameter)SELECT LISTSListselectListForBatch(java.lang.String namespace, java.lang.String statementID, Solo parameter)SELECT LIST For batch (unlimited)org.apache.ibatis.cursor.Cursor<Solo>selectListForBatchCursor(java.lang.String namespace, java.lang.String statementID, Solo parameter)SListselectListForPage(java.lang.String namespace, java.lang.String statementID, Solo parameter)SELECT LIST For pageSoloselectOne(java.lang.String namespace, java.lang.String statementID)SELECT ONE RECORDSoloselectOne(java.lang.String namespace, java.lang.String statementID, Solo parameter)SELECT ONE RECORDSoloselectOneForUpdate(java.lang.String namespace, java.lang.String statementID, long timeoutMillis)SELECT ONE For update With retry !!! Should change your query first cf) SELECT .....SoloselectOneForUpdate(java.lang.String namespace, java.lang.String statementID, long retry, long sleepMillis)Deprecated.SoloselectOneForUpdate(java.lang.String namespace, java.lang.String statementID, Solo parameter, long timeoutMillis)SELECT ONE For update With retry !!! Should change your query first cf) SELECT .....SoloselectOneForUpdate(java.lang.String namespace, java.lang.String statementID, Solo parameter, long retry, long sleepMillis)Deprecated.voidsetTimeout(java.lang.String namespace, java.lang.String statementID)intupdate(java.lang.String namespace, java.lang.String statementID)UPDATEintupdate(java.lang.String namespace, java.lang.String statementID, Solo parameter)UPDATE
-
-
-
Method Detail
-
setTimeout
public void setTimeout(java.lang.String namespace, java.lang.String statementID)- Specified by:
setTimeoutin interfaceMybatisInterface
-
insert
public int insert(java.lang.String namespace, java.lang.String statementID) throws SoloExceptionINSERT
- Specified by:
insertin interfaceMybatisInterface- Parameters:
namespace-statementID-- Returns:
- Throws:
SoloException
-
insert
public int insert(java.lang.String namespace, java.lang.String statementID, Solo parameter) throws SoloExceptionINSERT
- Specified by:
insertin interfaceMybatisInterface- Parameters:
namespace-statementID-parameter-- Returns:
- Throws:
SoloException
-
selectOne
public Solo selectOne(java.lang.String namespace, java.lang.String statementID) throws SoloException
SELECT ONE RECORD
- Specified by:
selectOnein interfaceMybatisInterface- Parameters:
namespace-statementID-- Returns:
- Throws:
SoloException
-
selectOne
public Solo selectOne(java.lang.String namespace, java.lang.String statementID, Solo parameter) throws SoloException
SELECT ONE RECORD
- Specified by:
selectOnein interfaceMybatisInterface- Parameters:
namespace-statementID-parameter-- Returns:
- Throws:
SoloException
-
selectOneForUpdate
public Solo selectOneForUpdate(java.lang.String namespace, java.lang.String statementID, long timeoutMillis) throws SoloException
SELECT ONE For update With retry !!! Should change your query first cf) SELECT ..... FOR UPDATE- Specified by:
selectOneForUpdatein interfaceMybatisInterface- Parameters:
namespace-statementID-timeoutMillis-- Returns:
- Throws:
SoloException
-
selectOneForUpdate
public Solo selectOneForUpdate(java.lang.String namespace, java.lang.String statementID, Solo parameter, long timeoutMillis) throws SoloException
SELECT ONE For update With retry !!! Should change your query first cf) SELECT ..... FOR UPDATE- Specified by:
selectOneForUpdatein interfaceMybatisInterface- Parameters:
namespace-statementID-parameter-timeoutMillis-- Returns:
- Throws:
SoloException
-
selectOneForUpdate
@Deprecated public Solo selectOneForUpdate(java.lang.String namespace, java.lang.String statementID, long retry, long sleepMillis) throws SoloException
Deprecated.SELECT ONE For update with retry
- Parameters:
namespace-statementID-retry-sleepMillis-- Returns:
- Throws:
SoloException
-
selectOneForUpdate
@Deprecated public Solo selectOneForUpdate(java.lang.String namespace, java.lang.String statementID, Solo parameter, long retry, long sleepMillis) throws SoloException
Deprecated.SELECT ONE For update with retry
- Parameters:
namespace-statementID-parameter-retry-sleepMillis-- Returns:
- Throws:
SoloException
-
selectList
public SList selectList(java.lang.String namespace, java.lang.String statementID) throws SoloException
SELECT LIST
- Specified by:
selectListin interfaceMybatisInterface- Parameters:
namespace-statementID-- Returns:
- Throws:
SoloException
-
selectList
public SList selectList(java.lang.String namespace, java.lang.String statementID, Solo parameter) throws SoloException
SELECT LIST
- Specified by:
selectListin interfaceMybatisInterface- Parameters:
namespace-statementID-parameter-- Returns:
- Throws:
SoloException
-
selectListForBatch
public SList selectListForBatch(java.lang.String namespace, java.lang.String statementID, Solo parameter) throws SoloException
SELECT LIST For batch (unlimited)
- Specified by:
selectListForBatchin interfaceMybatisInterface- Parameters:
namespace-statementID-parameter-- Returns:
- Throws:
SoloException
-
selectListForPage
public SList selectListForPage(java.lang.String namespace, java.lang.String statementID, Solo parameter) throws SoloException
SELECT LIST For page
- Specified by:
selectListForPagein interfaceMybatisInterface- Parameters:
namespace-statementID-parameter- pageSize ( default is 10 ) pageNumber starts from 1- Returns:
- Throws:
SOldExceptionSoloException
-
update
public int update(java.lang.String namespace, java.lang.String statementID) throws SoloExceptionUPDATE
- Specified by:
updatein interfaceMybatisInterface- Parameters:
namespace-statementID-- Returns:
- Throws:
SoloException
-
update
public int update(java.lang.String namespace, java.lang.String statementID, Solo parameter) throws SoloExceptionUPDATE
- Specified by:
updatein interfaceMybatisInterface- Parameters:
namespace-statementID-parameter-- Returns:
- Throws:
SoloException
-
delete
public int delete(java.lang.String namespace, java.lang.String statementID) throws SoloExceptionDELETE
- Specified by:
deletein interfaceMybatisInterface- Parameters:
namespace-statementID-- Returns:
- Throws:
SoloException
-
delete
public int delete(java.lang.String namespace, java.lang.String statementID, Solo parameter) throws SoloExceptionDELETE
- Specified by:
deletein interfaceMybatisInterface- Parameters:
namespace-statementID-parameter-- Returns:
- Throws:
SoloException
-
selectListForBatchCursor
public org.apache.ibatis.cursor.Cursor<Solo> selectListForBatchCursor(java.lang.String namespace, java.lang.String statementID, Solo parameter) throws SoloException
- Specified by:
selectListForBatchCursorin interfaceMybatisInterface- Throws:
SoloException
-
-