Record Class QueryContext
java.lang.Object
java.lang.Record
org.geysermc.databaseutils.processor.query.QueryContext
public record QueryContext(EntityInfo entityInfo, KeywordsReadResult result, ParametersTypeInfo parametersInfo, ReturnTypeInfo returnInfo, TypeUtils typeUtils)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionQueryContext(EntityInfo entityInfo, KeywordsReadResult result, ParametersTypeInfo parametersInfo, ReturnTypeInfo returnInfo, TypeUtils typeUtils) Creates an instance of aQueryContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncolumnFor(CharSequence columnName) columns()Returns the value of theentityInforecord component.final booleanIndicates whether some other object is "equal to" this one.booleanfinal inthashCode()Returns a hash code value for this object.booleanbooleanmethod()Returns the value of theparametersInforecord component.result()Returns the value of theresultrecord component.Returns the value of thereturnInforecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetypeUtilsrecord component.
-
Constructor Details
-
QueryContext
public QueryContext(EntityInfo entityInfo, KeywordsReadResult result, ParametersTypeInfo parametersInfo, ReturnTypeInfo returnInfo, TypeUtils typeUtils) Creates an instance of aQueryContextrecord class.- Parameters:
entityInfo- the value for theentityInforecord componentresult- the value for theresultrecord componentparametersInfo- the value for theparametersInforecord componentreturnInfo- the value for thereturnInforecord componenttypeUtils- the value for thetypeUtilsrecord component
-
-
Method Details
-
tableName
-
entityTypeName
-
entityType
-
columns
-
columnFor
-
hasBySection
public boolean hasBySection() -
bySectionFactors
-
methodName
-
method
-
returnType
-
projection
-
hasProjection
public boolean hasProjection() -
hasProjectionColumnName
public boolean hasProjectionColumnName() -
projectionColumnInfo
-
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). -
entityInfo
Returns the value of theentityInforecord component.- Returns:
- the value of the
entityInforecord component
-
result
Returns the value of theresultrecord component.- Returns:
- the value of the
resultrecord component
-
parametersInfo
Returns the value of theparametersInforecord component.- Returns:
- the value of the
parametersInforecord component
-
returnInfo
Returns the value of thereturnInforecord component.- Returns:
- the value of the
returnInforecord component
-
typeUtils
Returns the value of thetypeUtilsrecord component.- Returns:
- the value of the
typeUtilsrecord component
-