Class QueryInput
java.lang.Object
com.kingsrook.qqq.backend.core.model.actions.AbstractActionInput
com.kingsrook.qqq.backend.core.model.actions.AbstractTableActionInput
com.kingsrook.qqq.backend.core.model.actions.tables.query.QueryInput
- All Implemented Interfaces:
QueryOrGetInputInterface
,Cloneable
public class QueryInput
extends AbstractTableActionInput
implements QueryOrGetInputInterface, Cloneable
Input data for the Query action
Todo - maybe make a class between AbstractTableActionInput and {QueryInput,
CountInput, and AggregateInput}, with common attributes for all of these
"read" operations (like, queryHints,
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
Getter for associationNamesToIncludeGetter for fieldNamesToIncludeGetter for fieldsToTranslatePossibleValuesGetter for filterboolean
Getter for includeAssociationsGetter for queryHintsGetter for queryJoinsGetter for recordPipeboolean
Getter for selectDistinctboolean
Getter for shouldFetchHeavyFieldsboolean
Getter for shouldGenerateDisplayValuesboolean
Getter for shouldMaskPasswordsboolean
Getter for shouldOmitHiddenFieldsboolean
Getter for shouldTranslatePossibleValuesGetter for timeoutSecondsGetter for transactionboolean
hasQueryHint
(QueryHint queryHint) null-safely check if query hints map contains the specified hintvoid
setAssociationNamesToInclude
(Collection<String> associationNamesToInclude) Setter for associationNamesToIncludevoid
setFieldNamesToInclude
(Set<String> fieldNamesToInclude) Setter for fieldNamesToIncludevoid
setFieldsToTranslatePossibleValues
(Set<String> fieldsToTranslatePossibleValues) Setter for fieldsToTranslatePossibleValuesvoid
setFilter
(QQueryFilter filter) Setter for filtervoid
setIncludeAssociations
(boolean includeAssociations) Setter for includeAssociationsvoid
setQueryHints
(EnumSet<QueryHint> queryHints) Setter for queryHintsvoid
setQueryJoins
(List<QueryJoin> queryJoins) Setter for queryJoinsvoid
setRecordPipe
(RecordPipe recordPipe) Setter for recordPipevoid
setSelectDistinct
(boolean selectDistinct) Setter for selectDistinctvoid
setShouldFetchHeavyFields
(boolean shouldFetchHeavyFields) Setter for shouldFetchHeavyFieldsvoid
setShouldGenerateDisplayValues
(boolean shouldGenerateDisplayValues) Setter for shouldGenerateDisplayValuesvoid
setShouldMaskPasswords
(boolean shouldMaskPasswords) Setter for shouldMaskPasswordsvoid
setShouldOmitHiddenFields
(boolean shouldOmitHiddenFields) Setter for shouldOmitHiddenFieldsvoid
setShouldTranslatePossibleValues
(boolean shouldTranslatePossibleValues) Setter for shouldTranslatePossibleValuesvoid
setTimeoutSeconds
(Integer timeoutSeconds) Setter for timeoutSecondsvoid
setTransaction
(QBackendTransaction transaction) Setter for transactionwithAssociationNamesToInclude
(Collection<String> associationNamesToInclude) Fluent setter for associationNamesToIncludewithFieldNamesToInclude
(Set<String> fieldNamesToInclude) Fluent setter for fieldNamesToIncludewithFieldsToTranslatePossibleValues
(Set<String> fieldsToTranslatePossibleValues) Fluent setter for fieldsToTranslatePossibleValueswithFilter
(QQueryFilter filter) Fluent setter for filterwithIncludeAssociations
(boolean includeAssociations) Fluent setter for includeAssociationswithoutQueryHint
(QueryHint queryHint) Fluent setter for queryHintswithQueryHint
(QueryHint queryHint) Fluent setter for queryHintswithQueryHints
(EnumSet<QueryHint> queryHints) Fluent setter for queryHintswithQueryJoin
(QueryJoin queryJoin) Fluent setter for queryJoinswithQueryJoins
(List<QueryJoin> queryJoins) Fluent setter for queryJoinswithRecordPipe
(RecordPipe recordPipe) Fluent setter for recordPipewithSelectDistinct
(boolean selectDistinct) Fluent setter for selectDistinctwithShouldFetchHeavyFields
(boolean shouldFetchHeavyFields) Fluent setter for shouldFetchHeavyFieldswithShouldGenerateDisplayValues
(boolean shouldGenerateDisplayValues) Fluent setter for shouldGenerateDisplayValueswithShouldMaskPasswords
(boolean shouldMaskPasswords) Fluent setter for shouldMaskPasswordswithShouldOmitHiddenFields
(boolean shouldOmitHiddenFields) Fluent setter for shouldOmitHiddenFieldswithShouldTranslatePossibleValues
(boolean shouldTranslatePossibleValues) Fluent setter for shouldTranslatePossibleValueswithTableName
(String tableName) Fluent setter for tableNamewithTimeoutSeconds
(Integer timeoutSeconds) Fluent setter for timeoutSecondswithTransaction
(QBackendTransaction transaction) Fluent setter for transactionMethods inherited from class com.kingsrook.qqq.backend.core.model.actions.AbstractTableActionInput
getActionIdentity, getBackend, getTable, getTableName, setTableName
Methods inherited from class com.kingsrook.qqq.backend.core.model.actions.AbstractActionInput
getAsyncJobCallback, getInstance, getSession, setAsyncJobCallback
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.kingsrook.qqq.backend.core.model.actions.tables.QueryOrGetInputInterface
getTableName, setCommonParamsFrom
-
Constructor Details
-
QueryInput
public QueryInput() -
QueryInput
Constructor
-
-
Method Details
-
clone
- Overrides:
clone
in classObject
- Throws:
CloneNotSupportedException
-
getFilter
Getter for filter -
setFilter
Setter for filter -
getRecordPipe
Getter for recordPipe -
setRecordPipe
Setter for recordPipe -
getShouldTranslatePossibleValues
public boolean getShouldTranslatePossibleValues()Getter for shouldTranslatePossibleValues- Specified by:
getShouldTranslatePossibleValues
in interfaceQueryOrGetInputInterface
-
setShouldTranslatePossibleValues
public void setShouldTranslatePossibleValues(boolean shouldTranslatePossibleValues) Setter for shouldTranslatePossibleValues- Specified by:
setShouldTranslatePossibleValues
in interfaceQueryOrGetInputInterface
-
getShouldGenerateDisplayValues
public boolean getShouldGenerateDisplayValues()Getter for shouldGenerateDisplayValues- Specified by:
getShouldGenerateDisplayValues
in interfaceQueryOrGetInputInterface
-
setShouldGenerateDisplayValues
public void setShouldGenerateDisplayValues(boolean shouldGenerateDisplayValues) Setter for shouldGenerateDisplayValues- Specified by:
setShouldGenerateDisplayValues
in interfaceQueryOrGetInputInterface
-
getShouldFetchHeavyFields
public boolean getShouldFetchHeavyFields()Getter for shouldFetchHeavyFields- Specified by:
getShouldFetchHeavyFields
in interfaceQueryOrGetInputInterface
-
setShouldFetchHeavyFields
public void setShouldFetchHeavyFields(boolean shouldFetchHeavyFields) Setter for shouldFetchHeavyFields- Specified by:
setShouldFetchHeavyFields
in interfaceQueryOrGetInputInterface
-
getTransaction
Getter for transaction- Specified by:
getTransaction
in interfaceQueryOrGetInputInterface
-
setTransaction
Setter for transaction- Specified by:
setTransaction
in interfaceQueryOrGetInputInterface
-
withTransaction
Fluent setter for transaction -
getQueryJoins
Getter for queryJoins- Specified by:
getQueryJoins
in interfaceQueryOrGetInputInterface
-
setQueryJoins
Setter for queryJoins- Specified by:
setQueryJoins
in interfaceQueryOrGetInputInterface
-
withQueryJoins
Fluent setter for queryJoins -
withQueryJoin
Fluent setter for queryJoins -
getFieldsToTranslatePossibleValues
-
setFieldsToTranslatePossibleValues
-
withFieldsToTranslatePossibleValues
Fluent setter for fieldsToTranslatePossibleValues -
withFilter
Fluent setter for filter -
withRecordPipe
Fluent setter for recordPipe -
withShouldTranslatePossibleValues
Fluent setter for shouldTranslatePossibleValues -
withShouldGenerateDisplayValues
Fluent setter for shouldGenerateDisplayValues -
withShouldFetchHeavyFields
Fluent setter for shouldFetchHeavyFields -
withTableName
Description copied from class:AbstractTableActionInput
Fluent setter for tableName- Overrides:
withTableName
in classAbstractTableActionInput
-
getIncludeAssociations
public boolean getIncludeAssociations()Getter for includeAssociations- Specified by:
getIncludeAssociations
in interfaceQueryOrGetInputInterface
-
setIncludeAssociations
public void setIncludeAssociations(boolean includeAssociations) Setter for includeAssociations- Specified by:
setIncludeAssociations
in interfaceQueryOrGetInputInterface
-
withIncludeAssociations
Fluent setter for includeAssociations -
getAssociationNamesToInclude
Getter for associationNamesToInclude- Specified by:
getAssociationNamesToInclude
in interfaceQueryOrGetInputInterface
-
setAssociationNamesToInclude
Setter for associationNamesToInclude- Specified by:
setAssociationNamesToInclude
in interfaceQueryOrGetInputInterface
-
withAssociationNamesToInclude
Fluent setter for associationNamesToInclude -
getShouldMaskPasswords
public boolean getShouldMaskPasswords()Getter for shouldMaskPasswords- Specified by:
getShouldMaskPasswords
in interfaceQueryOrGetInputInterface
-
setShouldMaskPasswords
public void setShouldMaskPasswords(boolean shouldMaskPasswords) Setter for shouldMaskPasswords- Specified by:
setShouldMaskPasswords
in interfaceQueryOrGetInputInterface
-
withShouldMaskPasswords
Fluent setter for shouldMaskPasswords -
getShouldOmitHiddenFields
public boolean getShouldOmitHiddenFields()Getter for shouldOmitHiddenFields- Specified by:
getShouldOmitHiddenFields
in interfaceQueryOrGetInputInterface
-
setShouldOmitHiddenFields
public void setShouldOmitHiddenFields(boolean shouldOmitHiddenFields) Setter for shouldOmitHiddenFields- Specified by:
setShouldOmitHiddenFields
in interfaceQueryOrGetInputInterface
-
withShouldOmitHiddenFields
Fluent setter for shouldOmitHiddenFields -
getSelectDistinct
public boolean getSelectDistinct()Getter for selectDistinct -
setSelectDistinct
public void setSelectDistinct(boolean selectDistinct) Setter for selectDistinct -
withSelectDistinct
Fluent setter for selectDistinct -
getTimeoutSeconds
Getter for timeoutSeconds -
setTimeoutSeconds
Setter for timeoutSeconds -
withTimeoutSeconds
Fluent setter for timeoutSeconds -
getQueryHints
-
setQueryHints
-
withQueryHints
Fluent setter for queryHints -
withQueryHint
Fluent setter for queryHints -
withoutQueryHint
Fluent setter for queryHints -
hasQueryHint
null-safely check if query hints map contains the specified hint -
getFieldNamesToInclude
-
setFieldNamesToInclude
-
withFieldNamesToInclude
Fluent setter for fieldNamesToInclude
-