Package com.ibatis

Class Mybatis

    • Constructor Summary

      Constructors 
      Constructor Description
      Mybatis()  
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      int delete​(java.lang.String namespace, java.lang.String statementID)
      DELETE
      int delete​(java.lang.String namespace, java.lang.String statementID, Solo parameter)
      DELETE
      int insert​(java.lang.String namespace, java.lang.String statementID)
      INSERT
      int insert​(java.lang.String namespace, java.lang.String statementID, Solo parameter)
      INSERT
      SList selectList​(java.lang.String namespace, java.lang.String statementID)
      SELECT LIST
      SList selectList​(java.lang.String namespace, java.lang.String statementID, Solo parameter)
      SELECT LIST
      SList selectListForBatch​(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)  
      SList selectListForPage​(java.lang.String namespace, java.lang.String statementID, Solo parameter)
      SELECT LIST For page
      Solo selectOne​(java.lang.String namespace, java.lang.String statementID)
      SELECT ONE RECORD
      Solo selectOne​(java.lang.String namespace, java.lang.String statementID, Solo parameter)
      SELECT ONE RECORD
      Solo selectOneForUpdate​(java.lang.String namespace, java.lang.String statementID, long timeoutMillis)
      SELECT ONE For update With retry !!! Should change your query first cf) SELECT .....
      Solo selectOneForUpdate​(java.lang.String namespace, java.lang.String statementID, long retry, long sleepMillis)
      Deprecated.
      Solo selectOneForUpdate​(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 .....
      Solo selectOneForUpdate​(java.lang.String namespace, java.lang.String statementID, Solo parameter, long retry, long sleepMillis)
      Deprecated.
      void setTimeout​(java.lang.String namespace, java.lang.String statementID)  
      int update​(java.lang.String namespace, java.lang.String statementID)
      UPDATE
      int update​(java.lang.String namespace, java.lang.String statementID, Solo parameter)
      UPDATE
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Mybatis

        public Mybatis()
    • Method Detail

      • setTimeout

        public void setTimeout​(java.lang.String namespace,
                               java.lang.String statementID)
        Specified by:
        setTimeout in interface MybatisInterface
      • insert

        public int insert​(java.lang.String namespace,
                          java.lang.String statementID)
                   throws SoloException
          INSERT
         
        Specified by:
        insert in interface MybatisInterface
        Parameters:
        namespace -
        statementID -
        Returns:
        Throws:
        SoloException
      • insert

        public int insert​(java.lang.String namespace,
                          java.lang.String statementID,
                          Solo parameter)
                   throws SoloException
          INSERT
         
        Specified by:
        insert in interface MybatisInterface
        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:
        selectOneForUpdate in interface MybatisInterface
        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:
        selectOneForUpdate in interface MybatisInterface
        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
      • selectListForPage

        public SList selectListForPage​(java.lang.String namespace,
                                       java.lang.String statementID,
                                       Solo parameter)
                                throws SoloException
          SELECT LIST For page
         
        Specified by:
        selectListForPage in interface MybatisInterface
        Parameters:
        namespace -
        statementID -
        parameter - pageSize ( default is 10 ) pageNumber starts from 1
        Returns:
        Throws:
        SOldException
        SoloException
      • update

        public int update​(java.lang.String namespace,
                          java.lang.String statementID)
                   throws SoloException
          UPDATE
         
        Specified by:
        update in interface MybatisInterface
        Parameters:
        namespace -
        statementID -
        Returns:
        Throws:
        SoloException
      • update

        public int update​(java.lang.String namespace,
                          java.lang.String statementID,
                          Solo parameter)
                   throws SoloException
          UPDATE
         
        Specified by:
        update in interface MybatisInterface
        Parameters:
        namespace -
        statementID -
        parameter -
        Returns:
        Throws:
        SoloException
      • delete

        public int delete​(java.lang.String namespace,
                          java.lang.String statementID)
                   throws SoloException
          DELETE
         
        Specified by:
        delete in interface MybatisInterface
        Parameters:
        namespace -
        statementID -
        Returns:
        Throws:
        SoloException
      • delete

        public int delete​(java.lang.String namespace,
                          java.lang.String statementID,
                          Solo parameter)
                   throws SoloException
          DELETE
         
        Specified by:
        delete in interface MybatisInterface
        Parameters:
        namespace -
        statementID -
        parameter -
        Returns:
        Throws:
        SoloException