Class RetrievedSQLRecordImpl
- java.lang.Object
-
- com.nimbusds.infinispan.persistence.sql.RetrievedSQLRecordImpl
-
- All Implemented Interfaces:
RetrievedSQLRecord
public class RetrievedSQLRecordImpl extends java.lang.Object implements RetrievedSQLRecord
Retrieved SQL record implementation.
-
-
Constructor Summary
Constructors Constructor Description RetrievedSQLRecordImpl(org.jooq.Record record)
Creates a new retrieved record.RetrievedSQLRecordImpl(org.jooq.Record record, boolean fieldsToUpperCase)
Creates a new retrieved record.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
get(java.lang.String fieldName)
Gets a value from the record.<U> U
get(java.lang.String fieldName, java.lang.Class<? extends U> type)
Gets a converted value from the record.int
size()
Gets the number of fields in the record.java.lang.String
toString()
-
-
-
Constructor Detail
-
RetrievedSQLRecordImpl
public RetrievedSQLRecordImpl(org.jooq.Record record)
Creates a new retrieved record.- Parameters:
record
- The underlying jOOQ record.
-
RetrievedSQLRecordImpl
public RetrievedSQLRecordImpl(org.jooq.Record record, boolean fieldsToUpperCase)
Creates a new retrieved record.- Parameters:
record
- The underlying jOOQ record.fieldsToUpperCase
- Controls conversion of the field names to upper case.
-
-
Method Detail
-
get
public java.lang.Object get(java.lang.String fieldName)
Description copied from interface:RetrievedSQLRecord
Gets a value from the record.- Specified by:
get
in interfaceRetrievedSQLRecord
- Parameters:
fieldName
- The field name.- Returns:
- The value of the field contained in the record.
-
get
public <U> U get(java.lang.String fieldName, java.lang.Class<? extends U> type)
Description copied from interface:RetrievedSQLRecord
Gets a converted value from the record.- Specified by:
get
in interfaceRetrievedSQLRecord
- Type Parameters:
U
- The conversion type parameter- Parameters:
fieldName
- The field name.type
- The conversion type- Returns:
- The value of the field contained in the record.
-
size
public int size()
Description copied from interface:RetrievedSQLRecord
Gets the number of fields in the record.- Specified by:
size
in interfaceRetrievedSQLRecord
- Returns:
- The number of fields in the record.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-