Java SQL PreparedStatement setValueIndex(PreparedStatement stmt, int index, int valueIndex)

Here you can find the source of setValueIndex(PreparedStatement stmt, int index, int valueIndex)

Description

set Value Index

License

Open Source License

Declaration

public static void setValueIndex(PreparedStatement stmt, int index, int valueIndex) throws SQLException 

Method Source Code


//package com.java2s;
import java.sql.PreparedStatement;

import java.sql.SQLException;

public class Main {
    public static void setValueIndex(PreparedStatement stmt, int index, int valueIndex) throws SQLException {
        stmt.setInt(index, valueIndex);/* w  w w .j  a  v a 2 s  . c o  m*/
    }
}

Related

  1. saveResourceInfoRecord(long resourceId, long propertyId, String propertyValue, String userId, PreparedStatement ps)
  2. setByte(PreparedStatement statement, int index, Byte value)
  3. setBytes(PreparedStatement pstmt, int index, byte[] bytes)
  4. setValue(PreparedStatement ps, int paramIndex, Object inValue)
  5. setValue(PreparedStatement ps, int posicion, int tipo, String strDefault, String strValor)
  6. setValues(PreparedStatement preparedStatement, Object... values)
  7. setValues(PreparedStatement statement, Object... values)
  8. setValues(PreparedStatement statement, Object... values)
  9. setValues(PreparedStatement statement, Object[] values)