// Create the StructDescriptor from the connection
StructDescriptor colStructDesc = StructDescriptor.createDescriptor("OBJ_TYPE_CITY", conn);
// Construct the Struct from the StructDescriptor and objects
oracle.sql.STRUCT colStruct = new STRUCT(colStructDesc, conn, objArray);
// Prepare the update statement using Prepared statement call
OraclePreparedStatement ps = (OraclePreparedStatement)conn.prepareStatement("UPDATE TABLE_CITY_OBJ a SET a.OBJCITY = ? " + "WHERE a.OBJCITY.CITY_CODE = ?");
// Bind the Object STRUCT and CITY CODE to preparedstatement
ps.setSTRUCT(1, colStruct);
ps.setString(2, "1");
ps.executeUpdate(); // Execute the update statement