setWriteLock

Description

Sets a write-lock on the instance corresponding to the CUBRIDOID.

Syntax

void setWriteLock()

Example

String sql = "select foo from foo" ;

 

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

 

while (rs.next ()) {

   CUBRIDOID oid = rs.getOID(1); 

   oid.setWriteLock();

}