Examples of IDataSource


Examples of com.dtrules.automapping.access.IDataSource

    }
   
    @SuppressWarnings("unchecked")
    private void loadObjects(IMapNode parent,  Group groupObj, String label, Object object){
       
        IDataSource dataSrc   = groupObj.getDataSource();
       
        String spec = dataSrc.getSpec(object);
       
        boolean pruned = groupObj.isPruned(spec);
        if(pruned) return;
       
        if(object instanceof List){
            for(Object child : ((List<Object>)object)){
                loadObjects(parent,groupObj,dataSrc.getName(child),child);
            }
            return;
        }
       
        // Look up that label.
        Label labelObj = groupObj.findLabel(
                label,
                groupObj.getType(),
                spec);
       
        // If we haven't got a label for this sort of object yet, create one.
        if (labelObj == null  || !labelObj.isCached()){
       
            labelObj = dataSrc.createLabel(
                this,
                groupObj,
                dataSrc.getName(object),           // Get our default label name
                dataSrc.getKey(object),            // See if we can find a key for this obj                 
                false,
                object);
        }
       
        // If we still don't have a LabelObj, then just process its children.
        if(labelObj == null){
            for(Object child : dataSrc.getChildren(object) ){
                loadObjects(parent, groupObj, dataSrc.getName(child), child);
            }
            return;
        }
        loadObjects(parent, groupObj, labelObj, object);
    }
View Full Code Here

Examples of com.greentea.relaxation.jnmf.model.IDataSource

                                         int pointSize)
   {
      resetTest(network, data, pointsCount, pointSize, null);

      NetworkController controller = network.getController();
      IDataSource dataSource = network.getDataSource();

      network.setController(this);
      network.setDataSource(this);
      network.startExecution();
View Full Code Here

Examples of com.inmethod.grid.IDataSource

  private void initialize() {
    if (queryResult == null) {
      queryResult = new QueryResult();
      Query query = new Query(queryResult);

      IDataSource dataSource = getDataSource();

      int oldItemCount = realItemCount;

      // query for items
      dataSource.query(wrapQuery(query), queryResult);

      // process the QueryResult
      queryResult.process(dataSource);

      // check for situation when we didn't get any items, but we know the real count
      // this is not a case when there are no items at all, just the case when there are no items on current page
      // but possible items on previous pages
      if (queryResult.itemCache.size() == 0 && realItemCount != UNKOWN_COUNT &&
        realItemCount != oldItemCount && realItemCount > 0) {
       
        // the data must have changed, the number of items has been reduced. try move to
        // last page
        int page = getPageCount() - 1;
        if (page < 0) {
          page = 0;
        }
        setCurrentPage(page);

        // try reloading the items
        queryResult = new QueryResult();
        query = new Query(queryResult);

        // query for items
        dataSource.query(query, queryResult);

        // process the QueryResult
        queryResult.process(dataSource);
      }
      else if (realItemCount == 0)
View Full Code Here

Examples of it.eng.qbe.datasource.IDataSource

  /* (non-Javadoc)
   * @see it.eng.qbe.datasource.DataSourceManager#getDataSource(java.util.List, java.util.Map, it.eng.qbe.datasource.DBConnection)
   */
  public IDataSource getDataSource(List<String> dataMartNames, Map<String, Object> dataSourceProperties) {
   
    IDataSource dataSource;
   
    // = getNamingStartegy().getDataSourceName(dataMartNames, connection);
    //dataSource = getDataSourceCache().getDataSource(dataSourceName);
   
    CompositeDataSourceConfiguration compositeConfiguration = new CompositeDataSourceConfiguration();
View Full Code Here

Examples of it.eng.qbe.datasource.IDataSource

    private static transient Logger logger = Logger.getLogger(GetEntityFieldsAction.class);
  
  public void service(SourceBean request, SourceBean response) {       
 
    String fieldId;
    IDataSource dataSource;
    IModelStructure structure;
    IModelField field;
    IModelEntity parentEntity;
    IModelEntity dimensionalEntity;
    List fields;
    JSONArray toReturn;
   
    logger.debug("IN");
   
    try {   
      super.service(request, response)
     
      fieldId = getAttributeAsString( FIELD_ID );
      logger.debug("Parameter [" + FIELD_ID + "] is equals to [" + fieldId + "]");
     
      Assert.assertNotNull(getEngineInstance(), "It's not possible to execute " + this.getActionName() + " service before having properly created an instance of EngineInstance class");
     
      dataSource = getDataSource();
      structure = dataSource.getModelStructure();
      field = structure.getField(fieldId);
      parentEntity = field.getParent();
      fields = parentEntity.getAllFields();
     
      toReturn = new JSONArray();
View Full Code Here

Examples of it.eng.qbe.datasource.IDataSource

      orderType = "NONE";
    }
   
    if (queryRootEntity) {
      logger.debug("Must use query root entity. Looking for select and order fields...");
      IDataSource model = getDataSource();
      IModelStructure structure = model.getModelStructure();
      IModelField selectField = structure.getField(entityId);
      IModelField orderField = null;
      if (orderEntity != null && !orderEntity.equals("")) {
        orderField = structure.getField(orderEntity);
      }
View Full Code Here

Examples of it.eng.qbe.datasource.IDataSource

    return DRIVER_ID;
  }

  @Override
  public IDataSource getDataSource(IDataSourceConfiguration configuration) {
    IDataSource dataSource;
    String dataSourceName;
   
    if(maxDataSource > 0 && openedDataSource == maxDataSource) {
      throw new SpagoBIRuntimeException("Maximum  number of open data source reached");
    }
View Full Code Here

Examples of it.eng.qbe.datasource.IDataSource

  public String getName() {
    return DRIVER_ID;
  }

  public IDataSource getDataSource(IDataSourceConfiguration configuration) {
    IDataSource dataSource;
    String dataSourceName;
   
    if(maxDataSource > 0 && openedDataSource == maxDataSource) {
      throw new SpagoBIRuntimeException("Maximum  number of open data source reached");
    }
View Full Code Here

Examples of it.eng.qbe.datasource.IDataSource

    return DRIVER_ID;
  }

  @Override
  public IDataSource getDataSource(IDataSourceConfiguration configuration) {
    IDataSource dataSource;
    String dataSourceName;
   
    if(maxDataSource > 0 && openedDataSource == maxDataSource) {
      throw new SpagoBIRuntimeException("Maximum  number of open data sources reached");
    }
View Full Code Here

Examples of it.eng.qbe.datasource.IDataSource

  public String getName() {
    return DRIVER_ID;
  }

  public IDataSource getDataSource(IDataSourceConfiguration configuration) {
    IDataSource dataSource;
    String dataSourceName;
   
    if(maxDataSource > 0 && openedDataSource == maxDataSource) {
      throw new SpagoBIRuntimeException("Maximum  number of open data sources reached");
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.