public class PropertySettingsDao extends DaoForEntityWithSurrogateKey<PropertySettings>
Modifier and Type | Field and Description |
---|---|
static String |
TABLE_NAME |
KEY_COLUMN
logger, TABLE_NAME_PREFIX
Constructor and Description |
---|
PropertySettingsDao() |
Modifier and Type | Method and Description |
---|---|
protected org.springframework.jdbc.core.simple.ParameterizedRowMapper<PropertySettings> |
getRowMapper()
Returns the row mapper that creates an instance of the business object from a query result set.
|
protected String |
getSelectAndFromClause()
Builds SELECT ...
|
String |
getTableName()
Returns the name of the table that contains business entities represented by
|
PropertySettings |
load(Integer id)
Loads the business entity by primary key.
|
void |
save(PropertySettings item)
Saves a business object to the database.
|
void |
update(PropertySettings item) |
delete, delete, deleteRaw, 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<PropertySettings>
protected org.springframework.jdbc.core.simple.ParameterizedRowMapper<PropertySettings> getRowMapper()
DaoTemplate
getRowMapper
in class DaoTemplate<PropertySettings>
public void save(PropertySettings item) throws Exception
DaoForEntityWithSurrogateKey
UnsupportedOperationException
.save
in class DaoForEntityWithSurrogateKey<PropertySettings>
Exception
public void update(PropertySettings item) throws Exception
item
- Exception
protected String getSelectAndFromClause()
DaoTemplate
DaoForEntityWithSurrogateKey
should redefine DaoForEntityWithSurrogateKey.load(Integer)
to use unambiguous key column.getSelectAndFromClause
in class DaoTemplate<PropertySettings>
public PropertySettings load(Integer id)
DaoForEntityWithSurrogateKey
load
in interface DaoSortableDataProvidable<PropertySettings>
load
in class DaoForEntityWithSurrogateKey<PropertySettings>
Copyright © 2013. All Rights Reserved.