1 package net.sourceforge.backpedal.impl.db;
2
3 import java.sql.PreparedStatement;
4 import java.sql.SQLException;
5
6 public class NullBindVariable extends AbstractBindVariable {
7 public NullBindVariable(int index, int sqlType, String columnName) {
8 super(index,new Integer(sqlType), columnName);
9 }
10
11 public void setInto(int index, PreparedStatement preparedStatement) throws SQLException {
12 preparedStatement.setNull(index,((Integer)getValue()).intValue());
13 }
14
15 public int getSqlType() {
16 throw new UnsupportedOperationException();
17 //return ((Integer)getValue()).intValue();
18 }
19
20 public boolean isNull() {
21 return true;
22 }
23 }
This page was automatically generated by Maven