com.rapidtransform.core.service.impl
Class CRUDServiceImpl<Type>

java.lang.Object
  extended by com.rapidtransform.core.service.impl.ServiceImpl
      extended by com.rapidtransform.core.service.impl.CRUDServiceImpl<Type>
All Implemented Interfaces:
CRUDService<Type>, Service
Direct Known Subclasses:
MetaCRUDServiceImpl

public abstract class CRUDServiceImpl<Type>
extends ServiceImpl
implements CRUDService<Type>

Author:
S. Werner

Constructor Summary
CRUDServiceImpl()
           
CRUDServiceImpl(java.lang.Class<Type> persistentClass)
           
 
Method Summary
 Type create()
           
 Type find(java.lang.Long id)
           
 java.util.List<Type> findAll()
           
 GenericDAO<Type,java.lang.Long> getDao()
           
abstract  org.apache.commons.logging.Log getLog()
           
 java.lang.Class<Type> getPersistentClass()
           
 Type save(Type entity)
           
 void setDao(GenericDAO<Type,java.lang.Long> genericDao)
           
 void setPersistentClass(java.lang.Class<Type> persistentClass)
           
 
Methods inherited from class com.rapidtransform.core.service.impl.ServiceImpl
getMessageSource, getSecurityService, setMessageSource, setSecurityService
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CRUDServiceImpl

public CRUDServiceImpl()

CRUDServiceImpl

public CRUDServiceImpl(java.lang.Class<Type> persistentClass)
Method Detail

setPersistentClass

public void setPersistentClass(java.lang.Class<Type> persistentClass)

getPersistentClass

public java.lang.Class<Type> getPersistentClass()

setDao

public void setDao(GenericDAO<Type,java.lang.Long> genericDao)

getDao

public GenericDAO<Type,java.lang.Long> getDao()

getLog

public abstract org.apache.commons.logging.Log getLog()

create

public Type create()
            throws ConveloException
Specified by:
create in interface CRUDService<Type>
Throws:
ConveloException

save

@Transactional
public Type save(Type entity)
Specified by:
save in interface CRUDService<Type>

find

public Type find(java.lang.Long id)
Specified by:
find in interface CRUDService<Type>

findAll

public java.util.List<Type> findAll()
Specified by:
findAll in interface CRUDService<Type>