Class DBSchemaDataProviderImpl

  • All Implemented Interfaces:
    com.im.df.api.dml.DFSchemaDataProvider

    public class DBSchemaDataProviderImpl
    extends com.chemaxon.dif.db.api.schema.DBSchemaDataProviderAbstract
    Schema data provider which delegates to QueryService for queries.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  DBSchemaDataProviderImpl.FactoryImpl  
      • Nested classes/interfaces inherited from class com.chemaxon.dif.db.api.schema.DBSchemaDataProviderAbstract

        com.chemaxon.dif.db.api.schema.DBSchemaDataProviderAbstract.Factory
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String MSG_QUERYING
      Test hook.
      • Fields inherited from interface com.im.df.api.dml.DFSchemaDataProvider

        XATTR_TURN_INIT_LOAD
    • Constructor Summary

      Constructors 
      Constructor Description
      DBSchemaDataProviderImpl​(com.chemaxon.dif.db.api.schema.DBSchemaImpl schema)  
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void deleteData​(com.im.df.api.dml.DFDeleteDescription desc, com.im.commons.progress.DFEnvironmentRO env)  
      com.im.df.api.dml.DFDataTreeDataProvider getDataTreeDataProvider​(com.im.df.api.ddl.DFDataTree dataTree)  
      com.im.df.api.dml.DFResultSet getDefaultResultSet​(com.im.df.api.ddl.DFDataTree dataTree, boolean showAll, com.im.commons.progress.DFEnvironmentRO env)  
      com.im.df.api.dml.DFEntityDataProvider getEntityDataProvider​(com.im.df.api.ddl.DFEntity entity)  
      com.im.df.api.dml.DFRelationDataProvider getRelationshipDataProvider​(com.im.df.api.ddl.DFRelationship.Direction relationshipDir)  
      com.im.df.api.ddl.DFSchema getSchema()  
      protected org.springframework.transaction.PlatformTransactionManager getTransactionManager()  
      boolean hasDefaultResultSet​(com.im.df.api.ddl.DFDataTree dataTree)  
      com.im.df.api.support.DFUpdateInfo insert​(com.im.df.api.dml.DFInsertDescription data, com.im.commons.progress.DFEnvironmentRO env)  
      List<?> queryForAllDistinctValues​(com.im.df.api.ddl.DFField field, com.im.df.api.support.SortDirective sort, com.im.commons.progress.DFEnvironmentRO env)
      Retrieves all values of the field currently present in the database.
      com.google.common.collect.Table<Comparable<?>,​String,​Object> queryForData​(com.im.df.api.ddl.DFDataTree.Vertex masterVertex, List<? extends com.im.df.api.ddl.DFField> fields, List<? extends Comparable<?>> masterRowIds)
      Deprecated.
      com.chemaxon.ijc.commons.datarequest.api.RelationalData queryForData​(com.im.df.api.ddl.DFDataTree.Vertex masterVertex, List<? extends Comparable<?>> masterRowIds, List<? extends com.im.df.api.ddl.DFField> fields, com.im.commons.progress.DFEnvironmentRO env)  
      List<? extends Comparable<?>> queryForIds​(com.im.df.api.ddl.DFDataTree dataTree, com.im.df.api.dml.DFTermExpression query, com.im.df.api.support.SortDirective sort, com.im.df.api.dml.EarlyResultsConsumer consumer, com.im.commons.progress.DFEnvironmentRO env)  
      List<? extends Comparable<?>> queryForIds​(com.im.df.api.ddl.DFEntity entity, com.im.df.api.ddl.DFDataTree dataTree, com.im.df.api.dml.DFTermExpression query, com.im.df.api.support.SortDirective sort, com.im.df.api.dml.EarlyResultsConsumer consumer, com.im.commons.progress.DFEnvironmentRO env)  
      void setDmlEditorRole​(boolean dmlEditorRole)  
    • Field Detail

      • MSG_QUERYING

        public static final String MSG_QUERYING
        Test hook. This message is logged when a query starts.
        See Also:
        Constant Field Values
    • Constructor Detail

      • DBSchemaDataProviderImpl

        public DBSchemaDataProviderImpl​(com.chemaxon.dif.db.api.schema.DBSchemaImpl schema)
    • Method Detail

      • setDmlEditorRole

        public void setDmlEditorRole​(boolean dmlEditorRole)
        Specified by:
        setDmlEditorRole in class com.chemaxon.dif.db.api.schema.DBSchemaDataProviderAbstract
      • getSchema

        public com.im.df.api.ddl.DFSchema getSchema()
      • getEntityDataProvider

        public com.im.df.api.dml.DFEntityDataProvider getEntityDataProvider​(com.im.df.api.ddl.DFEntity entity)
      • getDataTreeDataProvider

        public com.im.df.api.dml.DFDataTreeDataProvider getDataTreeDataProvider​(com.im.df.api.ddl.DFDataTree dataTree)
      • hasDefaultResultSet

        public boolean hasDefaultResultSet​(com.im.df.api.ddl.DFDataTree dataTree)
      • queryForIds

        public List<? extends Comparable<?>> queryForIds​(com.im.df.api.ddl.DFDataTree dataTree,
                                                         com.im.df.api.dml.DFTermExpression query,
                                                         com.im.df.api.support.SortDirective sort,
                                                         com.im.df.api.dml.EarlyResultsConsumer consumer,
                                                         com.im.commons.progress.DFEnvironmentRO env)
      • queryForIds

        public List<? extends Comparable<?>> queryForIds​(com.im.df.api.ddl.DFEntity entity,
                                                         com.im.df.api.ddl.DFDataTree dataTree,
                                                         com.im.df.api.dml.DFTermExpression query,
                                                         com.im.df.api.support.SortDirective sort,
                                                         com.im.df.api.dml.EarlyResultsConsumer consumer,
                                                         com.im.commons.progress.DFEnvironmentRO env)
      • getDefaultResultSet

        public com.im.df.api.dml.DFResultSet getDefaultResultSet​(com.im.df.api.ddl.DFDataTree dataTree,
                                                                 boolean showAll,
                                                                 com.im.commons.progress.DFEnvironmentRO env)
      • getRelationshipDataProvider

        public com.im.df.api.dml.DFRelationDataProvider getRelationshipDataProvider​(com.im.df.api.ddl.DFRelationship.Direction relationshipDir)
      • insert

        public com.im.df.api.support.DFUpdateInfo insert​(com.im.df.api.dml.DFInsertDescription data,
                                                         com.im.commons.progress.DFEnvironmentRO env)
      • queryForAllDistinctValues

        public List<?> queryForAllDistinctValues​(com.im.df.api.ddl.DFField field,
                                                 com.im.df.api.support.SortDirective sort,
                                                 com.im.commons.progress.DFEnvironmentRO env)
        Retrieves all values of the field currently present in the database.
        Parameters:
        field - the queried field
        env - environment
        Returns:
        list of distinct values, without nulls
      • deleteData

        public void deleteData​(com.im.df.api.dml.DFDeleteDescription desc,
                               com.im.commons.progress.DFEnvironmentRO env)
        Specified by:
        deleteData in class com.chemaxon.dif.db.api.schema.DBSchemaDataProviderAbstract
      • getTransactionManager

        protected org.springframework.transaction.PlatformTransactionManager getTransactionManager()
        Specified by:
        getTransactionManager in class com.chemaxon.dif.db.api.schema.DBSchemaDataProviderAbstract
      • queryForData

        public com.chemaxon.ijc.commons.datarequest.api.RelationalData queryForData​(com.im.df.api.ddl.DFDataTree.Vertex masterVertex,
                                                                                    List<? extends Comparable<?>> masterRowIds,
                                                                                    List<? extends com.im.df.api.ddl.DFField> fields,
                                                                                    com.im.commons.progress.DFEnvironmentRO env)
      • queryForData

        @Deprecated
        public com.google.common.collect.Table<Comparable<?>,​String,​Object> queryForData​(com.im.df.api.ddl.DFDataTree.Vertex masterVertex,
                                                                                                     List<? extends com.im.df.api.ddl.DFField> fields,
                                                                                                     List<? extends Comparable<?>> masterRowIds)
        Deprecated.