View Javadoc
1 package net.sourceforge.backpedal.impl.db; 2 3 import java.sql.PreparedStatement; 4 import java.sql.SQLException; 5 import java.sql.Types; 6 7 public class IntegerBindVariable extends AbstractBindVariable { 8 public IntegerBindVariable(int index, int value, String columnName) { 9 super(index, new Integer(value),columnName); 10 } 11 12 public void setInto(int index, PreparedStatement preparedStatement) throws SQLException { 13 preparedStatement.setInt(index,((Integer)getValue()).intValue()); 14 } 15 16 public int getSqlType() { 17 return Types.INTEGER; 18 } 19 }

This page was automatically generated by Maven