Java 8 RowId - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Java 8 RowId class.

This code example shows how to use the following methods:setRowId
		stat.setRef(parameterIndex, x);
	} 
 
	@Override 
	public void setRowId(int parameterIndex, RowId x) throws SQLException {
		stat.setRowId(parameterIndex, x);
	} 
 
	@Override 
	public void setSQLXML(int parameterIndex, SQLXML xmlObject) throws SQLException {
		stat.setSQLXML(parameterIndex, xmlObject);
	} 
 
	@Override 
	public void setShort(int parameterIndex, short x) throws SQLException {
		stat.setShort(parameterIndex, x);
	} 
 
	@Override 
	public void setString(int parameterIndex, String x) throws SQLException {
5
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:getRowId
        delegate.updateArray(columnLabel, x);
    } 
 
    @Override 
    public RowId getRowId(int columnIndex) throws SQLException {
        return delegate.getRowId(columnIndex);
    } 
 
    @Override 
    public RowId getRowId(String columnLabel) throws SQLException {
        return delegate.getRowId(columnLabel);
    } 
 
    @Override 
    public void updateRowId(int columnIndex, RowId x) throws SQLException {
        delegate.updateRowId(columnIndex, x);
    } 
 
    @Override 
    public void updateRowId(String columnLabel, RowId x) throws SQLException {
4
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:getRowId
		return stat.getRef(parameterName);
	} 
 
	@Override 
	public RowId getRowId(int parameterIndex) throws SQLException {
		return stat.getRowId(parameterIndex);
	} 
 
	@Override 
	public RowId getRowId(String parameterName) throws SQLException {
		return stat.getRowId(parameterName);
	} 
 
	@Override 
	public SQLXML getSQLXML(int parameterIndex) throws SQLException {
		return stat.getSQLXML(parameterIndex);
	} 
 
	@Override 
	public SQLXML getSQLXML(String parameterName) throws SQLException {
4
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:setRowId
  public ParameterMetaData getParameterMetaData() throws SQLException {
    return delegate.getParameterMetaData();
  } 
 
  public void setRowId(int parameterIndex, RowId x) throws SQLException {
    delegate.setRowId(parameterIndex, x);
  } 
 
  public void setNString(int parameterIndex, String value) throws SQLException {
    delegate.setNString(parameterIndex, value);
  } 
 
  public void setNCharacterStream(int parameterIndex, Reader value, long length)
      throws SQLException {
    delegate.setNCharacterStream(parameterIndex, value, length);
  } 
 
  public void setNClob(int parameterIndex, NClob value) throws SQLException {
    delegate.setNClob(parameterIndex, value);
  } 
4
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:getRowId
   * {@inheritDoc} 
   */ 
  @Override 
  public RowId getRowId(int parameterIndex) throws SQLException {
    try { 
      return delegator.getRowId(parameterIndex);
    } 
    catch (SQLException se) {
      owner.fireStatementError(this, se);
      throw se;
    } 
  } 
 
  /** 
   * {@inheritDoc} 
   */ 
  @Override 
  public RowId getRowId(String parameterName) throws SQLException {
    try { 
      return delegator.getRowId(parameterName);
1
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:setRowId
  @Override 
  public void setRowId(int parameterIndex, RowId x)
    throws SQLException 
  { 
    try { 
      _pstmt.setRowId(parameterIndex, x);
    } catch (RuntimeException e) {
      onRuntimeException(e);
       
      throw e;
    } catch (SQLException e) {
      onSqlException(e);
       
      throw e;
    } 
  } 
 
  @Override 
  public void setNString(int parameterIndex, String value)
    throws SQLException 
3
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:getBytes
     * 
     * @param id the octet sequence representing the Rowid value 
     * @throws SQLException if the argument is null 
     */ 
    public JDBCRowId(RowId id) throws SQLException {
        this(id.getBytes());
    } 
 
    /** 
     * Constructs a new JDBCRowId instance whose internal octet sequence is 
     * is that represented by the given hexidecimal character sequence. <p> 
     * @param hex the hexadecimal character sequence from which to derive 
     *        the internal octet sequence 
     * @throws java.sql.SQLException if the argument is null or is not a valid 
     *         hexadecimal character sequence 
     */ 
    public JDBCRowId(final String hex) throws SQLException {
 
        if (hex == null) {
            throw Util.nullArgument("hex"); 
5
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:getBytes
     * 
     * @param id the octet sequence representing the Rowid value 
     * @throws SQLException if the argument is null 
     */ 
    public JDBCRowId(RowId id) throws SQLException {
        this(id.getBytes());
    } 
 
    /** 
     * Constructs a new JDBCRowId instance whose internal octet sequence is 
     * is that represented by the given hexidecimal character sequence. <p> 
     * @param hex the hexadecimal character sequence from which to derive 
     *        the internal octet sequence 
     * @throws java.sql.SQLException if the argument is null or is not a valid 
     *         hexadecimal character sequence 
     */ 
    public JDBCRowId(final String hex) throws SQLException {
 
        if (hex == null) {
            throw JDBCUtil.nullArgument("hex"); 
3
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:toString
     */ 
    @OfMethod("toString()") 
    public void testToString() throws Exception { 
        RowId  rid       = newRowId("02b7abfe");
        String expResult = "02b7abfe";
        String result    = rid.toString();
 
        assertEquals(expResult, result);
    } 
 
    /** 
     * Test of hashCode method, of interface java.sql.RowId. 
     */ 
    @OfMethod("hashCode()") 
    public void testHashCode() throws Exception { 
        byte[] bytes  = StringConverter.hexStringToByteArray("02b7abfe");
        RowId  rid    = newRowId("02b7abfe");
        int expResult = Arrays.hashCode(bytes);
        int result    = rid.hashCode();
 
4
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
See Code Examples for Java 8 RowId Methods: