Package ch.ergon.adam.oracle
Record Class OracleScriptParser.SqlStatement
java.lang.Object
java.lang.Record
ch.ergon.adam.oracle.OracleScriptParser.SqlStatement
- Enclosing class:
OracleScriptParser
-
Constructor Summary
ConstructorsConstructorDescriptionSqlStatement(String statement, int lineNo) Creates an instance of aSqlStatementrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intlineNo()Returns the value of thelineNorecord component.Returns the value of thestatementrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SqlStatement
Creates an instance of aSqlStatementrecord class.- Parameters:
statement- the value for thestatementrecord componentlineNo- the value for thelineNorecord component
-
-
Method Details
-
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 '=='. -
statement
Returns the value of thestatementrecord component.- Returns:
- the value of the
statementrecord component
-
lineNo
public int lineNo()Returns the value of thelineNorecord component.- Returns:
- the value of the
lineNorecord component
-