public class TransformerInstanceDao extends DaoForAuthorableEntity<TransformerInstance>
Modifier and Type | Field and Description |
---|---|
static String |
TABLE_NAME |
KEY_COLUMN
logger, TABLE_NAME_PREFIX
Constructor and Description |
---|
TransformerInstanceDao() |
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.
|
int |
getInstancesCount(Integer pipelineId) |
protected org.springframework.jdbc.core.simple.ParameterizedRowMapper<TransformerInstance> |
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
|
TransformerInstance |
load(Integer id)
Loads the business entity by primary key.
|
void |
save(TransformerInstance item)
Saves a business object to the database.
|
void |
update(TransformerInstance 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<TransformerInstance>
protected org.springframework.jdbc.core.simple.ParameterizedRowMapper<TransformerInstance> getRowMapper()
DaoTemplate
getRowMapper
in class DaoTemplate<TransformerInstance>
protected String getSelectAndFromClause()
DaoTemplate
DaoForEntityWithSurrogateKey
should redefine DaoForEntityWithSurrogateKey.load(Integer)
to use unambiguous key column.getSelectAndFromClause
in class DaoTemplate<TransformerInstance>
public TransformerInstance load(Integer id)
DaoForEntityWithSurrogateKey
load
in interface DaoSortableDataProvidable<TransformerInstance>
load
in class DaoForEntityWithSurrogateKey<TransformerInstance>
protected void deleteRaw(Integer id) throws Exception
DaoForEntityWithSurrogateKey
DaoTemplate.getTableName()
table with the given id.deleteRaw
in class DaoForEntityWithSurrogateKey<TransformerInstance>
id
- idException
public void save(TransformerInstance item) throws Exception
DaoForEntityWithSurrogateKey
UnsupportedOperationException
.save
in class DaoForEntityWithSurrogateKey<TransformerInstance>
Exception
public void update(TransformerInstance item) throws Exception
item
- Exception
public int getAuthorId(Integer entityId)
DaoForAuthorableEntity
getAuthorId
in class DaoForAuthorableEntity<TransformerInstance>
entityId
- ID of entity of type Tpublic int getInstancesCount(Integer pipelineId)
pipelineId
- Copyright © 2013. All Rights Reserved.