public class UserDao extends DaoForEntityWithSurrogateKey<User>
Modifier and Type | Field and Description |
---|---|
static String |
PERMISSIONS_TABLE_NAME |
static String |
TABLE_NAME |
KEY_COLUMN
logger, TABLE_NAME_PREFIX
Constructor and Description |
---|
UserDao() |
Modifier and Type | Method and Description |
---|---|
protected org.springframework.jdbc.core.simple.ParameterizedRowMapper<User> |
getRowMapper()
Returns the row mapper that creates an instance of the business object from a query result set.
|
String |
getTableName()
Returns the name of the table that contains business entities represented by
|
protected List<User> |
postLoadAllBy(List<User> users)
Method called after list of items is loaded.
|
protected User |
postLoadBy(User user)
Method called after a single item is loaded.
|
void |
save(User item,
CodeSnippet doAfter) |
void |
update(User item) |
void |
update(User item,
CodeSnippet doAfter) |
delete, delete, deleteRaw, getLastInsertId, load, save, saveAndGetKey
copyBetweenTablesBy, getSelectAndFromClause, loadAll, loadAllBy, loadAllBy, loadBy
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 static final String PERMISSIONS_TABLE_NAME
public String getTableName()
DaoTemplate
getTableName
in class DaoTemplate<User>
protected org.springframework.jdbc.core.simple.ParameterizedRowMapper<User> getRowMapper()
DaoTemplate
getRowMapper
in class DaoTemplate<User>
protected User postLoadBy(User user)
DaoTemplate
DaoTemplate.loadBy(String, Object)
will then return value modified by this method.postLoadBy
in class DaoTemplate<User>
user
- item as loaded from databaseDaoTemplate.loadBy(String, Object)
protected List<User> postLoadAllBy(List<User> users)
DaoTemplate
postLoadAllBy
in class DaoTemplate<User>
users
- items as loaded from databasepublic void save(User item, CodeSnippet doAfter) throws Exception
item
- doAfter
- Exception
public void update(User item, CodeSnippet doAfter) throws Exception
item
- doAfter
- Exception
Copyright © 2013. All Rights Reserved.