org.opennms.web.filter
Class IntegerSqlType

java.lang.Object
  extended by org.opennms.web.filter.IntegerSqlType
All Implemented Interfaces:
SQLType<Integer>

public class IntegerSqlType
extends Object
implements SQLType<Integer>


Field Summary
 
Fields inherited from interface org.opennms.web.filter.SQLType
DATE, INT, STRING
 
Constructor Summary
IntegerSqlType()
           
 
Method Summary
 void bindParam(PreparedStatement ps, int parameterIndex, Integer value)
           
 Integer[] createArray(Integer value1, Integer value2)
           
 String formatValue(Integer value)
           
 String getValueAsString(Integer value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntegerSqlType

public IntegerSqlType()
Method Detail

formatValue

public String formatValue(Integer value)
Specified by:
formatValue in interface SQLType<Integer>

getValueAsString

public String getValueAsString(Integer value)
Specified by:
getValueAsString in interface SQLType<Integer>

bindParam

public void bindParam(PreparedStatement ps,
                      int parameterIndex,
                      Integer value)
               throws SQLException
Specified by:
bindParam in interface SQLType<Integer>
Throws:
SQLException

createArray

public Integer[] createArray(Integer value1,
                             Integer value2)
Specified by:
createArray in interface SQLType<Integer>


Copyright © 2009. All Rights Reserved.