/**
   * Returns the handle to this CLOB locator in the database.
   *
   * @return The handle to this locator in the databaes.
   */
  int getHandle()
      throws
          SQLException // @free called from rs.updateValue(), which in turn will throw exc back to
        // rs.updateX() caller
      {
    if (locator_ == null) // @free
    JDError.throwSQLException(this, JDError.EXC_FUNCTION_SEQUENCE); // @free

    return locator_.getHandle();
  }
  // @CRS - This is only called from AS400JDBCPreparedStatement in one place.
  public void convertToRawBytes(byte[] rawBytes, int offset, ConvTable ccsidConverter)
      throws SQLException {
    BinaryConverter.intToByteArray(locator_.getHandle(), rawBytes, offset);

    // Now we write our saved data to the system, because the prepared statement is being executed.
    // We used to write the data to the system on the call to set(), but this messed up
    // batch executes, since the host server only reserves temporary space for locator handles one
    // row at a time.
    // See the toObject() method in this class for more details.
    if (savedObject_ != null) writeToServer();
  }
  /**
   * Get the locator handle corresponding to this ClobLocator
   *
   * @throws SQLException
   */
  public int getLocator() throws SQLException {
    if (locator_ == null) // @free
    JDError.throwSQLException(this, JDError.EXC_FUNCTION_SEQUENCE); // @free

    return locator_.getHandle();
  }
 // @loch
 public int getHandle() {
   return locator_.getHandle();
 }