remove

Description

Removes the instance corresponding to the CUBRIDOID.

Syntax

void remove()

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

}