1 15 package org.apache.tapestry.contrib.jdbc; 16 17 import java.sql.PreparedStatement ; 18 import java.sql.SQLException ; 19 20 28 29 public class ShortParameter implements IParameter 30 { 31 private short _value; 32 33 public ShortParameter(short value) 34 { 35 _value = value; 36 } 37 38 public void set(PreparedStatement statement, int index) throws SQLException  39 { 40 statement.setShort(index, _value); 41 } 42 43 public String toString() 44 { 45 StringBuffer buffer = new StringBuffer ("Short<"); 46 buffer.append(_value); 47 buffer.append('>'); 48 49 return buffer.toString(); 50 } 51 52 } 53 | Popular Tags |