public void open ( ) throws DBException { m_objLastModBookmark = null ; try { // FROM is automatic, since the remote BaseRecord is exactly the same as this one // ORDER BY String strKeyArea = this . getRecord ( ) . getKeyName ( ) ; // ASC / DESCending KeyAreaInfo keyArea = this . getRecord ( ) . getKeyArea ( - 1 ) ; boolean bKeyOrder = Constants . ASCENDING ; if ( keyArea != null ) bKeyOrder = keyArea . getKeyOrder ( ) ; // Open mode int iOpenMode = this . getRecord ( ) . getOpenMode ( ) ; // SELECT (fields to select - all) String strFields = null ; // WHERE aaa >= Object objInitialKey = null ; // WHERE aaa <= Object objEndKey = null ; // WHERE XYZ byte [ ] byFilter = null ; m_tableRemote . open ( strKeyArea , iOpenMode , bKeyOrder , strFields , objInitialKey , objEndKey , byFilter ) ; m_iCurrentRecord = - 1 ; m_iRecordsAccessed = 0 ; super . open ( ) ; } catch ( RemoteException ex ) { throw new DBException ( ex . getMessage ( ) ) ; } }
Reset the current position and open the file .