getValues

Description

Returns the ResultSet which contains values of the requested attribute.

Syntax

ResultSet getValues(String[] attrNames)

Return Value
Example

// create class foo ( a string, b int )

// insert into foo values('CUBRID', 2001)

 

String sql = "select foo from foo";

String[] attr = { "a", "b" };  // class's column name list

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

 

while (rs.next ()) {

   CUBRIDOID oid = rs.getOID(1); 

   ResultSet rsoid = oid.getValues(attr);

}