Package de.uplanet.lucy.server.util.db
Klasse DbResultSet
java.lang.Object
de.uplanet.lucy.server.util.db.DbResultSet
- Alle implementierten Schnittstellen:
IDbResultSet,IValueAccess,IValueHolderAccess,ICloseable,AutoCloseable,Iterable<IDbRow>
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidclose()List<?> findAll(groovy.lang.Closure<?> p_closure) Calls the given closure for every row in the result set and returns a list of rows for which the closure is valid.getBigDecimalValue(int p_iIdx) Get a decimal number value.getBigDecimalValue(int p_iIdx, BigDecimal p_valueIfNull) Get a decimal number value.getBooleanValue(int p_iIdx) Get a boolean value.getBooleanValue(int p_iIdx, Boolean p_valueIfNull) Get a boolean value.bytegetByteValue(int p_iIdx) Get a byte value.getByteValue(int p_iIdx, Byte p_valueIfNull) Get a byte value.getDateValue(int p_iIdx) Get a date value.getDateValue(int p_iIdx, Calendar p_cal) getDateValue(int p_iIdx, Date p_valueIfNull) Get a date value.getDateValue(int p_iIdx, Date p_valueIfNull, Calendar p_cal) getDateValue(int p_iIdx, Date p_valueIfNull, TimeZone p_tz) getDateValue(int p_iIdx, TimeZone p_tz) Create a list of disconnected rows from this result set.getDoubleValue(int p_iIdx) Get a double value.getDoubleValue(int p_iIdx, Double p_valueIfNull) Get a double precision float value.getFloatValue(int p_iIdx) Get a single precision float value.getFloatValue(int p_iIdx, Float p_valueIfNull) Get a single precision float value.getIntValue(int p_iIdx) Get an integer value.getIntValue(int p_iIdx, Integer p_valueIfNull) Get an integer value.getLongValue(int p_iIdx) Get a long value.getLongValue(int p_iIdx, Long p_valueIfNull) Get a long value.intGet the number of rows read so far.getShortValue(int p_iIdx) Get a short value.getShortValue(int p_iIdx, Short p_valueIfNull) Get a short value.getStringValue(int p_iIdx) Get a string value.getStringValue(int p_iIdx, String p_valueIfNull) Get a string value.getTimestampValue(int p_iIdx) Get a timestamp value.getTimestampValue(int p_iIdx, Timestamp p_valueIfNull) Get a timestamp value.getTimestampValue(int p_iIdx, Timestamp p_valueIfNull, Calendar p_cal) getTimestampValue(int p_iIdx, Timestamp p_valueIfNull, TimeZone p_tz) getTimestampValue(int p_iIdx, Calendar p_cal) getTimestampValue(int p_iIdx, TimeZone p_tz) getTimeValue(int p_iIdx) Get a time value.getTimeValue(int p_iIdx, Calendar p_cal) getTimeValue(int p_iIdx, Date p_valueIfNull) Get a time value.getTimeValue(int p_iIdx, Date p_valueIfNull, Calendar p_cal) getTimeValue(int p_iIdx, Date p_valueIfNull, TimeZone p_tz) getTimeValue(int p_iIdx, TimeZone p_tz) getValue(int p_iIdx) Get a value.Get a value.IValueHolder<?> getValueHolder(int p_iIdx) IValueHolder<?> getValueHolder(int p_iIdx, String p_strDataTypeAsSerializedQName) IValueHolder<?> getValueHolder(int p_iIdx, String p_strDataTypeAsSerializedQName, IValueHolder<?> p_valueIfNull) IValueHolder<?> getValueHolder(int p_iIdx, QName p_qmnDataType) IValueHolder<?> getValueHolder(int p_iIdx, QName p_qmnDataType, IValueHolder<?> p_valueIfNull) Collection<?> This method is not supportediterator()booleannext()booleanwasNull(int p_iIdx) Check if the value in the given column wasnull.Von Klasse geerbte Methoden java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden java.lang.Iterable
forEach, spliterator
-
Methodendetails
-
getRowCount
public int getRowCount()Get the number of rows read so far.- Gibt zurück:
- The number of rows read so far.
-
next
- Angegeben von:
nextin SchnittstelleIDbResultSet- Löst aus:
SQLException
-
wasNull
Beschreibung aus Schnittstelle kopiert:IValueAccessCheck if the value in the given column wasnull.- Angegeben von:
wasNullin SchnittstelleIValueAccess- Parameter:
p_iIdx- The 1-based column index.- Gibt zurück:
trueif the value wasnull, orfalseotherwise.- Löst aus:
SQLException- If a database error occurred.
-
getValueHolder
- Angegeben von:
getValueHolderin SchnittstelleIValueHolderAccess- Löst aus:
SQLException
-
getValueHolder
- Angegeben von:
getValueHolderin SchnittstelleIValueHolderAccess- Löst aus:
SQLException
-
getValueHolder
public IValueHolder<?> getValueHolder(int p_iIdx, String p_strDataTypeAsSerializedQName) throws SQLException - Angegeben von:
getValueHolderin SchnittstelleIValueHolderAccess- Löst aus:
SQLException
-
getValueHolder
public IValueHolder<?> getValueHolder(int p_iIdx, QName p_qmnDataType, IValueHolder<?> p_valueIfNull) throws SQLException - Angegeben von:
getValueHolderin SchnittstelleIValueHolderAccess- Löst aus:
SQLException
-
getValueHolder
public IValueHolder<?> getValueHolder(int p_iIdx, String p_strDataTypeAsSerializedQName, IValueHolder<?> p_valueIfNull) throws SQLException - Angegeben von:
getValueHolderin SchnittstelleIValueHolderAccess- Löst aus:
SQLException
-
close
- Angegeben von:
closein SchnittstelleAutoCloseable- Angegeben von:
closein SchnittstelleIDbResultSet- Löst aus:
SQLException
-
getValue
Beschreibung aus Schnittstelle kopiert:IValueAccessGet a value. Note: The use of this method is discouraged. Use a method that returns a specified type instead.- Angegeben von:
getValuein SchnittstelleIValueAccess- Parameter:
p_iIdx- The 1-based column index.- Gibt zurück:
- The value.
- Löst aus:
SQLException- If a database error occurred.
-
getValue
Beschreibung aus Schnittstelle kopiert:IValueAccessGet a value. Note: The use of this method is discouraged. Use a method that returns a specified type instead.- Angegeben von:
getValuein SchnittstelleIValueAccess- Parameter:
p_iIdx- The 1-based column index.p_valueIfNull- The value to be returned if the database value wasNULL.- Gibt zurück:
- The value, or
p_valueIfNull. - Löst aus:
SQLException- If a database error occurred.
-
getBooleanValue
Beschreibung aus Schnittstelle kopiert:IValueAccessGet a boolean value.- Angegeben von:
getBooleanValuein SchnittstelleIValueAccess- Parameter:
p_iIdx- The 1-based column index.- Gibt zurück:
- A boolean value, or
null. - Löst aus:
SQLException- If a database error occurred.ValueCastException- If the database value could not be cast to boolean.
-
getBooleanValue
public Boolean getBooleanValue(int p_iIdx, Boolean p_valueIfNull) throws SQLException, ValueCastException Beschreibung aus Schnittstelle kopiert:IValueAccessGet a boolean value.- Angegeben von:
getBooleanValuein SchnittstelleIValueAccess- Parameter:
p_iIdx- The 1-based column index.p_valueIfNull- The value to be returned if the database value wasNULL.- Gibt zurück:
- A boolean value, or
p_valueIfNull. - Löst aus:
SQLException- If a database error occurred.ValueCastException- If the database value could not be cast to boolean.
-
getByteValue
Beschreibung aus Schnittstelle kopiert:IValueAccessGet a byte value.- Angegeben von:
getByteValuein SchnittstelleIValueAccess- Parameter:
p_iIdx- The 1-based column index.- Gibt zurück:
- A byte value, or
null. - Löst aus:
SQLException- If a database error occurred.ValueCastException- If the database value could not be cast to byte.
-
getByteValue
Beschreibung aus Schnittstelle kopiert:IValueAccessGet a byte value.- Angegeben von:
getByteValuein SchnittstelleIValueAccess- Parameter:
p_iIdx- The 1-based column index.p_valueIfNull- The value to be returned if the database value wasNULL.- Gibt zurück:
- A byte value, or
p_valueIfNull. - Löst aus:
SQLException- If a database error occurred.ValueCastException- If the database value could not be cast to byte.
-
getShortValue
Beschreibung aus Schnittstelle kopiert:IValueAccessGet a short value.- Angegeben von:
getShortValuein SchnittstelleIValueAccess- Parameter:
p_iIdx- The 1-based column index.- Gibt zurück:
- A short value, or
null. - Löst aus:
SQLException- If a database error occurred.ValueCastException- If the database value could not be cast to short.
-
getShortValue
Beschreibung aus Schnittstelle kopiert:IValueAccessGet a short value.- Angegeben von:
getShortValuein SchnittstelleIValueAccess- Parameter:
p_iIdx- The 1-based column index.p_valueIfNull- The value to be returned if the database value wasNULL.- Gibt zurück:
- A short value, or
p_valueIfNull. - Löst aus:
SQLException- If a database error occurred.ValueCastException- If the database value could not be cast to short.
-
getIntValue
Beschreibung aus Schnittstelle kopiert:IValueAccessGet an integer value.- Angegeben von:
getIntValuein SchnittstelleIValueAccess- Parameter:
p_iIdx- The 1-based column index.- Gibt zurück:
- An integer value, or
null. - Löst aus:
SQLException- If a database error occurred.ValueCastException- If the database value could not be cast to integer.
-
getIntValue
public Integer getIntValue(int p_iIdx, Integer p_valueIfNull) throws SQLException, ValueCastException Beschreibung aus Schnittstelle kopiert:IValueAccessGet an integer value.- Angegeben von:
getIntValuein SchnittstelleIValueAccess- Parameter:
p_iIdx- The 1-based column index.p_valueIfNull- The value to be returned if the database value wasNULL.- Gibt zurück:
- An integer value, or
p_valueIfNull. - Löst aus:
SQLException- If a database error occurred.ValueCastException- If the database value could not be cast to integer.
-
getLongValue
Beschreibung aus Schnittstelle kopiert:IValueAccessGet a long value.- Angegeben von:
getLongValuein SchnittstelleIValueAccess- Parameter:
p_iIdx- The 1-based column index.- Gibt zurück:
- A long value, or
null. - Löst aus:
SQLException- If a database error occurred.ValueCastException- If the database value could not be cast to long.
-
getLongValue
Beschreibung aus Schnittstelle kopiert:IValueAccessGet a long value.- Angegeben von:
getLongValuein SchnittstelleIValueAccess- Parameter:
p_iIdx- The 1-based column index.p_valueIfNull- The value to be returned if the database value wasNULL.- Gibt zurück:
- A long value, or
p_valueIfNull. - Löst aus:
SQLException- If a database error occurred.ValueCastException- If the database value could not be cast to long.
-
getFloatValue
Beschreibung aus Schnittstelle kopiert:IValueAccessGet a single precision float value.- Angegeben von:
getFloatValuein SchnittstelleIValueAccess- Parameter:
p_iIdx- The 1-based column index.- Gibt zurück:
- A float value, or
null. - Löst aus:
SQLException- If a database error occurred.ValueCastException- If the database value could not be cast to float.
-
getFloatValue
Beschreibung aus Schnittstelle kopiert:IValueAccessGet a single precision float value.- Angegeben von:
getFloatValuein SchnittstelleIValueAccess- Parameter:
p_iIdx- The 1-based column index.p_valueIfNull- The value to be returned if the database value wasNULL.- Gibt zurück:
- A float value, or
p_valueIfNull. - Löst aus:
SQLException- If a database error occurred.ValueCastException- If the database value could not be cast to float.
-
getDoubleValue
Beschreibung aus Schnittstelle kopiert:IValueAccessGet a double value.- Angegeben von:
getDoubleValuein SchnittstelleIValueAccess- Parameter:
p_iIdx- The 1-based column index.- Gibt zurück:
- A double value, or
null. - Löst aus:
SQLException- If a database error occurred.ValueCastException- If the database value could not be cast to double.
-
getDoubleValue
public Double getDoubleValue(int p_iIdx, Double p_valueIfNull) throws SQLException, ValueCastException Beschreibung aus Schnittstelle kopiert:IValueAccessGet a double precision float value.- Angegeben von:
getDoubleValuein SchnittstelleIValueAccess- Parameter:
p_iIdx- The 1-based column index.p_valueIfNull- The value to be returned if the database value wasNULL.- Gibt zurück:
- A double value, or
p_valueIfNull. - Löst aus:
SQLException- If a database error occurred.ValueCastException- If the database value could not be cast to double.
-
getBigDecimalValue
Beschreibung aus Schnittstelle kopiert:IValueAccessGet a decimal number value.- Angegeben von:
getBigDecimalValuein SchnittstelleIValueAccess- Parameter:
p_iIdx- The 1-based column index.- Gibt zurück:
- A BigDecimal value, or
null. - Löst aus:
SQLException- If a database error occurred.ValueCastException- If the database value could not be cast to BigDecimal.
-
getBigDecimalValue
public BigDecimal getBigDecimalValue(int p_iIdx, BigDecimal p_valueIfNull) throws SQLException, ValueCastException Beschreibung aus Schnittstelle kopiert:IValueAccessGet a decimal number value.- Angegeben von:
getBigDecimalValuein SchnittstelleIValueAccess- Parameter:
p_iIdx- The 1-based column index.p_valueIfNull- The value to be returned if the database value wasNULL.- Gibt zurück:
- A BigDecimal value, or
p_valueIfNull. - Löst aus:
SQLException- If a database error occurred.ValueCastException- If the database value could not be cast to BigDecimal.
-
getStringValue
Beschreibung aus Schnittstelle kopiert:IValueAccessGet a string value.- Angegeben von:
getStringValuein SchnittstelleIValueAccess- Parameter:
p_iIdx- The 1-based column index.- Gibt zurück:
- A string value, or
null. - Löst aus:
SQLException- If a database error occurred.ValueCastException- If the database value could not be cast to a string.
-
getStringValue
public String getStringValue(int p_iIdx, String p_valueIfNull) throws SQLException, ValueCastException Beschreibung aus Schnittstelle kopiert:IValueAccessGet a string value.- Angegeben von:
getStringValuein SchnittstelleIValueAccess- Parameter:
p_iIdx- The 1-based column index.p_valueIfNull- The value to be returned if the database value wasNULL.- Gibt zurück:
- A string value, or
p_valueIfNull. - Löst aus:
SQLException- If a database error occurred.ValueCastException- If the database value could not be cast to string.
-
getTimestampValue
Beschreibung aus Schnittstelle kopiert:IValueAccessGet a timestamp value.- Angegeben von:
getTimestampValuein SchnittstelleIValueAccess- Parameter:
p_iIdx- The 1-based column index.- Gibt zurück:
- A timestamp value, or
null. - Löst aus:
SQLException- If a database error occurred.ValueCastException- If the database value could not be cast to a timestamp.
-
getTimestampValue
public Timestamp getTimestampValue(int p_iIdx, Calendar p_cal) throws SQLException, ValueCastException - Angegeben von:
getTimestampValuein SchnittstelleIDbResultSet- Löst aus:
SQLExceptionValueCastException
-
getTimestampValue
public Timestamp getTimestampValue(int p_iIdx, TimeZone p_tz) throws SQLException, ValueCastException - Angegeben von:
getTimestampValuein SchnittstelleIDbResultSet- Löst aus:
SQLExceptionValueCastException
-
getTimestampValue
public Timestamp getTimestampValue(int p_iIdx, Timestamp p_valueIfNull) throws SQLException, ValueCastException Beschreibung aus Schnittstelle kopiert:IValueAccessGet a timestamp value.- Angegeben von:
getTimestampValuein SchnittstelleIValueAccess- Parameter:
p_iIdx- The 1-based column index.p_valueIfNull- The value to be returned if the database value wasNULL.- Gibt zurück:
- A timestamp value, or
p_valueIfNull. - Löst aus:
SQLException- If a database error occurred.ValueCastException- If the database value could not be cast to timestamp.
-
getTimestampValue
public Timestamp getTimestampValue(int p_iIdx, Timestamp p_valueIfNull, TimeZone p_tz) throws SQLException, ValueCastException - Angegeben von:
getTimestampValuein SchnittstelleIDbResultSet- Löst aus:
SQLExceptionValueCastException
-
getTimestampValue
public Timestamp getTimestampValue(int p_iIdx, Timestamp p_valueIfNull, Calendar p_cal) throws SQLException, ValueCastException - Angegeben von:
getTimestampValuein SchnittstelleIDbResultSet- Löst aus:
SQLExceptionValueCastException
-
getDateValue
Beschreibung aus Schnittstelle kopiert:IValueAccessGet a date value.- Angegeben von:
getDateValuein SchnittstelleIValueAccess- Parameter:
p_iIdx- The 1-based column index.- Gibt zurück:
- A date value, or
null. - Löst aus:
SQLException- If a database error occurred.ValueCastException- If the database value could not be cast to date.
-
getDateValue
- Angegeben von:
getDateValuein SchnittstelleIDbResultSet- Löst aus:
SQLExceptionValueCastException
-
getDateValue
- Angegeben von:
getDateValuein SchnittstelleIDbResultSet- Löst aus:
SQLExceptionValueCastException
-
getDateValue
Beschreibung aus Schnittstelle kopiert:IValueAccessGet a date value.- Angegeben von:
getDateValuein SchnittstelleIValueAccess- Parameter:
p_iIdx- The 1-based column index.p_valueIfNull- The value to be returned if the database value wasNULL.- Gibt zurück:
- A date value, or
p_valueIfNull. - Löst aus:
SQLException- If a database error occurred.ValueCastException- If the database value could not be cast to date.
-
getDateValue
public Date getDateValue(int p_iIdx, Date p_valueIfNull, TimeZone p_tz) throws SQLException, ValueCastException - Angegeben von:
getDateValuein SchnittstelleIDbResultSet- Löst aus:
SQLExceptionValueCastException
-
getDateValue
public Date getDateValue(int p_iIdx, Date p_valueIfNull, Calendar p_cal) throws SQLException, ValueCastException - Angegeben von:
getDateValuein SchnittstelleIDbResultSet- Löst aus:
SQLExceptionValueCastException
-
getTimeValue
Beschreibung aus Schnittstelle kopiert:IValueAccessGet a time value.- Angegeben von:
getTimeValuein SchnittstelleIValueAccess- Parameter:
p_iIdx- The 1-based column index.- Gibt zurück:
- A time value, or
null. - Löst aus:
SQLException- If a database error occurred.ValueCastException- If the database value could not be cast to time.
-
getTimeValue
- Angegeben von:
getTimeValuein SchnittstelleIDbResultSet- Löst aus:
SQLExceptionValueCastException
-
getTimeValue
- Angegeben von:
getTimeValuein SchnittstelleIDbResultSet- Löst aus:
SQLExceptionValueCastException
-
getTimeValue
Beschreibung aus Schnittstelle kopiert:IValueAccessGet a time value.- Angegeben von:
getTimeValuein SchnittstelleIValueAccess- Parameter:
p_iIdx- The 1-based column index.p_valueIfNull- The value to be returned if the database value wasNULL.- Gibt zurück:
- A time value, or
p_valueIfNull. - Löst aus:
SQLException- If a database error occurred.ValueCastException- If the database value could not be cast to time.
-
getTimeValue
public Date getTimeValue(int p_iIdx, Date p_valueIfNull, TimeZone p_tz) throws SQLException, ValueCastException - Angegeben von:
getTimeValuein SchnittstelleIDbResultSet- Löst aus:
SQLExceptionValueCastException
-
getTimeValue
public Date getTimeValue(int p_iIdx, Date p_valueIfNull, Calendar p_cal) throws SQLException, ValueCastException - Angegeben von:
getTimeValuein SchnittstelleIDbResultSet- Löst aus:
SQLExceptionValueCastException
-
getDisconnectedRowList
Create a list of disconnected rows from this result set.Note:
- The result set data are at once fetched into memory so that calling this method may result in excessive memory consumption.
- After this method has been called, subsequent iterations over this result set will give no result. However anew call to this method will return the previous returned rows.
- Rows that were consumed in previous iterations over this result set will not be present in this list.
- Gibt zurück:
- A list of disconnected rows.
-
iterator
-
findAll
Calls the given closure for every row in the result set and returns a list of rows for which the closure is valid.- Parameter:
p_closure- The closure that's being called.- Gibt zurück:
- A list of rows the closure is valid for.
- Löst aus:
UnsupportedOperationException- - If the result set does not provide disconnected rows.
-
grep
This method is not supported.
- Löst aus:
UnsupportedOperationException
-