T
- public abstract class AbstractRulesGroupDao<T extends RulesGroupEntity> extends DaoForAuthorableEntity<T>
Modifier and Type | Field and Description |
---|---|
static String |
UNCOMMITTED_TABLE_SUFFIX
Suffix of tables for uncommitted rules.
|
KEY_COLUMN
logger, TABLE_NAME_PREFIX
Constructor and Description |
---|
AbstractRulesGroupDao() |
Modifier and Type | Method and Description |
---|---|
void |
commitChanges(Integer groupId) |
int |
getAuthorId(Integer entityId)
Return entity author ID or zero if the author is NULL.
|
protected abstract Class<? extends AbstractRuleDao<?>> |
getDependentRuleDao() |
protected String |
getSelectAndFromClause()
Builds SELECT ...
|
T |
load(Integer id)
Loads the business entity by primary key.
|
void |
markUncommitted(Integer groupId) |
void |
save(T item)
Saves a business object to the database.
|
void |
update(T item) |
delete, delete, deleteRaw, getLastInsertId, saveAndGetKey
copyBetweenTablesBy, getRowMapper, getTableName, loadAll, loadAllBy, loadAllBy, loadBy, postLoadAllBy, postLoadBy
boolToSmallint, createVirtuosoConnectionWrapper, executeInTransaction, getLookupFactory, jdbcQuery, jdbcQuery, jdbcQueryForInt, jdbcQueryForInt, jdbcQueryForInt, jdbcQueryForList, jdbcQueryForObject, jdbcQueryForObject, jdbcQueryForObject, jdbcQueryForObject, jdbcUpdate, jdbcUpdate, jdbcUpdate, setDaoLookupFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
loadAllBy
public static final String UNCOMMITTED_TABLE_SUFFIX
protected String getSelectAndFromClause()
DaoTemplate
DaoForEntityWithSurrogateKey
should redefine DaoForEntityWithSurrogateKey.load(Integer)
to use unambiguous key column.getSelectAndFromClause
in class DaoTemplate<T extends RulesGroupEntity>
public T load(Integer id)
DaoForEntityWithSurrogateKey
load
in interface DaoSortableDataProvidable<T extends RulesGroupEntity>
load
in class DaoForEntityWithSurrogateKey<T extends RulesGroupEntity>
public void save(T item) throws Exception
DaoForEntityWithSurrogateKey
UnsupportedOperationException
.save
in class DaoForEntityWithSurrogateKey<T extends RulesGroupEntity>
Exception
protected abstract Class<? extends AbstractRuleDao<?>> getDependentRuleDao()
public int getAuthorId(Integer entityId)
DaoForAuthorableEntity
getAuthorId
in class DaoForAuthorableEntity<T extends RulesGroupEntity>
entityId
- ID of entity of type TCopyright © 2013. All Rights Reserved.