Class JPAPlainSchemaDAO
- java.lang.Object
-
- org.apache.syncope.core.persistence.jpa.dao.AbstractDAO<PlainSchema>
-
- org.apache.syncope.core.persistence.jpa.dao.JPAPlainSchemaDAO
-
- All Implemented Interfaces:
DAO<PlainSchema>
,PlainSchemaDAO
,SchemaDAO<PlainSchema>
- Direct Known Subclasses:
MaJPAJSONPlainSchemaDAO
,MyJPAJSONPlainSchemaDAO
,OJPAJSONPlainSchemaDAO
,PGJPAJSONPlainSchemaDAO
public class JPAPlainSchemaDAO extends AbstractDAO<PlainSchema> implements PlainSchemaDAO
-
-
Field Summary
-
Fields inherited from class org.apache.syncope.core.persistence.jpa.dao.AbstractDAO
LOG
-
-
Constructor Summary
Constructors Constructor Description JPAPlainSchemaDAO(AnyUtilsFactory anyUtilsFactory, PlainAttrDAO plainAttrDAO, ExternalResourceDAO resourceDAO)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete(String key)
protected void
deleteAttrs(PlainSchema schema)
PlainSchema
find(String key)
List<PlainSchema>
findAll()
<T extends PlainAttr<?>>
List<T>findAttrs(PlainSchema schema, Class<T> reference)
List<PlainSchema>
findByAnyTypeClasses(Collection<AnyTypeClass> anyTypeClasses)
List<PlainSchema>
findByKeyword(String keyword)
List<PlainSchema>
findByValidator(Implementation validator)
<T extends PlainAttr<?>>
booleanhasAttrs(PlainSchema schema, Class<T> reference)
PlainSchema
save(PlainSchema schema)
-
Methods inherited from class org.apache.syncope.core.persistence.jpa.dao.AbstractDAO
detach, entityManager, entityManagerFactory, isOracle, refresh
-
-
-
-
Constructor Detail
-
JPAPlainSchemaDAO
public JPAPlainSchemaDAO(AnyUtilsFactory anyUtilsFactory, PlainAttrDAO plainAttrDAO, ExternalResourceDAO resourceDAO)
-
-
Method Detail
-
find
public PlainSchema find(String key)
- Specified by:
find
in interfaceSchemaDAO<PlainSchema>
-
findByAnyTypeClasses
public List<PlainSchema> findByAnyTypeClasses(Collection<AnyTypeClass> anyTypeClasses)
- Specified by:
findByAnyTypeClasses
in interfaceSchemaDAO<PlainSchema>
-
findByValidator
public List<PlainSchema> findByValidator(Implementation validator)
- Specified by:
findByValidator
in interfacePlainSchemaDAO
-
findByKeyword
public List<PlainSchema> findByKeyword(String keyword)
- Specified by:
findByKeyword
in interfaceSchemaDAO<PlainSchema>
-
findAll
public List<PlainSchema> findAll()
- Specified by:
findAll
in interfaceSchemaDAO<PlainSchema>
-
findAttrs
public <T extends PlainAttr<?>> List<T> findAttrs(PlainSchema schema, Class<T> reference)
- Specified by:
findAttrs
in interfacePlainSchemaDAO
-
hasAttrs
public <T extends PlainAttr<?>> boolean hasAttrs(PlainSchema schema, Class<T> reference)
- Specified by:
hasAttrs
in interfacePlainSchemaDAO
-
save
public PlainSchema save(PlainSchema schema)
- Specified by:
save
in interfaceSchemaDAO<PlainSchema>
-
deleteAttrs
protected void deleteAttrs(PlainSchema schema)
-
delete
public void delete(String key)
- Specified by:
delete
in interfaceSchemaDAO<PlainSchema>
-
-