public class SimpleLdapRepository<T> extends Object implements LdapRepository<T>
| Constructor and Description |
|---|
SimpleLdapRepository(org.springframework.ldap.core.LdapOperations ldapOperations,
org.springframework.ldap.odm.core.ObjectDirectoryMapper odm,
Class<T> entityType)
Creates a new
SimpleLdapRepository. |
| Modifier and Type | Method and Description |
|---|---|
long |
count() |
void |
delete(T entity) |
void |
deleteAll() |
void |
deleteAll(Iterable<? extends T> entities) |
void |
deleteById(Name name) |
boolean |
existsById(Name name) |
List<T> |
findAll() |
List<T> |
findAll(org.springframework.ldap.query.LdapQuery ldapQuery)
Find all entries matching the specified query.
|
List<T> |
findAllById(Iterable<Name> names) |
Optional<T> |
findById(Name name) |
Optional<T> |
findOne(org.springframework.ldap.query.LdapQuery ldapQuery)
Find one entry matching the specified query.
|
<S extends T> |
save(S entity) |
<S extends T> |
saveAll(Iterable<S> entities) |
public SimpleLdapRepository(org.springframework.ldap.core.LdapOperations ldapOperations,
org.springframework.ldap.odm.core.ObjectDirectoryMapper odm,
Class<T> entityType)
SimpleLdapRepository.ldapOperations - must not be null.odm - must not be null.entityType - must not be null.public long count()
count in interface CrudRepository<T,Name>public <S extends T> S save(S entity)
save in interface CrudRepository<T,Name>public <S extends T> Iterable<S> saveAll(Iterable<S> entities)
saveAll in interface CrudRepository<T,Name>public Optional<T> findById(Name name)
findById in interface CrudRepository<T,Name>public List<T> findAll(org.springframework.ldap.query.LdapQuery ldapQuery)
LdapRepositoryfindAll in interface LdapRepository<T>ldapQuery - the query specification.public Optional<T> findOne(org.springframework.ldap.query.LdapQuery ldapQuery)
LdapRepositoryfindOne in interface LdapRepository<T>ldapQuery - the query specification.null if no matching entry was found.public boolean existsById(Name name)
existsById in interface CrudRepository<T,Name>public List<T> findAllById(Iterable<Name> names)
findAllById in interface CrudRepository<T,Name>public void deleteById(Name name)
deleteById in interface CrudRepository<T,Name>public void delete(T entity)
delete in interface CrudRepository<T,Name>public void deleteAll(Iterable<? extends T> entities)
deleteAll in interface CrudRepository<T,Name>public void deleteAll()
deleteAll in interface CrudRepository<T,Name>Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.