Package io.jmix.reports.entity
Class DataSet
java.lang.Object
io.jmix.reports.entity.DataSet
- All Implemented Interfaces:
CopyingSystemState<DataSet>,ReportQuery,Serializable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringName of the band this data set belongs to, published so that a loader can tell what belongs to its own band.static final StringOrientation of the band this data set belongs to, published for the same reason asBAND_NAME: only a cross-tab band is handed the values of its axes, so a loader that reads them has to know whether its own band is one.protected BandDefinitionstatic final Stringprotected Stringstatic final Stringprotected Stringprotected FetchPlanprotected Stringprotected FetchPlanProviderprotected UUIDstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringprotected JsonInputProviderprotected Stringprotected ReportInputParameterprotected Stringprotected Integerprotected Stringstatic final Stringprotected Stringstatic final Stringprotected Stringprotected ReportDataLoaderprotected Stringprotected Booleanprotected Stringprotected Integerprotected Boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidInvoked by the framework when copying the entity instance.getId()@Nullable String@Nullable StringgetName()Sql, groovy or other script which describes logic of data loadinggetText()getType()voidsetBandDefinition(BandDefinition bandDefinition) voidsetDataStore(String dataStore) voidsetEntityParamName(String entityParamName) voidsetFetchPlan(FetchPlan fetchPlan) voidsetFetchPlanName(String fetchPlanName) voidsetFetchPlanProvider(FetchPlanProvider fetchPlanProvider) voidvoidsetJsonInputProvider(JsonInputProvider jsonInputProvider) voidsetJsonPathQuery(String jsonPathQuery) voidsetJsonSourceInputParameter(ReportInputParameter jsonSourceInputParameter) voidsetJsonSourceText(String jsonSourceText) voidsetJsonSourceType(JsonSourceType jsonSourceType) voidsetLinkParameterName(String linkParameterName) voidsetListEntitiesParamName(String listEntitiesParamName) voidsetLlmGeneratedQuery(@Nullable String llmGeneratedQuery) voidsetLoaderDelegate(ReportDataLoader loaderDelegate) voidvoidsetProcessTemplate(Boolean processTemplate) voidvoidsetType(DataSetType type) voidsetUseExistingFetchPLan(Boolean useExistingFetchPLan)
-
Field Details
-
ENTITY_PARAM_NAME
- See Also:
-
LIST_ENTITIES_PARAM_NAME
- See Also:
-
DATA_STORE_PARAM_NAME
- See Also:
-
JSON_SOURCE_TYPE
- See Also:
-
JSON_SOURCE_TEXT
- See Also:
-
JSON_INPUT_PROVIDER
- See Also:
-
JSON_PATH_QUERY
- See Also:
-
JSON_INPUT_PARAMETER
- See Also:
-
LLM_GENERATED_QUERY
- See Also:
-
BAND_NAME
Name of the band this data set belongs to, published so that a loader can tell what belongs to its own band. A loader is given aReportQueryand the params of the run, and the params of a run are one mutable map shared by every band of it (ExtractionContextImpl#extendParams), so an entry named after another band is indistinguishable from one's own by name alone.- See Also:
-
BAND_ORIENTATION
Orientation of the band this data set belongs to, published for the same reason asBAND_NAME: only a cross-tab band is handed the values of its axes, so a loader that reads them has to know whether its own band is one.- See Also:
-
fetchPlan
-
fetchPlanProvider
-
jsonInputProvider
-
loaderDelegate
-
id
-
name
-
useExistingFetchPLan
-
fetchPlanName
-
text
-
type
-
jsonSourceType
-
jsonSourceText
-
jsonPathQuery
-
jsonSourceInputParameter
-
llmGeneratedQuery
-
entityParamName
-
listEntitiesParamName
-
bandDefinition
-
linkParameterName
-
dataStore
-
processTemplate
-
-
Constructor Details
-
DataSet
public DataSet()
-
-
Method Details
-
getId
-
setId
-
getFetchPlan
-
setFetchPlan
-
getFetchPlanProvider
-
setFetchPlanProvider
-
getUseExistingFetchPLan
-
setUseExistingFetchPLan
-
getName
- Specified by:
getNamein interfaceReportQuery
-
setName
-
getFetchPlanName
-
setFetchPlanName
-
getText
-
setText
-
getType
-
setType
-
getEntityParamName
-
setEntityParamName
-
getListEntitiesParamName
-
setListEntitiesParamName
-
getBandDefinition
-
setBandDefinition
-
getDataStore
-
setDataStore
-
getLinkParameterName
- Specified by:
getLinkParameterNamein interfaceReportQuery
-
setLinkParameterName
-
getProcessTemplate
- Specified by:
getProcessTemplatein interfaceReportQuery
-
setProcessTemplate
-
getScript
Description copied from interface:ReportQuerySql, groovy or other script which describes logic of data loading- Specified by:
getScriptin interfaceReportQuery
-
getLoaderType
- Specified by:
getLoaderTypein interfaceReportQuery- Returns:
- loader code, or
nullwhen the dataset has no type yet. See ReportLoaderFactory implementations and DefaultLoaderFactory for default values.
-
getJsonSourceType
-
setJsonSourceType
-
getJsonSourceText
-
setJsonSourceText
-
getJsonSourceInputParameter
-
setJsonSourceInputParameter
-
getJsonPathQuery
-
setJsonPathQuery
-
getLlmGeneratedQuery
- Returns:
- the query generated for the
DataSetType.LLMprompt, ornullif it has not been generated yet
-
setLlmGeneratedQuery
-
getJsonInputProvider
-
setJsonInputProvider
-
getLoaderDelegate
- Specified by:
getLoaderDelegatein interfaceReportQuery- Returns:
- delegate implementing custom data loading logic
-
setLoaderDelegate
-
getAdditionalParams
- Specified by:
getAdditionalParamsin interfaceReportQuery
-
copyFrom
Description copied from interface:CopyingSystemStateInvoked by the framework when copying the entity instance.- Specified by:
copyFromin interfaceCopyingSystemState<DataSet>- Parameters:
source- source entity
-