Record Class ResultSetWrapper
java.lang.Object
java.lang.Record
br.ufsc.labsec.signature.database.query.ResultSetWrapper
Classe que encapsula um
ResultSet para impedir que o ponteiro seja movido ou a conexão seja fechada.
Essas operações são feitas pelo IntermediaryQueryResult
-
Constructor Summary
ConstructorsConstructorDescriptionResultSetWrapper(ResultSet resultSet) Creates an instance of aResultSetWrapperrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleangetBoolean(String columnLabel) byte[]intlongfinal inthashCode()Returns a hash code value for this object.Returns the value of theresultSetrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ResultSetWrapper
Creates an instance of aResultSetWrapperrecord class.- Parameters:
resultSet- the value for theresultSetrecord component
-
-
Method Details
-
getString
- Throws:
SQLException
-
getInt
- Throws:
SQLException
-
getLong
- Throws:
SQLException
-
getBoolean
- Throws:
SQLException
-
getBytes
- Throws:
SQLException
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
resultSet
Returns the value of theresultSetrecord component.- Returns:
- the value of the
resultSetrecord component
-