Package database.dao
Class DefaultLoadDao
- All Implemented Interfaces:
ILoadDao<LoadOptions>
,LoadDao
,WebbpmDao
,TableProvider
- Direct Known Subclasses:
AutocompleteLoadDao
,CalendarDaoImpl
,ComboBoxLoadDao
,CustomSqlLoadDao
,EditableGridDao
,FilePreviewDaoImpl
,FileUploadDaoImpl
,FormDaoImpl
,GanttChartLoadDaoImpl
,LinkFieldDao
,PagingGridDaoImpl
- Author:
- Kochetkov
-
Field Summary
FieldsFields inherited from class database.dao.AbstractLoadDao
datasourceJndiName, MESSAGE_SOURCE
Fields inherited from class ru.cg.webbpm.modules.database.api.entity_graph.dao.DefaultGraphDao
conditionBuilder, databaseStructureManager, dslProvider, graph
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultLoadDao
(DefaultEntityGraph graph, org.jooq.DSLContext dsl, DslProvider dslProvider) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.jooq.SelectForUpdateStep<org.jooq.Record>
getSelectForUpdateStep
(org.jooq.SelectLimitStep<org.jooq.Record> limitStep, Integer offset, Integer limit) long
getTotalRowCount
(LoadOptions loadOptions) long
getTotalRowCount
(LoadOptions loadOptions, EntityColumn entityColumn) load
(Set<EntityColumn> columns, LoadOptions loadOptions) load
(Set<EntityColumn> columns, LoadOptions loadOptions, boolean withGraphConditions) loadAggregations
(Set<AggregateFuncField> aggregateFuncFields, LoadOptions loadOptions) loadAggregations
(Set<EntityColumn> columns, Set<AggregateFuncField> aggregateFuncFields, LoadOptions loadOptions) loadByPK
(Set<EntityColumn> columns, Object... keyValues) loadByPK
(Set<EntityColumn> columns, LoadOptions loadOptions, Object... keyValues) loadMultiFieldAggregations
(Set<AggregateFuncField> aggregateFuncFields, LoadOptions loadOptions) recordListToTableRowListByAlias
(List<org.jooq.Record> records, Set<EntityColumn> entityColumns) protected org.jooq.SelectJoinStep<org.jooq.Record>
selectByJooqColumns
(List<org.jooq.Field<?>> fieldList) Methods inherited from class database.dao.AbstractLoadDao
addJoins, buildGroupByStep, buildLoadByPkQuery, buildLoadByPkQuery, buildSelectCountWhere, buildSelectCountWhere, buildSelectStepWithAggregationColumns, buildWhereStep, buildWhereStep, buildWhereStep, convertAggregateFuncFieldToJooqFields, convertAggregateFuncMultiFieldToJooqFields, convertEntityColumnsToJooqFields, convertToAggregateFunction, convertToAggregateFunctionMultiColumns, defaultEntityColumnAlias, getAggregateFuncFieldSelectStep, getAggregateFuncMultiFieldSelectStep, getColumnSelectStep, getColumnWithAliasSelectStep, getDatasourceJndiName, getGraphConditions, getJooqTableByEntity, getMatrix, getOrderByStep, getPkFields, getSelectCountJoinStep, getSelectCountJoinStep, load, prepareResultListWithAggregateColumns, recordListToTableFieldDataList, recordToTableFieldData, recordToTableRowByAlias, toJooqFieldWithAlias
Methods inherited from class ru.cg.webbpm.modules.database.api.entity_graph.dao.DefaultGraphDao
getComplexCondition, getContainsCondition, getDsl, getDsl, getEndsWithCondition, getEqualCondition, getEqualIgnoreCaseCondition, getFilterCondition, getFilterCondition, getFilterCondition, getFilterCondition, getFilterConditions, getGraphNodeTablePkFields, getGreaterOrEqualCondition, getGreaterThanCondition, getLessOrEqualCondition, getLessThanCondition, getNotContainsCondition, getNotEqualCondition, getOperator, getSequence, getStartsWithCondition, getStructureTable, getTable, getTableWithAlias, getUsedTables, setDatabaseStructureManager, setDsl, setDslProvider, setGraph, toJooqField
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ru.cg.webbpm.modules.database.api.dao.LoadDao
getDatasourceJndiName, getPkFields, load
Methods inherited from interface ru.cg.webbpm.modules.database.api.TableProvider
getTableByAlias, getUsedTables
-
Field Details
-
uniqueResult
public boolean uniqueResult
-
-
Constructor Details
-
DefaultLoadDao
public DefaultLoadDao() -
DefaultLoadDao
-
-
Method Details
-
load
- Specified by:
load
in interfaceILoadDao<LoadOptions>
- Specified by:
load
in interfaceLoadDao
-
load
public List<TableRow> load(Set<EntityColumn> columns, LoadOptions loadOptions, boolean withGraphConditions) - Specified by:
load
in classAbstractLoadDao<LoadOptions>
-
selectByJooqColumns
protected org.jooq.SelectJoinStep<org.jooq.Record> selectByJooqColumns(List<org.jooq.Field<?>> fieldList) - Overrides:
selectByJooqColumns
in classAbstractLoadDao<LoadOptions>
-
loadAggregations
public TableRow loadAggregations(Set<AggregateFuncField> aggregateFuncFields, LoadOptions loadOptions) - Specified by:
loadAggregations
in interfaceILoadDao<LoadOptions>
- Specified by:
loadAggregations
in interfaceLoadDao
-
loadMultiFieldAggregations
public TableRowWithMultiColumn loadMultiFieldAggregations(Set<AggregateFuncField> aggregateFuncFields, LoadOptions loadOptions) - Specified by:
loadMultiFieldAggregations
in interfaceILoadDao<LoadOptions>
- Specified by:
loadMultiFieldAggregations
in interfaceLoadDao
-
loadAggregations
public List<TableRow> loadAggregations(Set<EntityColumn> columns, Set<AggregateFuncField> aggregateFuncFields, LoadOptions loadOptions) - Specified by:
loadAggregations
in interfaceILoadDao<LoadOptions>
- Specified by:
loadAggregations
in interfaceLoadDao
-
getSelectForUpdateStep
-
recordListToTableRowListByAlias
protected List<TableRow> recordListToTableRowListByAlias(List<org.jooq.Record> records, Set<EntityColumn> entityColumns) - Overrides:
recordListToTableRowListByAlias
in classAbstractLoadDao<LoadOptions>
-
loadByPK
- Specified by:
loadByPK
in interfaceILoadDao<LoadOptions>
- Specified by:
loadByPK
in interfaceLoadDao
-
loadByPK
- Specified by:
loadByPK
in interfaceILoadDao<LoadOptions>
- Specified by:
loadByPK
in interfaceLoadDao
-
getTotalRowCount
- Specified by:
getTotalRowCount
in interfaceILoadDao<LoadOptions>
- Specified by:
getTotalRowCount
in interfaceLoadDao
-
getTotalRowCount
- Specified by:
getTotalRowCount
in interfaceILoadDao<LoadOptions>
-