public class ZooKeeperJobDefinitionRepository extends java.lang.Object implements JobDefinitionRepository, org.springframework.beans.factory.InitializingBean
JobDefinition
s.Constructor and Description |
---|
ZooKeeperJobDefinitionRepository(ZooKeeperConnection zkConnection) |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
long |
count() |
void |
delete(java.lang.Iterable<? extends JobDefinition> entities) |
void |
delete(JobDefinition entity) |
void |
delete(java.lang.String id) |
void |
deleteAll() |
boolean |
exists(java.lang.String id) |
java.util.List<JobDefinition> |
findAll() |
java.util.List<JobDefinition> |
findAll(java.lang.Iterable<java.lang.String> ids) |
org.springframework.data.domain.Page<JobDefinition> |
findAll(org.springframework.data.domain.Pageable pageable) |
java.lang.Iterable<JobDefinition> |
findAll(org.springframework.data.domain.Sort sort) |
java.lang.Iterable<JobDefinition> |
findAllInRange(java.lang.String from,
boolean fromInclusive,
java.lang.String to,
boolean toInclusive)
Return entities whose ids range between
from and to . |
JobDefinition |
findOne(java.lang.String id) |
<S extends JobDefinition> |
save(java.lang.Iterable<S> entities) |
<S extends JobDefinition> |
save(S entity) |
@Autowired public ZooKeeperJobDefinitionRepository(ZooKeeperConnection zkConnection)
public void afterPropertiesSet() throws java.lang.Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
java.lang.Exception
public java.lang.Iterable<JobDefinition> findAll(org.springframework.data.domain.Sort sort)
findAll
in interface org.springframework.data.repository.PagingAndSortingRepository<JobDefinition,java.lang.String>
public org.springframework.data.domain.Page<JobDefinition> findAll(org.springframework.data.domain.Pageable pageable)
findAll
in interface org.springframework.data.repository.PagingAndSortingRepository<JobDefinition,java.lang.String>
public <S extends JobDefinition> java.lang.Iterable<S> save(java.lang.Iterable<S> entities)
save
in interface org.springframework.data.repository.CrudRepository<JobDefinition,java.lang.String>
public <S extends JobDefinition> S save(S entity)
save
in interface org.springframework.data.repository.CrudRepository<JobDefinition,java.lang.String>
public JobDefinition findOne(java.lang.String id)
findOne
in interface org.springframework.data.repository.CrudRepository<JobDefinition,java.lang.String>
public boolean exists(java.lang.String id)
exists
in interface org.springframework.data.repository.CrudRepository<JobDefinition,java.lang.String>
public java.util.List<JobDefinition> findAll()
findAll
in interface org.springframework.data.repository.CrudRepository<JobDefinition,java.lang.String>
public java.util.List<JobDefinition> findAll(java.lang.Iterable<java.lang.String> ids)
findAll
in interface org.springframework.data.repository.CrudRepository<JobDefinition,java.lang.String>
public long count()
count
in interface org.springframework.data.repository.CrudRepository<JobDefinition,java.lang.String>
public void delete(java.lang.String id)
delete
in interface org.springframework.data.repository.CrudRepository<JobDefinition,java.lang.String>
public void delete(JobDefinition entity)
delete
in interface org.springframework.data.repository.CrudRepository<JobDefinition,java.lang.String>
public void delete(java.lang.Iterable<? extends JobDefinition> entities)
delete
in interface org.springframework.data.repository.CrudRepository<JobDefinition,java.lang.String>
public void deleteAll()
deleteAll
in interface org.springframework.data.repository.CrudRepository<JobDefinition,java.lang.String>
public java.lang.Iterable<JobDefinition> findAllInRange(java.lang.String from, boolean fromInclusive, java.lang.String to, boolean toInclusive)
RangeCapableRepository
from
and to
. Note that it is possible that entities with
those exact ids do not exist. If they do exist, the two boolean parameters control whether to include those
results or not. A query from x
to x
returns an empty result, unless both fromInclusive
and toInclusive
are true.findAllInRange
in interface RangeCapableRepository<JobDefinition,java.lang.String>