Package net.truej.sql.compiler
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 Summary
ConstructorsConstructorDescriptionFetchInvocation(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) Creates an instance of aFetchInvocationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbindings()Returns the value of thebindingsrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefetchMethodNamerecord component.Returns the value of thegeneratedClassNamerecord component.Returns the value of thegeneratedCoderecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of thelineNumberrecord component.Returns the value of theonDatabaserecord component.Returns the value of theparametersMetadatarecord component.query()Returns the value of thequeryrecord component.com.sun.tools.javac.tree.JCTree.JCIdentReturns the value of thesourceExpressionrecord component.final StringtoString()Returns a string representation of this record class.warnings()Returns the value of thewarningsrecord component.
-
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 aFetchInvocationrecord class.- Parameters:
onDatabase- the value for theonDatabaserecord componentbindings- the value for thebindingsrecord componentgeneratedClassName- the value for thegeneratedClassNamerecord componentfetchMethodName- the value for thefetchMethodNamerecord componentlineNumber- the value for thelineNumberrecord componentwarnings- the value for thewarningsrecord componentsourceExpression- the value for thesourceExpressionrecord componentquery- the value for thequeryrecord componentparametersMetadata- the value for theparametersMetadatarecord componentgeneratedCode- the value for thegeneratedCoderecord 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 '=='. -
onDatabase
Returns the value of theonDatabaserecord component.- Returns:
- the value of the
onDatabaserecord component
-
bindings
Returns the value of thebindingsrecord component.- Returns:
- the value of the
bindingsrecord component
-
generatedClassName
Returns the value of thegeneratedClassNamerecord component.- Returns:
- the value of the
generatedClassNamerecord component
-
fetchMethodName
Returns the value of thefetchMethodNamerecord component.- Returns:
- the value of the
fetchMethodNamerecord component
-
lineNumber
public int lineNumber()Returns the value of thelineNumberrecord component.- Returns:
- the value of the
lineNumberrecord component
-
warnings
Returns the value of thewarningsrecord component.- Returns:
- the value of the
warningsrecord component
-
sourceExpression
public com.sun.tools.javac.tree.JCTree.JCIdent sourceExpression()Returns the value of thesourceExpressionrecord component.- Returns:
- the value of the
sourceExpressionrecord component
-
query
Returns the value of thequeryrecord component.- Returns:
- the value of the
queryrecord component
-
parametersMetadata
Returns the value of theparametersMetadatarecord component.- Returns:
- the value of the
parametersMetadatarecord component
-
generatedCode
Returns the value of thegeneratedCoderecord component.- Returns:
- the value of the
generatedCoderecord component
-