Record Class DatabaseUtils.ExecStatus
java.lang.Object
java.lang.Record
org.tquadrat.foundation.sql.DatabaseUtils.ExecStatus
- Record Components:
command- The failed command.error- The exception that was thrown to indicate the failure.
- All Implemented Interfaces:
Serializable
- Enclosing class:
DatabaseUtils
@ClassVersion(sourceVersion="$Id: DatabaseUtils.java 1161 2026-03-16 21:00:45Z tquadrat $")
@API(status=STABLE,
since="0.0.1")
public static record DatabaseUtils.ExecStatus(String command, SQLException error)
extends Record
implements Serializable
Instances of this class are used to return the status of
a call to
DatabaseUtils.execute(Connection,String...).
- Author:
- Thomas Thrien (thomas.thrien@tquadrat.org)
- Version:
- $Id: DatabaseUtils.java 1161 2026-03-16 21:00:45Z tquadrat $
- Since:
- 0.0.1
- See Also:
- UML Diagram
-
UML Diagram for "org.tquadrat.foundation.sql.DatabaseUtils.ExecStatus"
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionExecStatus(String command, SQLException error) Creates a newExecStatusinstance. -
Method Summary
Modifier and TypeMethodDescriptioncommand()Returns the value of thecommandrecord component.final booleanIndicates whether some other object is "equal to" this one.error()Returns the value of theerrorrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
command
-
error
The field for theerrorrecord component.
-
-
Constructor Details
-
ExecStatus
Creates a newExecStatusinstance.- Parameters:
command- The failed command.error- The exception for the failure.
-
-
Method Details
-
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). -
command
-
error
-
