|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.elca.el4j.services.persistence.generic.dto.DtoFactory
AbstractIntOptimisticLockingDto
.
public class DtoFactory
This class is used to create dto instances. Each dto will get a reference to the modification key generator. This is needed to enable optimistic locking. A dto must be created with this dto factory, when the dto must be written to database. If you only need a dto to get information from it and not to store it in database you can create the dto directly. But recommended is to create each dto with help of this dto factory.
AbstractIntOptimisticLockingDto
Constructor Summary | |
---|---|
DtoFactory()
Deprecated. |
Method Summary | |
---|---|
void |
afterPropertiesSet()
Deprecated. |
AbstractDto |
createDto(Class<?> clazz)
Deprecated. This method creates a new dto of the given class and fills it with a modification key generator. |
PrimaryKeyGenerator |
getModificationKeyGenerator()
Deprecated. |
AbstractDto |
initializeDto(Object dto)
Deprecated. This method sets the modification key generator of a dto. |
List<Object> |
initializeDtos(List<Object> dtos)
Deprecated. This metod sets the modification key generator of given AbstractDto s. |
void |
setModificationKeyGenerator(PrimaryKeyGenerator modificationKeyGenerator)
Deprecated. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DtoFactory()
Method Detail |
---|
public PrimaryKeyGenerator getModificationKeyGenerator()
public void setModificationKeyGenerator(PrimaryKeyGenerator modificationKeyGenerator)
modificationKeyGenerator
- Is the modificationKeyGenerator to set.public AbstractDto createDto(Class<?> clazz)
clazz
- Is the dto class.
public AbstractDto initializeDto(Object dto)
dto
- Where the modification key generator has to be set.
public List<Object> initializeDtos(List<Object> dtos)
AbstractDto
s. If the given list of dtos is
null
an empty List will be returned.
dtos
- Where the modification key generator has to be set.
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface InitializingBean
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |