public class DNRuleComponentDao extends DaoForAuthorableEntity<DNRuleComponent>
Modifier and Type | Field and Description |
---|---|
static String |
TABLE_NAME |
KEY_COLUMN
logger, TABLE_NAME_PREFIX
Constructor and Description |
---|
DNRuleComponentDao() |
Modifier and Type | Method and Description |
---|---|
protected void |
deleteRaw(Integer id)
Deletes a record from
DaoTemplate.getTableName() table with the given id. |
int |
getAuthorId(Integer entityId)
Return entity author ID or zero if the author is NULL.
|
protected org.springframework.jdbc.core.simple.ParameterizedRowMapper<DNRuleComponent> |
getRowMapper()
Returns the row mapper that creates an instance of the business object from a query result set.
|
protected String |
getRuleTableName() |
protected String |
getSelectAndFromClause()
Builds SELECT ...
|
String |
getTableName()
Returns the name of the table that contains business entities represented by
|
DNRuleComponent |
load(Integer id)
Loads the business entity by primary key.
|
void |
save(DNRuleComponent item)
Saves a business object to the database.
|
void |
update(DNRuleComponent item) |
delete, delete, getLastInsertId, saveAndGetKey
copyBetweenTablesBy, 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 TABLE_NAME
public String getTableName()
DaoTemplate
getTableName
in class DaoTemplate<DNRuleComponent>
protected String getRuleTableName()
protected org.springframework.jdbc.core.simple.ParameterizedRowMapper<DNRuleComponent> getRowMapper()
DaoTemplate
getRowMapper
in class DaoTemplate<DNRuleComponent>
protected String getSelectAndFromClause()
DaoTemplate
DaoForEntityWithSurrogateKey
should redefine DaoForEntityWithSurrogateKey.load(Integer)
to use unambiguous key column.getSelectAndFromClause
in class DaoTemplate<DNRuleComponent>
public DNRuleComponent load(Integer id)
DaoForEntityWithSurrogateKey
load
in interface DaoSortableDataProvidable<DNRuleComponent>
load
in class DaoForEntityWithSurrogateKey<DNRuleComponent>
protected void deleteRaw(Integer id) throws Exception
DaoForEntityWithSurrogateKey
DaoTemplate.getTableName()
table with the given id.deleteRaw
in class DaoForEntityWithSurrogateKey<DNRuleComponent>
id
- idException
public void save(DNRuleComponent item) throws Exception
DaoForEntityWithSurrogateKey
UnsupportedOperationException
.save
in class DaoForEntityWithSurrogateKey<DNRuleComponent>
Exception
public void update(DNRuleComponent item) throws Exception
item
- Exception
public int getAuthorId(Integer entityId)
DaoForAuthorableEntity
getAuthorId
in class DaoForAuthorableEntity<DNRuleComponent>
entityId
- ID of entity of type TCopyright © 2013. All Rights Reserved.