public class InMemoryQueryProcessor extends Object
Modifier and Type | Class and Description |
---|---|
class |
InMemoryQueryProcessor.InMemoryWhereClauseWalker |
Constructor and Description |
---|
InMemoryQueryProcessor(ObjectStoreImpl objStore) |
Modifier and Type | Method and Description |
---|---|
ObjectList |
buildResultList(TypeManager tm,
String user,
Boolean includeAllowableActions,
IncludeRelationships includeRelationships,
String renditionFilter,
BigInteger maxItems,
BigInteger skipCount)
Create the list of matching objects for this query.
|
protected int |
compareTo(PropertyDefinition<?> td,
Object lValue,
Object rVal) |
void |
processQueryAndCatchExc(String statement,
TypeManager tm)
Process a query.
|
ObjectList |
query(TypeManager tm,
ObjectStore objectStore,
String user,
String repositoryId,
String statement,
Boolean searchAllVersions,
Boolean includeAllowableActions,
IncludeRelationships includeRelationships,
String renditionFilter,
BigInteger maxItems,
BigInteger skipCount)
Main entry function to process a query from discovery service.
|
static String |
translatePattern(String wildcardString)
Translate SQL wildcards %, _ to Java regex syntax.
|
public InMemoryQueryProcessor(ObjectStoreImpl objStore)
public ObjectList query(TypeManager tm, ObjectStore objectStore, String user, String repositoryId, String statement, Boolean searchAllVersions, Boolean includeAllowableActions, IncludeRelationships includeRelationships, String renditionFilter, BigInteger maxItems, BigInteger skipCount)
tm
- type manager for the given repositoryobjectStore
- object store to gets object fromuser
- user execuing the queryrepositoryId
- id of repositorystatement
- query statementsearchAllVersions
- search in all versions of objectsincludeAllowableActions
- include allowable actionsincludeRelationships
- include relationshipsrenditionFilter
- include renditionsmaxItems
- max number of items to returnskipCount
- items to skippublic void processQueryAndCatchExc(String statement, TypeManager tm)
statement
- CMISQL statement to executetm
- type manager for the repositorypublic ObjectList buildResultList(TypeManager tm, String user, Boolean includeAllowableActions, IncludeRelationships includeRelationships, String renditionFilter, BigInteger maxItems, BigInteger skipCount)
tm
- type manager for the given repositoryuser
- user execuing the queryincludeAllowableActions
- include allowable actionsincludeRelationships
- include relationshipsrenditionFilter
- include renditionsmaxItems
- max number of items to returnskipCount
- items to skipprotected int compareTo(PropertyDefinition<?> td, Object lValue, Object rVal)
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.