title: Accessing %ROWTYPE of Stored Procedure from Java
body: <p><strong>I have a stored procedure which looks like</strong> : </p>
  
  <pre><code> PROCEDURE get_curx(    p_buf     IN  ni_imsi%ROWTYPE,
                          p_bufx    IN  ni_imsi%ROWTYPE,
                          p_cur     OUT CurTyp,
                          p_where   IN  VARCHAR2 DEFAULT '',
                          p_orderby IN  VARCHAR2 DEFAULT '',
                          p_max     IN  NUMBER   DEFAULT 0,
                          p_lock    IN  NUMBER   DEFAULT 0,
                          p_hint    IN  VARCHAR2 DEFAULT 'NONE',
                          p_debug   IN  NUMBER   DEFAULT 0,
                          p_count   IN  BOOLEAN  DEFAULT FALSE);
  </code></pre>
  
  <p><strong>I am calling this procedure from a JAVA program like this</strong> : </p>
  
  <pre><code>CallableStatement cs = connection.prepareCall("{call ni_imsi_pkg.get_curx(?,?,?,?,?,?)}");
  
              cs.setObject( 1, ? );  // i have no clue what to mention here
              cs.setObject( 2, ? );  //i have no clue what to mention here
  
              cs.registerOutParameter(3, OracleTypes.CURSOR);
              cs.setString(4, " WHERE current_state = 60000 AND rownum &lt;= 2 ");
              cs.setString(5, " ORDER BY imsi_number");
              cs.setInt(6, 5);
  </code></pre>
  
  <p><strong>But i have no idea how to set the first two parameters</strong>.Please help me.Thanks</p>