Record Class QueryInfo
java.lang.Object
java.lang.Record
org.geysermc.databaseutils.processor.query.QueryInfo
public record QueryInfo(String tableName, CharSequence entityType, List<ColumnInfo> columns, List<QuerySection> sections, List<? extends CharSequence> parameterNames)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionQueryInfo(String tableName, CharSequence entityType, List<ColumnInfo> columns, List<QuerySection> sections, List<? extends CharSequence> parameterNames) Creates an instance of aQueryInforecord class. -
Method Summary
Modifier and TypeMethodDescriptioncolumnFor(CharSequence columnName) columns()Returns the value of thecolumnsrecord component.Returns the value of theentityTyperecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.List<? extends CharSequence>Returns the value of theparameterNamesrecord component.sections()Returns the value of thesectionsrecord component.Returns the value of thetableNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
QueryInfo
public QueryInfo(String tableName, CharSequence entityType, List<ColumnInfo> columns, List<QuerySection> sections, List<? extends CharSequence> parameterNames) Creates an instance of aQueryInforecord class.- Parameters:
tableName- the value for thetableNamerecord componententityType- the value for theentityTyperecord componentcolumns- the value for thecolumnsrecord componentsections- the value for thesectionsrecord componentparameterNames- the value for theparameterNamesrecord component
-
-
Method Details
-
columnFor
-
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). -
tableName
Returns the value of thetableNamerecord component.- Returns:
- the value of the
tableNamerecord component
-
entityType
Returns the value of theentityTyperecord component.- Returns:
- the value of the
entityTyperecord component
-
columns
Returns the value of thecolumnsrecord component.- Returns:
- the value of the
columnsrecord component
-
sections
Returns the value of thesectionsrecord component.- Returns:
- the value of the
sectionsrecord component
-
parameterNames
Returns the value of theparameterNamesrecord component.- Returns:
- the value of the
parameterNamesrecord component
-