Class PGJPAJSONAnySearchDAO
- java.lang.Object
-
- org.apache.syncope.core.persistence.jpa.dao.AbstractDAO<Any<?>>
-
- org.apache.syncope.core.persistence.jpa.dao.AbstractAnySearchDAO
-
- org.apache.syncope.core.persistence.jpa.dao.JPAAnySearchDAO
-
- org.apache.syncope.core.persistence.jpa.dao.PGJPAJSONAnySearchDAO
-
- All Implemented Interfaces:
AnySearchDAO
,DAO<Any<?>>
public class PGJPAJSONAnySearchDAO extends JPAAnySearchDAO
-
-
Field Summary
Fields Modifier and Type Field Description protected static String
POSTGRESQL_REGEX_CHARS
-
Fields inherited from class org.apache.syncope.core.persistence.jpa.dao.JPAAnySearchDAO
ALWAYS_FALSE_CLAUSE, SELECT_COLS_FROM_VIEW
-
Fields inherited from class org.apache.syncope.core.persistence.jpa.dao.AbstractAnySearchDAO
anyObjectDAO, anyUtilsFactory, dynRealmDAO, entityFactory, groupDAO, plainSchemaDAO, realmDAO, RELATIONSHIP_FIELDS, userDAO, validator
-
Fields inherited from class org.apache.syncope.core.persistence.jpa.dao.AbstractDAO
LOG
-
-
Constructor Summary
Constructors Constructor Description PGJPAJSONAnySearchDAO(RealmDAO realmDAO, DynRealmDAO dynRealmDAO, UserDAO userDAO, GroupDAO groupDAO, AnyObjectDAO anyObjectDAO, PlainSchemaDAO schemaDAO, EntityFactory entityFactory, AnyUtilsFactory anyUtilsFactory, PlainAttrValidationManager validator)
-
Method Summary
-
Methods inherited from class org.apache.syncope.core.persistence.jpa.dao.JPAAnySearchDAO
buildAdminRealmsFilter, buildCountQuery, buildSearchQuery, buildWhere, doCount, doSearch, fillAttrQuery, fillWithParameters, getAdminRealmsFilter, getQuery, getQuery, getQuery, getQuery, getQuery, getQuery, getQuery, getQuery, getQuery, getQuery, getQuery, getQuery, getQueryForCustomConds, key, parseOrderBy, parseOrderByForCustom, setParameter, syncopeClientException
-
Methods inherited from class org.apache.syncope.core.persistence.jpa.dao.AbstractAnySearchDAO
buildEffectiveCond, buildResult, check, check, check, check, check, count, search, search, search
-
Methods inherited from class org.apache.syncope.core.persistence.jpa.dao.AbstractDAO
detach, entityManager, entityManagerFactory, isOracle, refresh
-
-
-
-
Field Detail
-
POSTGRESQL_REGEX_CHARS
protected static final String POSTGRESQL_REGEX_CHARS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PGJPAJSONAnySearchDAO
public PGJPAJSONAnySearchDAO(RealmDAO realmDAO, DynRealmDAO dynRealmDAO, UserDAO userDAO, GroupDAO groupDAO, AnyObjectDAO anyObjectDAO, PlainSchemaDAO schemaDAO, EntityFactory entityFactory, AnyUtilsFactory anyUtilsFactory, PlainAttrValidationManager validator)
-
-
Method Detail
-
defaultSV
protected SearchSupport.SearchView defaultSV(SearchSupport svs)
- Overrides:
defaultSV
in classJPAAnySearchDAO
-
anyId
protected String anyId(SearchSupport svs)
- Overrides:
anyId
in classJPAAnySearchDAO
-
parseOrderByForPlainSchema
protected void parseOrderByForPlainSchema(SearchSupport svs, OrderBySupport obs, OrderBySupport.Item item, OrderByClause clause, PlainSchema schema, String fieldName)
- Overrides:
parseOrderByForPlainSchema
in classJPAAnySearchDAO
-
parseOrderByForField
protected void parseOrderByForField(SearchSupport svs, OrderBySupport.Item item, String fieldName, OrderByClause clause)
- Overrides:
parseOrderByForField
in classJPAAnySearchDAO
-
filJSONAttrQuery
protected AnySearchNode.Leaf filJSONAttrQuery(SearchSupport.SearchView from, PlainAttrValue attrValue, PlainSchema schema, AttrCond cond, boolean not)
-
getQuery
protected AnySearchNode getQuery(AttrCond cond, boolean not, Pair<PlainSchema,PlainAttrValue> checked, List<Object> parameters, SearchSupport svs)
- Overrides:
getQuery
in classJPAAnySearchDAO
-
visitNode
protected void visitNode(AnySearchNode node, Map<SearchSupport.SearchView,Boolean> counters, Set<SearchSupport.SearchView> from, List<String> where, SearchSupport svs)
- Overrides:
visitNode
in classJPAAnySearchDAO
-
buildFrom
protected String buildFrom(Set<SearchSupport.SearchView> from, Set<String> plainSchemas, OrderBySupport obs)
- Overrides:
buildFrom
in classJPAAnySearchDAO
-
-