Package org.apache.torque.util
Klasse JdbcTypedValue
java.lang.Object
org.apache.torque.util.JdbcTypedValue
A value for a column, with the JDBC type if it is an explicit value.
- Version:
- $Id: JdbcTypedValue.java 1917245 2024-04-21 14:06:23Z tv $
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungJdbcTypedValue(Object value, int jdbcType) Constructs a JdbcTypedValue with a value and a type.JdbcTypedValue(Column sqlExpression) Constructs a JdbcTypedValue with a verbatim SQL. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbooleanintReturns the JDBC type as injava.sql.Types.Returns the sqlExpression to use instead of the value.getValue()Returns the value.inthashCode()voidsetJdbcType(int jdbcType) Sets the JDBC type as injava.sql.Types.voidSets the value.toString()
-
Konstruktordetails
-
JdbcTypedValue
Constructs a JdbcTypedValue with a value and a type.- Parameter:
value- The value; may be null.jdbcType- The JDBC type as injava.sql.Types.
-
JdbcTypedValue
Constructs a JdbcTypedValue with a verbatim SQL.- Parameter:
sqlExpression- The sql expression to use instead of the value.
-
-
Methodendetails
-
getJdbcType
public int getJdbcType()Returns the JDBC type as injava.sql.Types.- Gibt zurück:
- the JDBC type of the value.
-
setJdbcType
public void setJdbcType(int jdbcType) Sets the JDBC type as injava.sql.Types.- Parameter:
jdbcType- the JDBC type of the value.- Löst aus:
IllegalStateException- if sqlExpression is set.
-
getValue
Returns the value.- Gibt zurück:
- value the value, or null.
-
getSqlExpression
Returns the sqlExpression to use instead of the value.- Gibt zurück:
- value the sqlExpression, or null if not set.
-
setValue
Sets the value.- Parameter:
value- the value, may be null.- Löst aus:
IllegalStateException- if sqlExpression is set.
-
hashCode
public int hashCode() -
equals
-
toString
-