1   package net.sourceforge.backpedal.impl.db;
2   
3   import java.sql.Date;
4   import java.sql.PreparedStatement;
5   import java.sql.SQLException;
6   import java.sql.Types;
7   
8   public class DateBindVariable extends AbstractBindVariable {
9       public DateBindVariable(int p0, Date p1, String columnName) {
10          super(p0, p1, columnName);
11      }
12  
13      public void setInto(int index, PreparedStatement preparedStatement) throws SQLException {
14          preparedStatement.setDate(index, (Date) getValue());
15      }
16  
17      public int getSqlType() {
18          return Types.DATE;
19      }
20  }
This page was automatically generated by Maven