|
Spring Data Commmons | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.data.repository.support.RepositorySupport<T,ID>
T
- the type of entity to be handledpublic abstract class RepositorySupport<T,ID extends Serializable>
Abstract base class for generic repositories. Captures information about the domain class to be managed.
Constructor Summary | |
---|---|
RepositorySupport(Class<T> domainClass)
Creates a new RepositorySupport . |
Method Summary | |
---|---|
protected abstract IsNewAware |
createIsNewStrategy(Class<?> domainClass)
Return whether the given entity is to be regarded as new. |
protected Class<T> |
getDomainClass()
Returns the domain class to handle. |
protected IsNewAware |
getIsNewStrategy()
Returns the strategy how to determine whether an entity is to be regarded as new. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.springframework.data.repository.Repository |
---|
count, delete, delete, deleteAll, exists, findAll, findById, save, save |
Constructor Detail |
---|
public RepositorySupport(Class<T> domainClass)
RepositorySupport
.
domainClass
- Method Detail |
---|
protected Class<T> getDomainClass()
protected abstract IsNewAware createIsNewStrategy(Class<?> domainClass)
PersistableEntityInformation
if the class implements
Persistable
or ReflectiveEntityInformation
otherwise.
entity
-
protected IsNewAware getIsNewStrategy()
|
Spring Data Commmons | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |