Package de.julianweinelt.datacat.api
Record Class DConnection.SQLAnswer
java.lang.Object
java.lang.Record
de.julianweinelt.datacat.api.DConnection.SQLAnswer
- Enclosing class:
- DConnection
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncolumns()final booleanIndicates whether some other object is "equal to" this one.longReturns the value of theexecutionTimeMsrecord component.final inthashCode()Returns a hash code value for this object.message()Returns the value of themessagerecord component.Returns the value of theresultSetrecord component.Object[][]rows()booleansuccess()Returns the value of thesuccessrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of theupdateCountrecord component.
-
Constructor Details
-
SQLAnswer
public SQLAnswer(boolean success, ResultSet resultSet, int updateCount, String message, long executionTimeMs) Creates an instance of aSQLAnswerrecord class.- Parameters:
success- the value for thesuccessrecord componentresultSet- the value for theresultSetrecord componentupdateCount- the value for theupdateCountrecord componentmessage- the value for themessagerecord componentexecutionTimeMs- the value for theexecutionTimeMsrecord component
-
-
Method Details
-
columns
- Throws:
SQLException
-
rows
- Throws:
SQLException
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
success
public boolean success()Returns the value of thesuccessrecord component.- Returns:
- the value of the
successrecord component
-
resultSet
Returns the value of theresultSetrecord component.- Returns:
- the value of the
resultSetrecord component
-
updateCount
public int updateCount()Returns the value of theupdateCountrecord component.- Returns:
- the value of the
updateCountrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
executionTimeMs
public long executionTimeMs()Returns the value of theexecutionTimeMsrecord component.- Returns:
- the value of the
executionTimeMsrecord component
-