public class OntologyDao extends DaoForEntityWithSurrogateKey<Ontology>
Modifier and Type | Field and Description |
---|---|
protected static org.apache.log4j.Logger |
logger |
static String |
TABLE_NAME |
KEY_COLUMN
TABLE_NAME_PREFIX
Constructor and Description |
---|
OntologyDao() |
Modifier and Type | Method and Description |
---|---|
protected void |
deleteRaw(Integer id)
Deletes a record from
DaoTemplate.getTableName() table with the given id. |
protected org.springframework.jdbc.core.simple.ParameterizedRowMapper<Ontology> |
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
|
Ontology |
load(Integer id)
Loads the business entity by primary key.
|
void |
save(Ontology item)
Saves a business object to the database.
|
void |
update(Ontology 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
protected static org.apache.log4j.Logger logger
public String getTableName()
DaoTemplate
getTableName
in class DaoTemplate<Ontology>
protected org.springframework.jdbc.core.simple.ParameterizedRowMapper<Ontology> getRowMapper()
DaoTemplate
getRowMapper
in class DaoTemplate<Ontology>
protected String getSelectAndFromClause()
DaoTemplate
DaoForEntityWithSurrogateKey
should redefine DaoForEntityWithSurrogateKey.load(Integer)
to use unambiguous key column.getSelectAndFromClause
in class DaoTemplate<Ontology>
public Ontology load(Integer id)
DaoForEntityWithSurrogateKey
load
in interface DaoSortableDataProvidable<Ontology>
load
in class DaoForEntityWithSurrogateKey<Ontology>
public void save(Ontology item) throws Exception
DaoForEntityWithSurrogateKey
UnsupportedOperationException
.save
in class DaoForEntityWithSurrogateKey<Ontology>
Exception
protected void deleteRaw(Integer id) throws Exception
DaoForEntityWithSurrogateKey
DaoTemplate.getTableName()
table with the given id.deleteRaw
in class DaoForEntityWithSurrogateKey<Ontology>
id
- idException
Copyright © 2013. All Rights Reserved.