public class OrientBeanRepositoryImpl<E extends OrientBean> extends Object implements OrientBeanRepository<E>
OrientBeanRepository
.Modifier and Type | Field and Description |
---|---|
private BeanFactory |
beanFactory |
private OrientBeanMapper |
beanMapper |
private OrientDatabase |
database |
private Class<E> |
entityClass |
private String |
oClassName |
private E |
prototype |
Constructor and Description |
---|
OrientBeanRepositoryImpl(Class<E> entityClass,
BeanFactory beanFactory,
OrientBeanMapper beanMapper,
OrientDatabase database)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
long |
count() |
void |
delete(E entity) |
void |
delete(Id<E> id) |
void |
delete(Iterable<? extends E> entities) |
void |
deleteAll() |
boolean |
exists(Id<E> id) |
Iterable<E> |
findAll() |
Iterable<E> |
findAll(Iterable<Id<E>> ids) |
org.springframework.data.domain.Page<E> |
findAll(org.springframework.data.domain.Pageable pageable) |
Iterable<E> |
findAll(org.springframework.data.domain.Sort sort) |
E |
findOne(Id<E> id) |
Class<E> |
getEntityClass() |
E |
newEntity() |
<S extends E> |
save(Iterable<S> entities) |
<S extends E> |
save(S entity) |
private final Class<E extends OrientBean> entityClass
private final BeanFactory beanFactory
private final OrientBeanMapper beanMapper
private final OrientDatabase database
private final E extends OrientBean prototype
private final String oClassName
public OrientBeanRepositoryImpl(Class<E> entityClass, BeanFactory beanFactory, OrientBeanMapper beanMapper, OrientDatabase database)
entityClass
- beanFactory
- beanMapper
- database
- public Class<E> getEntityClass()
getEntityClass
in interface OrientBeanRepository<E extends OrientBean>
Class
reflecting the interface of the OrientBean
managed by this repository.public E newEntity()
newEntity
in interface OrientBeanRepository<E extends OrientBean>
OrientBean
entity.public Iterable<E> findAll(org.springframework.data.domain.Sort sort)
findAll
in interface org.springframework.data.repository.PagingAndSortingRepository<E extends OrientBean,Id<E extends OrientBean>>
public org.springframework.data.domain.Page<E> findAll(org.springframework.data.domain.Pageable pageable)
findAll
in interface org.springframework.data.repository.PagingAndSortingRepository<E extends OrientBean,Id<E extends OrientBean>>
public <S extends E> S save(S entity)
save
in interface org.springframework.data.repository.CrudRepository<E extends OrientBean,Id<E extends OrientBean>>
public <S extends E> Iterable<S> save(Iterable<S> entities)
save
in interface org.springframework.data.repository.CrudRepository<E extends OrientBean,Id<E extends OrientBean>>
public E findOne(Id<E> id)
findOne
in interface org.springframework.data.repository.CrudRepository<E extends OrientBean,Id<E extends OrientBean>>
public boolean exists(Id<E> id)
exists
in interface org.springframework.data.repository.CrudRepository<E extends OrientBean,Id<E extends OrientBean>>
public Iterable<E> findAll()
findAll
in interface org.springframework.data.repository.CrudRepository<E extends OrientBean,Id<E extends OrientBean>>
public Iterable<E> findAll(Iterable<Id<E>> ids)
findAll
in interface org.springframework.data.repository.CrudRepository<E extends OrientBean,Id<E extends OrientBean>>
public long count()
count
in interface org.springframework.data.repository.CrudRepository<E extends OrientBean,Id<E extends OrientBean>>
public void delete(Id<E> id)
delete
in interface org.springframework.data.repository.CrudRepository<E extends OrientBean,Id<E extends OrientBean>>
public void delete(E entity)
delete
in interface org.springframework.data.repository.CrudRepository<E extends OrientBean,Id<E extends OrientBean>>
public void delete(Iterable<? extends E> entities)
delete
in interface org.springframework.data.repository.CrudRepository<E extends OrientBean,Id<E extends OrientBean>>
public void deleteAll()
deleteAll
in interface org.springframework.data.repository.CrudRepository<E extends OrientBean,Id<E extends OrientBean>>
Copyright © 2001–2016 mmm-Team. All rights reserved.