Record Class TrueSqlPlugin.FetchInvocation

java.lang.Object
java.lang.Record
net.truej.sql.compiler.TrueSqlPlugin.FetchInvocation
All Implemented Interfaces:
TrueSqlPlugin.MethodInvocationResult
Enclosing class:
TrueSqlPlugin

public static record TrueSqlPlugin.FetchInvocation(String onDatabase, List<Standard.Binding> bindings, String generatedClassName, String fetchMethodName, int lineNumber, List<TrueSqlPlugin.CompilationWarning> warnings, com.sun.tools.javac.tree.JCTree.JCIdent sourceExpression, StatementGenerator.Query query, List<JdbcMetadataFetcher.SqlParameterMetadata> parametersMetadata, String generatedCode) extends Record implements TrueSqlPlugin.MethodInvocationResult
  • Constructor Details

    • FetchInvocation

      public FetchInvocation(String onDatabase, List<Standard.Binding> bindings, String generatedClassName, String fetchMethodName, int lineNumber, List<TrueSqlPlugin.CompilationWarning> warnings, com.sun.tools.javac.tree.JCTree.JCIdent sourceExpression, StatementGenerator.Query query, @Nullable List<JdbcMetadataFetcher.SqlParameterMetadata> parametersMetadata, String generatedCode)
      Creates an instance of a FetchInvocation record class.
      Parameters:
      onDatabase - the value for the onDatabase record component
      bindings - the value for the bindings record component
      generatedClassName - the value for the generatedClassName record component
      fetchMethodName - the value for the fetchMethodName record component
      lineNumber - the value for the lineNumber record component
      warnings - the value for the warnings record component
      sourceExpression - the value for the sourceExpression record component
      query - the value for the query record component
      parametersMetadata - the value for the parametersMetadata record component
      generatedCode - the value for the generatedCode record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • onDatabase

      public String onDatabase()
      Returns the value of the onDatabase record component.
      Returns:
      the value of the onDatabase record component
    • bindings

      public List<Standard.Binding> bindings()
      Returns the value of the bindings record component.
      Returns:
      the value of the bindings record component
    • generatedClassName

      public String generatedClassName()
      Returns the value of the generatedClassName record component.
      Returns:
      the value of the generatedClassName record component
    • fetchMethodName

      public String fetchMethodName()
      Returns the value of the fetchMethodName record component.
      Returns:
      the value of the fetchMethodName record component
    • lineNumber

      public int lineNumber()
      Returns the value of the lineNumber record component.
      Returns:
      the value of the lineNumber record component
    • warnings

      Returns the value of the warnings record component.
      Returns:
      the value of the warnings record component
    • sourceExpression

      public com.sun.tools.javac.tree.JCTree.JCIdent sourceExpression()
      Returns the value of the sourceExpression record component.
      Returns:
      the value of the sourceExpression record component
    • query

      public StatementGenerator.Query query()
      Returns the value of the query record component.
      Returns:
      the value of the query record component
    • parametersMetadata

      @Nullable public List<JdbcMetadataFetcher.SqlParameterMetadata> parametersMetadata()
      Returns the value of the parametersMetadata record component.
      Returns:
      the value of the parametersMetadata record component
    • generatedCode

      public String generatedCode()
      Returns the value of the generatedCode record component.
      Returns:
      the value of the generatedCode record component