public Object getInfoFromHandle ( Object bookmark , boolean bGetTable , int iHandleType ) throws DBException { if ( iHandleType == DBConstants . OBJECT_ID_HANDLE ) { if ( ! ( bookmark instanceof String ) ) return null ; int iLastColon = ( ( String ) bookmark ) . lastIndexOf ( BaseTable . HANDLE_SEPARATOR ) ; if ( iLastColon == - 1 ) return null ; if ( bGetTable ) return ( ( String ) bookmark ) . substring ( 0 , iLastColon ) ; else return ( ( String ) bookmark ) . substring ( iLastColon + 1 ) ; } return bookmark ; }
Get the table or object ID portion of the bookmark .