isInstance

Description

Returns true if the instance corresponding to the CUBRIDOID exists. If otherwise, it returns false.

Syntax

Boolean isInstance()

Return Value
Example

String sql = "select foo  from foo" ;

 

CUBRIDResultSet rs = (CUBRIDResultSet)stmt.executeQuery(sql);

 

while (rs.next ()) {

   CUBRIDOID oid = rs.getOID(1); 

   System.out.print("isInstance : " + oid.isInstance()); // true

   oid.remove();  // remove the object in the oid

   System.out.print("After remove, isInstance : "

                    + oid.isInstance()); // false

}