Class JPAAnyTypeDAO
- java.lang.Object
-
- org.apache.syncope.core.persistence.jpa.dao.AbstractDAO<AnyType>
-
- org.apache.syncope.core.persistence.jpa.dao.JPAAnyTypeDAO
-
- All Implemented Interfaces:
AnyTypeDAO
,DAO<AnyType>
public class JPAAnyTypeDAO extends AbstractDAO<AnyType> implements AnyTypeDAO
-
-
Field Summary
Fields Modifier and Type Field Description protected RemediationDAO
remediationDAO
-
Fields inherited from class org.apache.syncope.core.persistence.jpa.dao.AbstractDAO
LOG
-
-
Constructor Summary
Constructors Constructor Description JPAAnyTypeDAO(RemediationDAO remediationDAO)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete(String key)
AnyType
find(String key)
List<AnyType>
findAll()
List<AnyType>
findByTypeClass(AnyTypeClass anyTypeClass)
AnyType
findGroup()
AnyType
findUser()
AnyType
save(AnyType anyType)
-
Methods inherited from class org.apache.syncope.core.persistence.jpa.dao.AbstractDAO
detach, entityManager, entityManagerFactory, refresh
-
-
-
-
Field Detail
-
remediationDAO
protected final RemediationDAO remediationDAO
-
-
Constructor Detail
-
JPAAnyTypeDAO
public JPAAnyTypeDAO(RemediationDAO remediationDAO)
-
-
Method Detail
-
find
@Transactional(readOnly=true) public AnyType find(String key)
- Specified by:
find
in interfaceAnyTypeDAO
-
findUser
@Transactional(readOnly=true) public AnyType findUser()
- Specified by:
findUser
in interfaceAnyTypeDAO
-
findGroup
@Transactional(readOnly=true) public AnyType findGroup()
- Specified by:
findGroup
in interfaceAnyTypeDAO
-
findByTypeClass
public List<AnyType> findByTypeClass(AnyTypeClass anyTypeClass)
- Specified by:
findByTypeClass
in interfaceAnyTypeDAO
-
findAll
public List<AnyType> findAll()
- Specified by:
findAll
in interfaceAnyTypeDAO
-
save
public AnyType save(AnyType anyType)
- Specified by:
save
in interfaceAnyTypeDAO
-
delete
public void delete(String key)
- Specified by:
delete
in interfaceAnyTypeDAO
-
-