public class JdbcTypedValue extends Object
| Constructor and Description |
|---|
JdbcTypedValue(Column sqlExpression)
Constructs a JdbcTypedValue with a verbatim SQL.
|
JdbcTypedValue(Object value,
int jdbcType)
Constructs a JdbcTypedValue with a value and a type.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
getJdbcType()
Returns the JDBC type as in
java.sql.Types. |
Column |
getSqlExpression()
Returns the sqlExpression to use instead of the value.
|
Object |
getValue()
Returns the value.
|
int |
hashCode() |
void |
setJdbcType(int jdbcType)
Sets the JDBC type as in
java.sql.Types. |
void |
setValue(Object value)
Sets the value.
|
String |
toString() |
public JdbcTypedValue(Object value, int jdbcType)
jdbcType - The JDBC type as in java.sql.Types.value - The value; may be null.public JdbcTypedValue(Column sqlExpression)
sqlExpression - The sql expression to use instead of the value.public int getJdbcType()
java.sql.Types.public void setJdbcType(int jdbcType)
java.sql.Types.jdbcType - the JDBC type of the value.IllegalStateException - if sqlExpression is set.public Object getValue()
public Column getSqlExpression()
public void setValue(Object value)
value - the value, may be null.IllegalStateException - if sqlExpression is set.Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.