Klasse DbPreparedStatement

java.lang.Object
de.uplanet.lucy.server.util.db.DbPreparedStatement
Alle implementierten Schnittstellen:
de.uplanet.lucy.server.util.db.IDbPreparedStatement, de.uplanet.util.ICloseable, AutoCloseable

public final class DbPreparedStatement extends Object implements de.uplanet.lucy.server.util.db.IDbPreparedStatement
  • Methodendetails

    • getFetchSize

      public int getFetchSize() throws SQLException
      Angegeben von:
      getFetchSize in Schnittstelle de.uplanet.lucy.server.util.db.IDbPreparedStatement
      Löst aus:
      SQLException
    • setFetchSize

      public void setFetchSize(int p_iFetchSize) throws SQLException
      Angegeben von:
      setFetchSize in Schnittstelle de.uplanet.lucy.server.util.db.IDbPreparedStatement
      Löst aus:
      SQLException
    • execute

      public void execute() throws SQLException
      Angegeben von:
      execute in Schnittstelle de.uplanet.lucy.server.util.db.IDbPreparedStatement
      Löst aus:
      SQLException
    • executeUpdate

      public int executeUpdate() throws SQLException
      Angegeben von:
      executeUpdate in Schnittstelle de.uplanet.lucy.server.util.db.IDbPreparedStatement
      Löst aus:
      SQLException
    • executeQuery

      public DbResultSet executeQuery() throws SQLException
      Angegeben von:
      executeQuery in Schnittstelle de.uplanet.lucy.server.util.db.IDbPreparedStatement
      Löst aus:
      SQLException
    • executeQueryWithResultSet

      public Object executeQueryWithResultSet(groovy.lang.Closure<?> p_closure) throws SQLException
      Angegeben von:
      executeQueryWithResultSet in Schnittstelle de.uplanet.lucy.server.util.db.IDbPreparedStatement
      Löst aus:
      SQLException
    • executeAndGetScalarValueHolder

      public IValueHolder<?> executeAndGetScalarValueHolder() throws SQLException
      Get the value of the first column in the first row of the result set.

      If the result set is empty, null is returned.

      Angegeben von:
      executeAndGetScalarValueHolder in Schnittstelle de.uplanet.lucy.server.util.db.IDbPreparedStatement
      Gibt zurück:
      A value holder that contains the value of the first column in the first row of the result set, or null if the result set is empty.
      Löst aus:
      SQLException
    • executeAndGetScalarValue

      public Object executeAndGetScalarValue(Object p_valueFallback) throws SQLException
      Get the value of the first column in the first row of the result set.

      If the result set is empty, or the value is null, p_valueIfNull is returned.

      Angegeben von:
      executeAndGetScalarValue in Schnittstelle de.uplanet.lucy.server.util.db.IDbPreparedStatement
      Parameter:
      p_valueFallback - The return value if the query returns an empty result set or null.
      Gibt zurück:
      The value of the first column in the first row of the result set, or p_valueIfNull if the result set is empty, or the value is null.
      Löst aus:
      SQLException
    • executeAndGetScalarValue

      public Object executeAndGetScalarValue() throws SQLException
      Get the value of the first column in the first row of the result set.

      If the result set is empty, null is returned.

      Angegeben von:
      executeAndGetScalarValue in Schnittstelle de.uplanet.lucy.server.util.db.IDbPreparedStatement
      Gibt zurück:
      The value of the first column in the first row of the result set, or null if the result set is empty.
      Löst aus:
      SQLException
    • executeAndGetScalarBooleanValue

      public Boolean executeAndGetScalarBooleanValue(Object p_valueFallback) throws SQLException, de.uplanet.lucy.server.util.db.ValueCastException
      Angegeben von:
      executeAndGetScalarBooleanValue in Schnittstelle de.uplanet.lucy.server.util.db.IDbPreparedStatement
      Löst aus:
      SQLException
      de.uplanet.lucy.server.util.db.ValueCastException
    • executeAndGetScalarBooleanValue

      public Boolean executeAndGetScalarBooleanValue() throws SQLException, de.uplanet.lucy.server.util.db.ValueCastException
      Angegeben von:
      executeAndGetScalarBooleanValue in Schnittstelle de.uplanet.lucy.server.util.db.IDbPreparedStatement
      Löst aus:
      SQLException
      de.uplanet.lucy.server.util.db.ValueCastException
    • executeAndGetScalarByteValue

      public Byte executeAndGetScalarByteValue(Object p_valueFallback) throws SQLException, de.uplanet.lucy.server.util.db.ValueCastException
      Angegeben von:
      executeAndGetScalarByteValue in Schnittstelle de.uplanet.lucy.server.util.db.IDbPreparedStatement
      Löst aus:
      SQLException
      de.uplanet.lucy.server.util.db.ValueCastException
    • executeAndGetScalarByteValue

      public Byte executeAndGetScalarByteValue() throws SQLException, de.uplanet.lucy.server.util.db.ValueCastException
      Angegeben von:
      executeAndGetScalarByteValue in Schnittstelle de.uplanet.lucy.server.util.db.IDbPreparedStatement
      Löst aus:
      SQLException
      de.uplanet.lucy.server.util.db.ValueCastException
    • executeAndGetScalarShortValue

      public Short executeAndGetScalarShortValue(Object p_valueFallback) throws SQLException, de.uplanet.lucy.server.util.db.ValueCastException
      Angegeben von:
      executeAndGetScalarShortValue in Schnittstelle de.uplanet.lucy.server.util.db.IDbPreparedStatement
      Löst aus:
      SQLException
      de.uplanet.lucy.server.util.db.ValueCastException
    • executeAndGetScalarShortValue

      public Short executeAndGetScalarShortValue() throws SQLException, de.uplanet.lucy.server.util.db.ValueCastException
      Angegeben von:
      executeAndGetScalarShortValue in Schnittstelle de.uplanet.lucy.server.util.db.IDbPreparedStatement
      Löst aus:
      SQLException
      de.uplanet.lucy.server.util.db.ValueCastException
    • executeAndGetScalarIntValue

      public Integer executeAndGetScalarIntValue(Object p_valueFallback) throws SQLException, de.uplanet.lucy.server.util.db.ValueCastException
      Angegeben von:
      executeAndGetScalarIntValue in Schnittstelle de.uplanet.lucy.server.util.db.IDbPreparedStatement
      Löst aus:
      SQLException
      de.uplanet.lucy.server.util.db.ValueCastException
    • executeAndGetScalarIntValue

      public Integer executeAndGetScalarIntValue() throws SQLException, de.uplanet.lucy.server.util.db.ValueCastException
      Angegeben von:
      executeAndGetScalarIntValue in Schnittstelle de.uplanet.lucy.server.util.db.IDbPreparedStatement
      Löst aus:
      SQLException
      de.uplanet.lucy.server.util.db.ValueCastException
    • executeAndGetScalarLongValue

      public Long executeAndGetScalarLongValue(Object p_valueFallback) throws SQLException, de.uplanet.lucy.server.util.db.ValueCastException
      Angegeben von:
      executeAndGetScalarLongValue in Schnittstelle de.uplanet.lucy.server.util.db.IDbPreparedStatement
      Löst aus:
      SQLException
      de.uplanet.lucy.server.util.db.ValueCastException
    • executeAndGetScalarLongValue

      public Long executeAndGetScalarLongValue() throws SQLException, de.uplanet.lucy.server.util.db.ValueCastException
      Angegeben von:
      executeAndGetScalarLongValue in Schnittstelle de.uplanet.lucy.server.util.db.IDbPreparedStatement
      Löst aus:
      SQLException
      de.uplanet.lucy.server.util.db.ValueCastException
    • executeAndGetScalarFloatValue

      public Float executeAndGetScalarFloatValue(Object p_valueFallback) throws SQLException, de.uplanet.lucy.server.util.db.ValueCastException
      Angegeben von:
      executeAndGetScalarFloatValue in Schnittstelle de.uplanet.lucy.server.util.db.IDbPreparedStatement
      Löst aus:
      SQLException
      de.uplanet.lucy.server.util.db.ValueCastException
    • executeAndGetScalarFloatValue

      public Float executeAndGetScalarFloatValue() throws SQLException, de.uplanet.lucy.server.util.db.ValueCastException
      Angegeben von:
      executeAndGetScalarFloatValue in Schnittstelle de.uplanet.lucy.server.util.db.IDbPreparedStatement
      Löst aus:
      SQLException
      de.uplanet.lucy.server.util.db.ValueCastException
    • executeAndGetScalarDoubleValue

      public Double executeAndGetScalarDoubleValue(Object p_valueFallback) throws SQLException, de.uplanet.lucy.server.util.db.ValueCastException
      Angegeben von:
      executeAndGetScalarDoubleValue in Schnittstelle de.uplanet.lucy.server.util.db.IDbPreparedStatement
      Löst aus:
      SQLException
      de.uplanet.lucy.server.util.db.ValueCastException
    • executeAndGetScalarDoubleValue

      public Double executeAndGetScalarDoubleValue() throws SQLException, de.uplanet.lucy.server.util.db.ValueCastException
      Angegeben von:
      executeAndGetScalarDoubleValue in Schnittstelle de.uplanet.lucy.server.util.db.IDbPreparedStatement
      Löst aus:
      SQLException
      de.uplanet.lucy.server.util.db.ValueCastException
    • executeAndGetScalarBigDecimalValue

      public BigDecimal executeAndGetScalarBigDecimalValue(Object p_valueFallback) throws SQLException, de.uplanet.lucy.server.util.db.ValueCastException
      Angegeben von:
      executeAndGetScalarBigDecimalValue in Schnittstelle de.uplanet.lucy.server.util.db.IDbPreparedStatement
      Löst aus:
      SQLException
      de.uplanet.lucy.server.util.db.ValueCastException
    • executeAndGetScalarBigDecimalValue

      public BigDecimal executeAndGetScalarBigDecimalValue() throws SQLException, de.uplanet.lucy.server.util.db.ValueCastException
      Angegeben von:
      executeAndGetScalarBigDecimalValue in Schnittstelle de.uplanet.lucy.server.util.db.IDbPreparedStatement
      Löst aus:
      SQLException
      de.uplanet.lucy.server.util.db.ValueCastException
    • executeAndGetScalarStringValue

      public String executeAndGetScalarStringValue(Object p_valueFallback) throws SQLException, de.uplanet.lucy.server.util.db.ValueCastException
      Angegeben von:
      executeAndGetScalarStringValue in Schnittstelle de.uplanet.lucy.server.util.db.IDbPreparedStatement
      Löst aus:
      SQLException
      de.uplanet.lucy.server.util.db.ValueCastException
    • executeAndGetScalarStringValue

      public String executeAndGetScalarStringValue() throws SQLException, de.uplanet.lucy.server.util.db.ValueCastException
      Angegeben von:
      executeAndGetScalarStringValue in Schnittstelle de.uplanet.lucy.server.util.db.IDbPreparedStatement
      Löst aus:
      SQLException
      de.uplanet.lucy.server.util.db.ValueCastException
    • executeAndGetScalarTimestampValue

      public Timestamp executeAndGetScalarTimestampValue(Object p_valueFallback) throws SQLException, de.uplanet.lucy.server.util.db.ValueCastException
      Angegeben von:
      executeAndGetScalarTimestampValue in Schnittstelle de.uplanet.lucy.server.util.db.IDbPreparedStatement
      Löst aus:
      SQLException
      de.uplanet.lucy.server.util.db.ValueCastException
    • executeAndGetScalarTimestampValue

      public Timestamp executeAndGetScalarTimestampValue() throws SQLException, de.uplanet.lucy.server.util.db.ValueCastException
      Angegeben von:
      executeAndGetScalarTimestampValue in Schnittstelle de.uplanet.lucy.server.util.db.IDbPreparedStatement
      Löst aus:
      SQLException
      de.uplanet.lucy.server.util.db.ValueCastException
    • executeAndGetScalarDateValue

      public Date executeAndGetScalarDateValue(Object p_valueFallback) throws SQLException, de.uplanet.lucy.server.util.db.ValueCastException
      Angegeben von:
      executeAndGetScalarDateValue in Schnittstelle de.uplanet.lucy.server.util.db.IDbPreparedStatement
      Löst aus:
      SQLException
      de.uplanet.lucy.server.util.db.ValueCastException
    • executeAndGetScalarDateValue

      public Date executeAndGetScalarDateValue() throws SQLException, de.uplanet.lucy.server.util.db.ValueCastException
      Angegeben von:
      executeAndGetScalarDateValue in Schnittstelle de.uplanet.lucy.server.util.db.IDbPreparedStatement
      Löst aus:
      SQLException
      de.uplanet.lucy.server.util.db.ValueCastException
    • executeAndGetScalarTimeValue

      public Date executeAndGetScalarTimeValue(Object p_valueFallback) throws SQLException, de.uplanet.lucy.server.util.db.ValueCastException
      Angegeben von:
      executeAndGetScalarTimeValue in Schnittstelle de.uplanet.lucy.server.util.db.IDbPreparedStatement
      Löst aus:
      SQLException
      de.uplanet.lucy.server.util.db.ValueCastException
    • executeAndGetScalarTimeValue

      public Date executeAndGetScalarTimeValue() throws SQLException, de.uplanet.lucy.server.util.db.ValueCastException
      Angegeben von:
      executeAndGetScalarTimeValue in Schnittstelle de.uplanet.lucy.server.util.db.IDbPreparedStatement
      Löst aus:
      SQLException
      de.uplanet.lucy.server.util.db.ValueCastException
    • setBoolean

      public void setBoolean(int p_iIdx, Object p_value) throws SQLException
      Angegeben von:
      setBoolean in Schnittstelle de.uplanet.lucy.server.util.db.IDbPreparedStatement
      Löst aus:
      SQLException
    • setInt

      public void setInt(int p_iIdx, Object p_value) throws SQLException
      Angegeben von:
      setInt in Schnittstelle de.uplanet.lucy.server.util.db.IDbPreparedStatement
      Löst aus:
      SQLException
    • setLong

      public void setLong(int p_iIdx, Object p_value) throws SQLException
      Angegeben von:
      setLong in Schnittstelle de.uplanet.lucy.server.util.db.IDbPreparedStatement
      Löst aus:
      SQLException
    • setShort

      public void setShort(int p_iIdx, Object p_value) throws SQLException
      Angegeben von:
      setShort in Schnittstelle de.uplanet.lucy.server.util.db.IDbPreparedStatement
      Löst aus:
      SQLException
    • setByte

      public void setByte(int p_iIdx, Object p_value) throws SQLException
      Angegeben von:
      setByte in Schnittstelle de.uplanet.lucy.server.util.db.IDbPreparedStatement
      Löst aus:
      SQLException
    • setBigDecimal

      public void setBigDecimal(int p_iIdx, Object p_value) throws SQLException
      Angegeben von:
      setBigDecimal in Schnittstelle de.uplanet.lucy.server.util.db.IDbPreparedStatement
      Löst aus:
      SQLException
    • setFloat

      public void setFloat(int p_iIdx, Object p_value) throws SQLException
      Angegeben von:
      setFloat in Schnittstelle de.uplanet.lucy.server.util.db.IDbPreparedStatement
      Löst aus:
      SQLException
    • setDouble

      public void setDouble(int p_iIdx, Object p_value) throws SQLException
      Angegeben von:
      setDouble in Schnittstelle de.uplanet.lucy.server.util.db.IDbPreparedStatement
      Löst aus:
      SQLException
    • setTimestamp

      public void setTimestamp(int p_iIdx, Object p_value) throws SQLException
      Angegeben von:
      setTimestamp in Schnittstelle de.uplanet.lucy.server.util.db.IDbPreparedStatement
      Löst aus:
      SQLException
    • setTimestamp

      public void setTimestamp(int p_iIdx, Object p_value, TimeZone p_tz) throws SQLException
      Angegeben von:
      setTimestamp in Schnittstelle de.uplanet.lucy.server.util.db.IDbPreparedStatement
      Löst aus:
      SQLException
    • setTimestamp

      public void setTimestamp(int p_iIdx, Object p_value, Calendar p_cal) throws SQLException
      Angegeben von:
      setTimestamp in Schnittstelle de.uplanet.lucy.server.util.db.IDbPreparedStatement
      Löst aus:
      SQLException
    • setTime

      public void setTime(int p_iIdx, Object p_value) throws SQLException
      Angegeben von:
      setTime in Schnittstelle de.uplanet.lucy.server.util.db.IDbPreparedStatement
      Löst aus:
      SQLException
    • setTime

      public void setTime(int p_iIdx, Object p_value, TimeZone p_tz) throws SQLException
      Angegeben von:
      setTime in Schnittstelle de.uplanet.lucy.server.util.db.IDbPreparedStatement
      Löst aus:
      SQLException
    • setTime

      public void setTime(int p_iIdx, Object p_value, Calendar p_cal) throws SQLException
      Angegeben von:
      setTime in Schnittstelle de.uplanet.lucy.server.util.db.IDbPreparedStatement
      Löst aus:
      SQLException
    • setDate

      public void setDate(int p_iIdx, Object p_value) throws SQLException
      Angegeben von:
      setDate in Schnittstelle de.uplanet.lucy.server.util.db.IDbPreparedStatement
      Löst aus:
      SQLException
    • setDate

      public void setDate(int p_iIdx, Object p_value, TimeZone p_tz) throws SQLException
      Angegeben von:
      setDate in Schnittstelle de.uplanet.lucy.server.util.db.IDbPreparedStatement
      Löst aus:
      SQLException
    • setDate

      public void setDate(int p_iIdx, Object p_value, Calendar p_cal) throws SQLException
      Angegeben von:
      setDate in Schnittstelle de.uplanet.lucy.server.util.db.IDbPreparedStatement
      Löst aus:
      SQLException
    • setString

      public void setString(int p_iIdx, Object p_value) throws SQLException
      Angegeben von:
      setString in Schnittstelle de.uplanet.lucy.server.util.db.IDbPreparedStatement
      Löst aus:
      SQLException
    • setCharacterStream

      public void setCharacterStream(int p_iIdx, Object p_value) throws SQLException, IOException
      Angegeben von:
      setCharacterStream in Schnittstelle de.uplanet.lucy.server.util.db.IDbPreparedStatement
      Löst aus:
      SQLException
      IOException
    • close

      public void close() throws SQLException
      Close this statement.
      Angegeben von:
      close in Schnittstelle AutoCloseable
      Angegeben von:
      close in Schnittstelle de.uplanet.lucy.server.util.db.IDbPreparedStatement
      Löst aus:
      SQLException - If a database error occurred.