Package org.ethelred.kiwiproc.processor
Record Class DAOParameterInfo
java.lang.Object
java.lang.Record
org.ethelred.kiwiproc.processor.DAOParameterInfo
public record DAOParameterInfo(int index, String javaAccessor, String setter, int sqlType, TypeMapping mapper, VariableElement element, @Nullable String arrayComponent)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionDAOParameterInfo(int index, String javaAccessor, String setter, int sqlType, TypeMapping mapper, VariableElement element, @Nullable String arrayComponent) Creates an instance of aDAOParameterInforecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable StringReturns the value of thearrayComponentrecord component.element()Returns the value of theelementrecord component.final booleanIndicates whether some other object is "equal to" this one.static List<DAOParameterInfo>from(TypeUtils typeUtils, Map<org.ethelred.kiwiproc.meta.ColumnMetaData, MethodParameterInfo> parameterMapping) final inthashCode()Returns a hash code value for this object.intindex()Returns the value of theindexrecord component.Returns the value of thejavaAccessorrecord component.mapper()Returns the value of themapperrecord component.setter()Returns the value of thesetterrecord component.intsqlType()Returns the value of thesqlTyperecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DAOParameterInfo
public DAOParameterInfo(int index, String javaAccessor, String setter, int sqlType, TypeMapping mapper, VariableElement element, @Nullable String arrayComponent) Creates an instance of aDAOParameterInforecord class.- Parameters:
index- the value for theindexrecord componentjavaAccessor- the value for thejavaAccessorrecord componentsetter- the value for thesetterrecord componentsqlType- the value for thesqlTyperecord componentmapper- the value for themapperrecord componentelement- the value for theelementrecord componentarrayComponent- the value for thearrayComponentrecord component
-
-
Method Details
-
from
public static List<DAOParameterInfo> from(TypeUtils typeUtils, Map<org.ethelred.kiwiproc.meta.ColumnMetaData, MethodParameterInfo> parameterMapping) -
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 '=='. -
index
public int index()Returns the value of theindexrecord component.- Returns:
- the value of the
indexrecord component
-
javaAccessor
Returns the value of thejavaAccessorrecord component.- Returns:
- the value of the
javaAccessorrecord component
-
setter
Returns the value of thesetterrecord component.- Returns:
- the value of the
setterrecord component
-
sqlType
public int sqlType()Returns the value of thesqlTyperecord component.- Returns:
- the value of the
sqlTyperecord component
-
mapper
Returns the value of themapperrecord component.- Returns:
- the value of the
mapperrecord component
-
element
Returns the value of theelementrecord component.- Returns:
- the value of the
elementrecord component
-
arrayComponent
Returns the value of thearrayComponentrecord component.- Returns:
- the value of the
arrayComponentrecord component
-