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)
protected List<Object>
findByDerAttrValue(String table, Map<String,List<Object>> clauses)
<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
queryBegin(String table)
protected Pair<String,Boolean>
schemaInfo(AttrSchemaType schemaType, boolean ignoreCaseMatch)
protected List<String>
split(String attrValue, List<String> literals)
Split an attribute value recurring on provided literals/tokens.protected String
view(String table)
-
Methods inherited from class org.apache.syncope.core.persistence.jpa.dao.AbstractDAO
detach, entityManager, entityManagerFactory, 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)
-
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
-
split
protected List<String> split(String attrValue, List<String> literals)
Split an attribute value recurring on provided literals/tokens.- Parameters:
attrValue
- value to be splitliterals
- literals/tokens- Returns:
- split value
-
findByDerAttrValue
protected List<Object> findByDerAttrValue(String table, Map<String,List<Object>> clauses)
-
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
-
-