Class AnyFinder
java.lang.Object
org.apache.syncope.core.persistence.jpa.dao.AnyFinder
- Direct Known Subclasses:
MariaDBAnyFinder
,MySQLAnyFinder
,OracleAnyFinder
,PGAnyFinder
-
Field Summary
Modifier and TypeFieldDescriptionprotected final EntityManager
protected static final Logger
protected final PlainSchemaDAO
-
Constructor Summary
ModifierConstructorDescriptionprotected
AnyFinder
(PlainSchemaDAO plainSchemaDAO, EntityManager entityManager) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract String
attrValueMatch
(AnyUtils anyUtils, PlainSchema schema, PlainAttrValue attrValue, boolean ignoreCaseMatch) buildResult
(AnyUtils anyUtils, List<Object> queryResult) findByDerAttrValue
(String table, AnyUtils anyUtils, DerSchema derSchema, String value, boolean ignoreCaseMatch) findByPlainAttrUniqueValue
(String table, AnyUtils anyUtils, PlainSchema schema, PlainAttrUniqueValue attrUniqueValue, boolean ignoreCaseMatch) 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 abstract String
queryBegin
(String table) schemaInfo
(AttrSchemaType schemaType, boolean ignoreCaseMatch) Split an attribute value recurring on provided literals/tokens.protected String
-
Field Details
-
LOG
-
plainSchemaDAO
-
entityManager
-
-
Constructor Details
-
AnyFinder
-
-
Method Details
-
split
Split an attribute value recurring on provided literals/tokens.- Parameters:
attrValue
- value to be splitliterals
- literals/tokens- Returns:
- split value
-
view
-
queryBegin
-
schemaInfo
-
attrValueMatch
protected abstract String attrValueMatch(AnyUtils anyUtils, PlainSchema schema, PlainAttrValue attrValue, boolean ignoreCaseMatch) -
getAttrValue
protected Object getAttrValue(PlainSchema schema, PlainAttrValue attrValue, boolean ignoreCaseMatch) -
buildResult
-
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) -
findByPlainAttrUniqueValue
@Transactional(readOnly=true) public <A extends Any<?>> Optional<A> findByPlainAttrUniqueValue(String table, AnyUtils anyUtils, PlainSchema schema, PlainAttrUniqueValue attrUniqueValue, boolean ignoreCaseMatch) -
findByDerAttrValue
-