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>

IntegerSqlType class.

Since:
1.8.1
Version:
$Id: $
Author:
ranger

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)
          bindParam
 Integer[] createArray(Integer value1, Integer value2)
          createArray
 String formatValue(Integer value)
          formatValue
 String getValueAsString(Integer value)
          getValueAsString
 
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)

formatValue

Specified by:
formatValue in interface SQLType<Integer>
Parameters:
value - a Integer object.
Returns:
a String object.

getValueAsString

public String getValueAsString(Integer value)

getValueAsString

Specified by:
getValueAsString in interface SQLType<Integer>
Parameters:
value - a Integer object.
Returns:
a String object.

bindParam

public void bindParam(PreparedStatement ps,
                      int parameterIndex,
                      Integer value)
               throws SQLException

bindParam

Specified by:
bindParam in interface SQLType<Integer>
Parameters:
ps - a PreparedStatement object.
parameterIndex - a int.
value - a Integer object.
Throws:
SQLException - if any.

createArray

public Integer[] createArray(Integer value1,
                             Integer value2)

createArray

Specified by:
createArray in interface SQLType<Integer>
Parameters:
value1 - a Integer object.
value2 - a Integer object.
Returns:
an array of Integer objects.


Copyright © 2011. All Rights Reserved.