Class OJPAJSONAnyDAO
- java.lang.Object
-
- org.apache.syncope.core.persistence.jpa.dao.AbstractDAO<AbstractEntity>
-
- org.apache.syncope.core.persistence.jpa.dao.OJPAJSONAnyDAO
-
- All Implemented Interfaces:
DAO<AbstractEntity>,JPAJSONAnyDAO
public class OJPAJSONAnyDAO extends AbstractDAO<AbstractEntity>
-
-
Field Summary
Fields Modifier and Type Field Description protected PlainSchemaDAOplainSchemaDAO-
Fields inherited from class org.apache.syncope.core.persistence.jpa.dao.AbstractDAO
LOG
-
-
Constructor Summary
Constructors Constructor Description OJPAJSONAnyDAO(PlainSchemaDAO plainSchemaDAO)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringattrValueMatch(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 ObjectgetAttrValue(PlainSchema schema, PlainAttrValue attrValue, boolean ignoreCaseMatch)protected StringplainAttrQuery(String table, AnyUtils anyUtils, PlainSchema schema, PlainAttrValue attrValue, boolean ignoreCaseMatch, List<Object> queryParams)protected StringqueryBegin(String table)protected Pair<String,Boolean>schemaInfo(AttrSchemaType schemaType, boolean ignoreCaseMatch)protected Stringview(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
-
OJPAJSONAnyDAO
public OJPAJSONAnyDAO(PlainSchemaDAO plainSchemaDAO)
-
-
Method Detail
-
getAttrValue
protected Object getAttrValue(PlainSchema schema, PlainAttrValue attrValue, boolean ignoreCaseMatch)
-
attrValueMatch
protected String attrValueMatch(AnyUtils anyUtils, PlainSchema schema, PlainAttrValue attrValue, boolean ignoreCaseMatch)
-
schemaInfo
protected Pair<String,Boolean> schemaInfo(AttrSchemaType schemaType, 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:
findByPlainAttrValuein interfaceJPAJSONAnyDAO
-
findByPlainAttrUniqueValue
@Transactional(readOnly=true) public <A extends Any<?>> Optional<A> findByPlainAttrUniqueValue(String table, AnyUtils anyUtils, PlainSchema schema, PlainAttrUniqueValue attrUniqueValue, boolean ignoreCaseMatch)
- Specified by:
findByPlainAttrUniqueValuein interfaceJPAJSONAnyDAO
-
findByDerAttrValue
@Transactional(readOnly=true) public <A extends Any<?>> List<A> findByDerAttrValue(String table, AnyUtils anyUtils, DerSchema derSchema, String value, boolean ignoreCaseMatch)
- Specified by:
findByDerAttrValuein interfaceJPAJSONAnyDAO
-
checkBeforeSave
@Transactional public <A extends Any<?>> void checkBeforeSave(String table, AnyUtils anyUtils, A any)
- Specified by:
checkBeforeSavein interfaceJPAJSONAnyDAO
-
-