Class PGJPAJSONAnyDAO
- java.lang.Object
-
- org.apache.syncope.core.persistence.jpa.dao.AbstractDAO<AbstractEntity>
-
- org.apache.syncope.core.persistence.jpa.dao.PGJPAJSONAnyDAO
-
- All Implemented Interfaces:
DAO<AbstractEntity>
,JPAJSONAnyDAO
public class PGJPAJSONAnyDAO extends AbstractDAO<AbstractEntity>
-
-
Field Summary
Fields Modifier and Type Field Description protected PlainSchemaDAO
plainSchemaDAO
-
Fields inherited from class org.apache.syncope.core.persistence.jpa.dao.AbstractDAO
LOG
-
-
Constructor Summary
Constructors Constructor Description PGJPAJSONAnyDAO(PlainSchemaDAO plainSchemaDAO)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
attrValueMatch(AnyUtils anyUtils, PlainSchema schema, PlainAttrValue attrValue, boolean ignoreCaseMatch)
protected <A extends Any<?>>
List<A>buildResult(AnyUtils anyUtils, List<Object> queryResult)
<A extends Any<?>>
voidcheckBeforeSave(String table, AnyUtils anyUtils, A any)
<A extends Any<?>>
List<A>findByDerAttrValue(String table, AnyUtils anyUtils, DerSchema derSchema, String value, boolean ignoreCaseMatch)
<A extends Any<?>>
Optional<A>findByPlainAttrUniqueValue(String table, AnyUtils anyUtils, PlainSchema schema, PlainAttrUniqueValue attrUniqueValue, boolean ignoreCaseMatch)
<A extends Any<?>>
List<A>findByPlainAttrValue(String table, AnyUtils anyUtils, PlainSchema schema, PlainAttrValue attrValue, boolean ignoreCaseMatch)
protected Object
getAttrValue(PlainSchema schema, PlainAttrValue attrValue, boolean ignoreCaseMatch)
protected String
plainAttrQuery(String table, AnyUtils anyUtils, PlainSchema schema, PlainAttrValue attrValue, boolean ignoreCaseMatch, List<Object> queryParams)
protected String
queryBegin(String table)
protected Pair<String,Boolean>
schemaInfo(AttrSchemaType schemaType, boolean ignoreCaseMatch)
protected String
view(String table)
-
Methods inherited from class org.apache.syncope.core.persistence.jpa.dao.AbstractDAO
detach, entityManager, entityManagerFactory, isOracle, refresh
-
-
-
-
Field Detail
-
plainSchemaDAO
protected final PlainSchemaDAO plainSchemaDAO
-
-
Constructor Detail
-
PGJPAJSONAnyDAO
public PGJPAJSONAnyDAO(PlainSchemaDAO plainSchemaDAO)
-
-
Method Detail
-
attrValueMatch
protected String attrValueMatch(AnyUtils anyUtils, PlainSchema schema, PlainAttrValue attrValue, boolean ignoreCaseMatch)
-
schemaInfo
protected Pair<String,Boolean> schemaInfo(AttrSchemaType schemaType, boolean ignoreCaseMatch)
-
getAttrValue
protected Object getAttrValue(PlainSchema schema, PlainAttrValue attrValue, boolean ignoreCaseMatch)
-
buildResult
protected <A extends Any<?>> List<A> buildResult(AnyUtils anyUtils, List<Object> queryResult)
-
plainAttrQuery
protected String plainAttrQuery(String table, AnyUtils anyUtils, PlainSchema schema, PlainAttrValue attrValue, boolean ignoreCaseMatch, List<Object> queryParams)
-
findByPlainAttrValue
@Transactional(readOnly=true) public <A extends Any<?>> List<A> findByPlainAttrValue(String table, AnyUtils anyUtils, PlainSchema schema, PlainAttrValue attrValue, boolean ignoreCaseMatch)
- Specified by:
findByPlainAttrValue
in interfaceJPAJSONAnyDAO
-
findByPlainAttrUniqueValue
@Transactional(readOnly=true) public <A extends Any<?>> Optional<A> findByPlainAttrUniqueValue(String table, AnyUtils anyUtils, PlainSchema schema, PlainAttrUniqueValue attrUniqueValue, boolean ignoreCaseMatch)
- Specified by:
findByPlainAttrUniqueValue
in interfaceJPAJSONAnyDAO
-
findByDerAttrValue
@Transactional(readOnly=true) public <A extends Any<?>> List<A> findByDerAttrValue(String table, AnyUtils anyUtils, DerSchema derSchema, String value, boolean ignoreCaseMatch)
- Specified by:
findByDerAttrValue
in interfaceJPAJSONAnyDAO
-
checkBeforeSave
@Transactional public <A extends Any<?>> void checkBeforeSave(String table, AnyUtils anyUtils, A any)
- Specified by:
checkBeforeSave
in interfaceJPAJSONAnyDAO
-
-