Package dao
Class TreeGridLoadDaoImpl
- All Implemented Interfaces:
TreeGridLoadDao
,ILoadDao<NonPageableLoadOptions>
,NonPageableLoadDao
,WebbpmDao
,TableProvider
- Author:
- a.petrov
-
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
ConstructorsConstructorDescriptionTreeGridLoadDaoImpl
(DefaultEntityGraph graph, org.jooq.DSLContext dsl, DslProvider dslProvider) -
Method Summary
Modifier and TypeMethodDescriptionprotected List<org.jooq.Field<?>>
convertEntityColumnsToJooqFields
(Set<EntityColumn> columns) protected org.jooq.Field<?>
protected org.jooq.Condition
getChildCountWhereCondition
(DefaultGraphNode treeTableNode) protected org.jooq.SelectJoinStep<org.jooq.Record>
getColumnSelectStep
(Set<EntityColumn> columns) protected org.jooq.SelectJoinStep<org.jooq.Record>
protected org.jooq.SelectJoinStep<org.jooq.Record>
getColumnWithAliasSelectStep
(Set<EntityColumn> entityColumns) protected org.jooq.Field<?>
getHideChildColumn
(org.jooq.Condition whereCondition) protected EntityColumn
loadRecursively
(EntityColumn parentIdColumn, Set<EntityColumn> columns, NonPageableLoadOptions loadOptions, boolean loadChildren) protected TableRow
recordToTableFieldData
(org.jooq.Record record, Set<EntityColumn> tableFields) protected TableRow
recordToTableRowByAlias
(org.jooq.Record record, Set<EntityColumn> entityColumns) org.jooq.Field<Object>
toJooqField
(EntityColumn entityColumn, String tableName) Methods inherited from class database.dao.TreeDefaultLoadDao
getTotalRowCount, load, load, loadAggregations, loadAggregations, loadByPK, loadByPK, loadMultiFieldAggregations
Methods inherited from class database.dao.AbstractLoadDao
addJoins, buildGroupByStep, buildLoadByPkQuery, buildLoadByPkQuery, buildSelectCountWhere, buildSelectCountWhere, buildSelectStepWithAggregationColumns, buildWhereStep, buildWhereStep, buildWhereStep, convertAggregateFuncFieldToJooqFields, convertAggregateFuncMultiFieldToJooqFields, convertToAggregateFunction, convertToAggregateFunctionMultiColumns, defaultEntityColumnAlias, getAggregateFuncFieldSelectStep, getAggregateFuncMultiFieldSelectStep, getDatasourceJndiName, getGraphConditions, getJooqTableByEntity, getMatrix, getOrderByStep, getPkFields, getSelectCountJoinStep, getSelectCountJoinStep, load, prepareResultListWithAggregateColumns, recordListToTableFieldDataList, recordListToTableRowListByAlias, selectByJooqColumns, 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
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.ILoadDao
getDatasourceJndiName, getPkFields, getTotalRowCount, getTotalRowCount, load, load, loadAggregations, loadAggregations, loadByPK, loadByPK, loadMultiFieldAggregations
Methods inherited from interface ru.cg.webbpm.modules.database.api.TableProvider
getTableByAlias, getUsedTables
-
Field Details
-
parentFKColumn
-
-
Constructor Details
-
TreeGridLoadDaoImpl
public TreeGridLoadDaoImpl() -
TreeGridLoadDaoImpl
public TreeGridLoadDaoImpl(DefaultEntityGraph graph, org.jooq.DSLContext dsl, DslProvider dslProvider)
-
-
Method Details
-
getParentPKColumn
- Specified by:
getParentPKColumn
in interfaceTreeGridLoadDao
-
convertEntityColumnsToJooqFields
- Overrides:
convertEntityColumnsToJooqFields
in classAbstractLoadDao<NonPageableLoadOptions>
-
getChildCountColumn
protected org.jooq.Field<?> getChildCountColumn() -
getHideChildColumn
protected org.jooq.Field<?> getHideChildColumn(org.jooq.Condition whereCondition) -
getNodePKField
-
getChildCountWhereCondition
-
recordToTableFieldData
- Overrides:
recordToTableFieldData
in classAbstractLoadDao<NonPageableLoadOptions>
-
recordToTableRowByAlias
- Overrides:
recordToTableRowByAlias
in classAbstractLoadDao<NonPageableLoadOptions>
-
getHasChildrenColumn
- Specified by:
getHasChildrenColumn
in interfaceTreeGridLoadDao
-
getShowChildrenColumn
- Specified by:
getShowChildrenColumn
in interfaceTreeGridLoadDao
-
getParentFkName
- Specified by:
getParentFkName
in interfaceTreeGridLoadDao
-
loadRecursively
public List<TableRow> loadRecursively(EntityColumn parentIdColumn, Set<EntityColumn> columns, NonPageableLoadOptions loadOptions, boolean loadChildren) - Specified by:
loadRecursively
in interfaceTreeGridLoadDao
-
getColumnSelectStep
- Overrides:
getColumnSelectStep
in classAbstractLoadDao<NonPageableLoadOptions>
-
getColumnWithAliasSelectStep
protected org.jooq.SelectJoinStep<org.jooq.Record> getColumnWithAliasSelectStep(Set<EntityColumn> entityColumns) - Overrides:
getColumnWithAliasSelectStep
in classAbstractLoadDao<NonPageableLoadOptions>
-
toJooqField
- Overrides:
toJooqField
in classDefaultGraphDao
-
getColumnSelectStepWithoutColumnHide
protected org.jooq.SelectJoinStep<org.jooq.Record> getColumnSelectStepWithoutColumnHide(Set<EntityColumn> columns)
-