com.wewebu.ow.server.ecmimpl.opencmis.search
Class OwCMISCSQLCProcessor

java.lang.Object
  extended by com.wewebu.ow.csqlc.OwCSQLCProcessor
      extended by com.wewebu.ow.server.ecmimpl.opencmis.search.OwCMISCSQLCProcessor
Direct Known Subclasses:
OwCMISAlfrescoCSQLCProcessor

public class OwCMISCSQLCProcessor
extends com.wewebu.ow.csqlc.OwCSQLCProcessor

An OwSearchNode + OwSort to CMIS SQL abstract syntax tree conversion class.

Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.

For licensing information read the license.txt file or
go to: http://wiki.alfresco.com


Nested Class Summary
 
Nested classes/interfaces inherited from class com.wewebu.ow.csqlc.OwCSQLCProcessor
com.wewebu.ow.csqlc.OwCSQLCProcessor.OwProcessContext
 
Field Summary
 
Fields inherited from class com.wewebu.ow.csqlc.OwCSQLCProcessor
m_entitiesResolver
 
Constructor Summary
OwCMISCSQLCProcessor(com.wewebu.ow.csqlc.OwSQLEntitiesResolver entitiesResolver_p)
           
 
Method Summary
protected  XMLGregorianCalendar convertDate(Date definedDate_p)
          Convert Date into specific XML representation.
protected  com.wewebu.ow.csqlc.ast.OwColumnQualifier createColumnQualifier(String propertyName_p, String repositoryID_p)
           
protected  com.wewebu.ow.csqlc.ast.OwColumnQualifier createFromTableQualifier(String tableName_p, String typeName_p)
           
protected  String createJoinColumnName(com.wewebu.ow.csqlc.ast.OwColumnQualifier qualifier_p)
           
protected  com.wewebu.ow.csqlc.ast.OwPredicateFormat createLikeFormat()
           
protected  com.wewebu.ow.csqlc.ast.OwSQLDateTimeLiteral createLiteral(com.wewebu.ow.server.field.OwSearchCriteria criteria_p, Date date_p)
           
protected  com.wewebu.ow.csqlc.ast.OwColumnQualifier createQueryColumnQualifier(String tableName_p, String typeName_p)
           
protected  com.wewebu.ow.csqlc.ast.OwColumnQualifier createQueryFieldQualifier(com.wewebu.ow.server.field.OwFieldDefinition fieldDefinition_p, com.wewebu.ow.csqlc.OwCSQLCProcessor.OwProcessContext context_p)
           
protected  com.wewebu.ow.csqlc.ast.OwTextSearchPredicate createTextSearchPredicate(com.wewebu.ow.csqlc.ast.OwCharacterStringLiteral searchExpression_p, com.wewebu.ow.csqlc.ast.OwColumnReference columnReference_p)
           
protected  String escapeNativeWildCardRepresentation(String value_p, Collection<com.wewebu.ow.server.field.OwWildCardDefinition> wildCardDefs)
           
protected  com.wewebu.ow.csqlc.ast.OwFolderPredicateFormat getFolderPredicateFormat()
           
protected  com.wewebu.ow.csqlc.ast.OwPredicateFormat getInFormat()
           
protected  com.wewebu.ow.csqlc.ast.OwPredicateFormat getQuantifiedComparisonFormat()
           
protected  com.wewebu.ow.csqlc.ast.OwPredicateFormat getQuantifiedInFormat()
           
protected  boolean isMultipleTextSearchSyntax()
           
protected  String joinType(com.wewebu.ow.csqlc.ast.OwCorrelatedTableName joinedTable_p)
           
 
Methods inherited from class com.wewebu.ow.csqlc.OwCSQLCProcessor
convertWildCards, createBetweenPredicate, createCBRAllExpression, createCBRAllPredicate, createCBRInExpression, createCBRInPredicate, createColumnReference, createComparisonPredicate, createContentCondition, createContentSearchLiteral, createDefaultLiteral, createExtendedPredicate, createInPredicate, createLikePredicate, createLiteral, createLiteral, createLiteral, createNullLiteral, createNullPredicate, createQuantifiedInPredicate, createQueryFieldName, createSimpleTable, createSQLStatements, createSQLStatements, createSubclassesConditions, createVersionSelectionCondition, escapeStringValue, findMainObjectClasses, findSelectedObjectClasses, getMainObjectCriteria, getMaxRows, getSQLComparisonOperatorMap, handleSingleContentCondition, isValidPredicateValue, qualifySingleTable, retrieveDefinition, setMaxRows, subclass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OwCMISCSQLCProcessor

public OwCMISCSQLCProcessor(com.wewebu.ow.csqlc.OwSQLEntitiesResolver entitiesResolver_p)
Method Detail

createFromTableQualifier

protected com.wewebu.ow.csqlc.ast.OwColumnQualifier createFromTableQualifier(String tableName_p,
                                                                             String typeName_p)
Specified by:
createFromTableQualifier in class com.wewebu.ow.csqlc.OwCSQLCProcessor

createColumnQualifier

protected com.wewebu.ow.csqlc.ast.OwColumnQualifier createColumnQualifier(String propertyName_p,
                                                                          String repositoryID_p)
                                                                   throws com.wewebu.ow.server.exceptions.OwException
Specified by:
createColumnQualifier in class com.wewebu.ow.csqlc.OwCSQLCProcessor
Throws:
com.wewebu.ow.server.exceptions.OwException

createQueryColumnQualifier

protected com.wewebu.ow.csqlc.ast.OwColumnQualifier createQueryColumnQualifier(String tableName_p,
                                                                               String typeName_p)
Specified by:
createQueryColumnQualifier in class com.wewebu.ow.csqlc.OwCSQLCProcessor

createQueryFieldQualifier

protected com.wewebu.ow.csqlc.ast.OwColumnQualifier createQueryFieldQualifier(com.wewebu.ow.server.field.OwFieldDefinition fieldDefinition_p,
                                                                              com.wewebu.ow.csqlc.OwCSQLCProcessor.OwProcessContext context_p)
                                                                       throws com.wewebu.ow.server.exceptions.OwException
Specified by:
createQueryFieldQualifier in class com.wewebu.ow.csqlc.OwCSQLCProcessor
Throws:
com.wewebu.ow.server.exceptions.OwException

createLiteral

protected com.wewebu.ow.csqlc.ast.OwSQLDateTimeLiteral createLiteral(com.wewebu.ow.server.field.OwSearchCriteria criteria_p,
                                                                     Date date_p)
                                                              throws com.wewebu.ow.csqlc.OwCSQLCException
Overrides:
createLiteral in class com.wewebu.ow.csqlc.OwCSQLCProcessor
Throws:
com.wewebu.ow.csqlc.OwCSQLCException

convertDate

protected XMLGregorianCalendar convertDate(Date definedDate_p)
                                    throws com.wewebu.ow.csqlc.OwCSQLCException
Convert Date into specific XML representation. Also a conversion into specific time zone is done.

Parameters:
definedDate_p - Date
Returns:
XMLGregorianCalendar
Throws:
com.wewebu.ow.csqlc.OwCSQLCException
Since:
4.1.0.0

createJoinColumnName

protected String createJoinColumnName(com.wewebu.ow.csqlc.ast.OwColumnQualifier qualifier_p)
Specified by:
createJoinColumnName in class com.wewebu.ow.csqlc.OwCSQLCProcessor

getInFormat

protected com.wewebu.ow.csqlc.ast.OwPredicateFormat getInFormat()
Specified by:
getInFormat in class com.wewebu.ow.csqlc.OwCSQLCProcessor

getQuantifiedInFormat

protected com.wewebu.ow.csqlc.ast.OwPredicateFormat getQuantifiedInFormat()
Specified by:
getQuantifiedInFormat in class com.wewebu.ow.csqlc.OwCSQLCProcessor

getQuantifiedComparisonFormat

protected com.wewebu.ow.csqlc.ast.OwPredicateFormat getQuantifiedComparisonFormat()
Specified by:
getQuantifiedComparisonFormat in class com.wewebu.ow.csqlc.OwCSQLCProcessor

getFolderPredicateFormat

protected com.wewebu.ow.csqlc.ast.OwFolderPredicateFormat getFolderPredicateFormat()
Specified by:
getFolderPredicateFormat in class com.wewebu.ow.csqlc.OwCSQLCProcessor

createTextSearchPredicate

protected com.wewebu.ow.csqlc.ast.OwTextSearchPredicate createTextSearchPredicate(com.wewebu.ow.csqlc.ast.OwCharacterStringLiteral searchExpression_p,
                                                                                  com.wewebu.ow.csqlc.ast.OwColumnReference columnReference_p)
                                                                           throws com.wewebu.ow.server.exceptions.OwException
Specified by:
createTextSearchPredicate in class com.wewebu.ow.csqlc.OwCSQLCProcessor
Throws:
com.wewebu.ow.server.exceptions.OwException

joinType

protected String joinType(com.wewebu.ow.csqlc.ast.OwCorrelatedTableName joinedTable_p)
Specified by:
joinType in class com.wewebu.ow.csqlc.OwCSQLCProcessor

createLikeFormat

protected com.wewebu.ow.csqlc.ast.OwPredicateFormat createLikeFormat()
Specified by:
createLikeFormat in class com.wewebu.ow.csqlc.OwCSQLCProcessor

escapeNativeWildCardRepresentation

protected String escapeNativeWildCardRepresentation(String value_p,
                                                    Collection<com.wewebu.ow.server.field.OwWildCardDefinition> wildCardDefs)
Specified by:
escapeNativeWildCardRepresentation in class com.wewebu.ow.csqlc.OwCSQLCProcessor

isMultipleTextSearchSyntax

protected boolean isMultipleTextSearchSyntax()
Specified by:
isMultipleTextSearchSyntax in class com.wewebu.ow.csqlc.OwCSQLCProcessor


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.