public interface SQLType<T>
SQLType interface.
Modifier and Type | Field and Description |
---|---|
static SQLType<Date> |
DATE |
static SQLType<Integer> |
INT |
static SQLType<OnmsSeverity> |
SEVERITY |
static SQLType<String> |
STRING |
Modifier and Type | Method and Description |
---|---|
void |
bindParam(PreparedStatement ps,
int parameterIndex,
T value)
bindParam
|
T[] |
createArray(T value1,
T value2)
createArray
|
String |
formatValue(T value)
formatValue
|
String |
getValueAsString(T value)
getValueAsString
|
static final SQLType<OnmsSeverity> SEVERITY
String getValueAsString(T value)
getValueAsString
T
- a T object.value
- a T object.String
object.String formatValue(T value)
formatValue
value
- a T object.String
object.void bindParam(PreparedStatement ps, int parameterIndex, T value) throws SQLException
bindParam
ps
- a PreparedStatement
object.parameterIndex
- a int.value
- a T object.SQLException
- if any.Copyright © 2016. All rights reserved.