public class DynamicDao
extends org.springframework.jdbc.core.support.JdbcDaoSupport
| Constructor and Description |
|---|
DynamicDao(DataSource dataSource,
DaoConfig conf,
DatabaseFetchStatsCache statsCache,
DynamicDaoSQLBuilder sqlBuilder) |
DynamicDao(DataSource dataSource,
DaoConfig conf,
DatabaseFetchStatsCache statsCache,
DynamicDaoSQLBuilder sqlBuilder,
MetadataCache metadataCache) |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteTuples(String profileCode,
ActionQueue queue) |
boolean |
existsEntity(long bundleId,
TupleDef def) |
BundleHeader |
fetchHeader(long id,
BundleDef def)
fetch bundle header from bundle table:
--
select revision, created, updated, value [, extra1, extra2, ...]
|
List<Tuple> |
fetchTable(long id,
TupleDef def) |
Integer |
findRevision(long bundleId,
BundleDef def) |
void |
insertHeader(ActionQueue queue)
insert bundle header row to bundle table:
- id, revision, created, json
- extra fields if any
|
void |
insertTuples(String profileCode,
ActionQueue queue) |
int |
updateHeader(ActionQueue queue)
udpate ROOT
set revision = ?
|
void |
updateTuples(String profileCode,
ActionQueue queue) |
public DynamicDao(DataSource dataSource, DaoConfig conf, DatabaseFetchStatsCache statsCache, DynamicDaoSQLBuilder sqlBuilder)
public DynamicDao(DataSource dataSource, DaoConfig conf, DatabaseFetchStatsCache statsCache, DynamicDaoSQLBuilder sqlBuilder, MetadataCache metadataCache)
public boolean existsEntity(long bundleId,
TupleDef def)
public void insertHeader(ActionQueue queue)
public int updateHeader(ActionQueue queue)
public BundleHeader fetchHeader(long id, BundleDef def)
id - bundle iddef - bundle definition, from which table names and tuples are fetchedBundleHeaderpublic void updateTuples(String profileCode, ActionQueue queue)
public void insertTuples(String profileCode, ActionQueue queue)
public void deleteTuples(String profileCode, ActionQueue queue)
Copyright © 2021. All rights reserved.