Package org.ethelred.kiwiproc.processor
Record Class DAOMethodInfo
java.lang.Object
java.lang.Record
org.ethelred.kiwiproc.processor.DAOMethodInfo
public record DAOMethodInfo(ExecutableElement methodElement, Signature signature, QueryMethodKind kind, org.ethelred.kiwiproc.meta.ParsedQuery parsedSql, List<DAOParameterInfo> parameterMapping, List<DAOResultColumn> multipleColumns, @Nullable DAOResultColumn singleColumn)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionDAOMethodInfo(ExecutableElement methodElement, Signature signature, QueryMethodKind kind, org.ethelred.kiwiproc.meta.ParsedQuery parsedSql, List<DAOParameterInfo> parameterMapping, List<DAOResultColumn> multipleColumns, @Nullable DAOResultColumn singleColumn) Creates an instance of aDAOMethodInforecord 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.kind()Returns the value of thekindrecord component.Returns the value of themethodElementrecord component.Returns the value of themultipleColumnsrecord component.Returns the value of theparameterMappingrecord component.org.ethelred.kiwiproc.meta.ParsedQueryReturns the value of theparsedSqlrecord component.Returns the value of thesignaturerecord component.@Nullable DAOResultColumnReturns the value of thesingleColumnrecord component.booleanfinal StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DAOMethodInfo
public DAOMethodInfo(ExecutableElement methodElement, Signature signature, QueryMethodKind kind, org.ethelred.kiwiproc.meta.ParsedQuery parsedSql, List<DAOParameterInfo> parameterMapping, List<DAOResultColumn> multipleColumns, @Nullable DAOResultColumn singleColumn) Creates an instance of aDAOMethodInforecord class.- Parameters:
methodElement- the value for themethodElementrecord componentsignature- the value for thesignaturerecord componentkind- the value for thekindrecord componentparsedSql- the value for theparsedSqlrecord componentparameterMapping- the value for theparameterMappingrecord componentmultipleColumns- the value for themultipleColumnsrecord componentsingleColumn- the value for thesingleColumnrecord component
-
-
Method Details
-
resultComponentType
-
singleResult
public boolean singleResult() -
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. All components in this record class are compared withObjects::equals(Object,Object). -
methodElement
Returns the value of themethodElementrecord component.- Returns:
- the value of the
methodElementrecord component
-
signature
Returns the value of thesignaturerecord component.- Returns:
- the value of the
signaturerecord component
-
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
parsedSql
public org.ethelred.kiwiproc.meta.ParsedQuery parsedSql()Returns the value of theparsedSqlrecord component.- Returns:
- the value of the
parsedSqlrecord component
-
parameterMapping
Returns the value of theparameterMappingrecord component.- Returns:
- the value of the
parameterMappingrecord component
-
multipleColumns
Returns the value of themultipleColumnsrecord component.- Returns:
- the value of the
multipleColumnsrecord component
-
singleColumn
Returns the value of thesingleColumnrecord component.- Returns:
- the value of the
singleColumnrecord component
-