org.opennms.web.filter
Class StringSqlType

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

public class StringSqlType
extends Object
implements SQLType<String>


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

Constructor Detail

StringSqlType

public StringSqlType()
Method Detail

bindParam

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

getValueAsString

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

formatValue

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

createArray

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


Copyright © 2009. All Rights Reserved.