Package org.apache.torque.util

# Klasse JdbcTypedValue

java.lang.Object
org.apache.torque.util.JdbcTypedValue

public class JdbcTypedValue extends Object
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

  Konstruktoren
  Konstruktor
  Beschreibung
  `JdbcTypedValue(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 Typ
  Methode
  Beschreibung
  `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()`

  ### Von Klasse geerbte Methoden java.lang.Object

  `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- ## Konstruktordetails

  - ### JdbcTypedValue

    public JdbcTypedValue(Object value, int jdbcType)
    Constructs a JdbcTypedValue with a value and a type.
    Parameter:
      `value` - The value; may be null.
      `jdbcType` - The JDBC type as in `java.sql.Types`.

  - ### JdbcTypedValue

    public JdbcTypedValue(Column sqlExpression)
    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 in `java.sql.Types`.
    Gibt zurück:
      the JDBC type of the value.

  - ### setJdbcType

    public void setJdbcType(int jdbcType)
    Sets the JDBC type as in `java.sql.Types`.
    Parameter:
      `jdbcType` - the JDBC type of the value.
    Löst aus:
      `IllegalStateException` - if sqlExpression is set.

  - ### getValue

    public Object getValue()
    Returns the value.
    Gibt zurück:
      value the value, or null.

  - ### getSqlExpression

    public Column getSqlExpression()
    Returns the sqlExpression to use instead of the value.
    Gibt zurück:
      value the sqlExpression, or null if not set.

  - ### setValue

    public void setValue(Object value)
    Sets the value.
    Parameter:
      `value` - the value, may be null.
    Löst aus:
      `IllegalStateException` - if sqlExpression is set.

  - ### hashCode

    public int hashCode()
    Setzt außer Kraft:
      `hashCode` in Klasse `Object`

  - ### equals

    public boolean equals(Object obj)
    Setzt außer Kraft:
      `equals` in Klasse `Object`

  - ### toString

    public String toString()
    Setzt außer Kraft:
      `toString` in Klasse `Object`