public class RdbmsTaskDefinitionRepository extends AbstractRdbmsKeyValueRepository<TaskDefinition> implements TaskDefinitionRepository
TaskDefinitionRepository
.dataSource, deleteFromTableByKey, inClauseByKey, jdbcTemplate, keyColumn, LIST_OF_NAMES, namedParameterJdbcTemplate, orderMap, rowMapper, saveRow, selectClause, tableName, tablePrefix, tableSuffix, valueColumn, whereClauseByKey
Constructor and Description |
---|
RdbmsTaskDefinitionRepository(DataSource dataSource) |
Modifier and Type | Method and Description |
---|---|
void |
delete(TaskDefinition definition) |
TaskDefinition |
findByNameRequired(String name)
Performs a findByName query and throws an exception if the name is not found.
|
<S extends TaskDefinition> |
save(S definition) |
count, delete, delete, deleteAll, exists, findAll, findAll, findAll, findAll, findByNameLike, findOne, save
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
findByNameLike
public RdbmsTaskDefinitionRepository(DataSource dataSource)
public <S extends TaskDefinition> S save(S definition)
save
in interface org.springframework.data.repository.CrudRepository<TaskDefinition,String>
public void delete(TaskDefinition definition)
delete
in interface org.springframework.data.repository.CrudRepository<TaskDefinition,String>
public TaskDefinition findByNameRequired(String name)
TaskDefinitionRepository
findByNameRequired
in interface TaskDefinitionRepository
name
- the name of the task definitionNoSuchTaskDefinitionException
if not found.Copyright © 2018 Pivotal Software, Inc.. All rights reserved.