Class CMISQLtoNXQL


  • public class CMISQLtoNXQL
    extends Object
    Transformer of CMISQL queries into NXQL queries.
    • Constructor Detail

      • CMISQLtoNXQL

        public CMISQLtoNXQL​(boolean supportsProxies)
    • Method Detail

      • isFacetsColumn

        protected boolean isFacetsColumn​(String name)
      • addSystemColumns

        protected void addSystemColumns()
      • recordSelectSelector

        protected void recordSelectSelector​(org.apache.chemistry.opencmis.server.support.query.CmisSelector sel)
        Records a SELECT selector, and associates it to a database column.
      • recordSelector

        protected void recordSelector​(org.apache.chemistry.opencmis.server.support.query.CmisSelector sel,
                                      String clauseType)
        Records a JOIN / WHERE / ORDER BY selector, and associates it to a database column.
      • getColumn

        protected String getColumn​(org.apache.chemistry.opencmis.server.support.query.ColumnReference col)
        Finds a NXQL column from a CMIS reference.
      • getColumn

        protected String getColumn​(String propertyId)
        Finds a NXQL column from a CMIS reference.
      • getSystemColumn

        protected String getSystemColumn​(String propertyId)
        Finds a NXQL system column from a CMIS system property id.
      • cmisToNxqlFulltextQuery

        protected static String cmisToNxqlFulltextQuery​(String statement)
      • convertOrderBy

        protected String convertOrderBy​(String orderBy,
                                        TypeManagerImpl typeManager)
        Convert an ORDER BY part from CMISQL to NXQL.
        Since:
        6.0