Examples of DataSource


Examples of com.hp.hpl.jena.query.DataSource

    if( PelletSparqlDawgTester.CLASSIFY_KB_IN_ADVANCE ) {
      ((PelletInfGraph) (model.getGraph())).getKB().classify();
    }

    DataSource dataset = DatasetFactory.create( model );

    Collection<String> namedGraphURIs = useQueryGraphs
      ? query.getNamedGraphURIs()
      : this.namedGraphURIs;

    for( String graphURI : namedGraphURIs ) {
      model = ModelFactory.createOntologyModel( PelletReasonerFactory.THE_SPEC );
      FileManager.get().readModel( model, graphURI );
      dataset.addNamedModel( graphURI, model );
    }

    return dataset;
  }
View Full Code Here

Examples of com.ketayao.ketacustom.generate.db.DataSource

  }
 
  private void init () {
    Table table = null;
    try {
      DataSource db = DbFactory.create();
      table = db.getTable(tableName);
      ConvertHandler.tableHandle(table);
    } catch (Exception e) {
      e.printStackTrace();
      System.exit(-1);
    }
View Full Code Here

Examples of com.krminc.phr.domain.DataSource

    public MedicalEvent resolveEntity(EntityManager em) {
        HealthRecord healthRecord = entity.getHealthRecord();
        if (healthRecord != null) {
            entity.setHealthRecord(em.getReference(HealthRecord.class, healthRecord.getHealthRecordId()));
        }
        DataSource dataSource = entity.getDataSource();
        if (dataSource != null) {
            entity.setDataSource(em.getReference(DataSource.class, dataSource.getDataSourceId()));
        }
        return entity;
    }
View Full Code Here

Examples of com.projity.reports.adapter.DataSource

    if (cache != null) { // remove old listener
        cache.removeNodeModelListener(this);
    }
          
        DataSource dataSource;

        SpreadSheetFieldArray fa = null;
        if (fieldArray != null) {
          fa =(SpreadSheetFieldArray) fieldArray.clone();
          CollectionUtils.filter(fa,new Predicate() {
View Full Code Here

Examples of com.smartgwt.client.data.DataSource

    layout.addMember(map);
    return layout;
  }

  private DataSource getGeocoderSelectDataSource() {
    DataSource dataSource = new DataSource();
    dataSource.setClientOnly(true);
    DataSourceField label = new DataSourceTextField(FIELD_LABEL);
    DataSourceField regex = new DataSourceTextField(FIELD_REGEX);
    dataSource.setFields(label, regex);

    Record record;
    record = new Record();
    record.setAttribute(FIELD_LABEL, "all");
    record.setAttribute(FIELD_REGEX, ".*");
    dataSource.addData(record);
    record = new Record();
    record.setAttribute(FIELD_LABEL, "Yahoo! PlaceFinder");
    record.setAttribute(FIELD_REGEX, "yahoo");
    dataSource.addData(record);
    record = new Record();
    record.setAttribute(FIELD_LABEL, "GeoNames");
    record.setAttribute(FIELD_REGEX, "geonames");
    dataSource.addData(record);
    record = new Record();
    record.setAttribute(FIELD_LABEL, "offline");
    record.setAttribute(FIELD_REGEX, "offline");
    dataSource.addData(record);

    return dataSource;
  }
View Full Code Here

Examples of com.sun.appserv.jdbc.DataSource

            throws java.sql.SQLException {

        java.sql.Connection rc = null;
        // resource is expected to be com.sun.appserv.jdbc.DataSource
        if (resource instanceof DataSource) {
            DataSource ds = (DataSource)resource;
            if (username == null) {
                rc = ds.getNonTxConnection();
            } else {
                rc = ds.getNonTxConnection(username, password);
            }
        } else {
            throw new JDOFatalInternalException(I18NHelper.getMessage(
                messages, "ejb.SunTransactionHelper.wrongdatasourcetype", //NOI18N
                resource.getClass().getName()));
View Full Code Here

Examples of com.uwyn.rife.database.Datasource

 
  private static DbQueryManagerCache  mCache = new DbQueryManagerCache();
 
  public static DatabaseSeen get()
  {
        Datasource datasource = Datasources.getRepInstance().getDatasource(Config.getRepInstance().getString("DRONE_DATASOURCE", Config.getRepInstance().getString("DATASOURCE")));
    return (DatabaseSeen)getInstance(MANAGER_PACKAGE_NAME, mCache, datasource);
  }
View Full Code Here

Examples of com.uwyn.rife.database.Datasource

 
  private static DbQueryManagerCache  mCache = new DbQueryManagerCache();
 
  public static DatabaseLogs get()
  {
        Datasource datasource = Datasources.getRepInstance().getDatasource(Config.getRepInstance().getString("DRONE_DATASOURCE", Config.getRepInstance().getString("DATASOURCE")));
    return (DatabaseLogs)getInstance(MANAGER_PACKAGE_NAME, mCache, datasource);
  }
View Full Code Here

Examples of com.uwyn.rife.database.Datasource

 
  private static DbQueryManagerCache  mCache = new DbQueryManagerCache();
 
  public static DatabaseFaqs get()
  {
        Datasource datasource = Datasources.getRepInstance().getDatasource(Config.getRepInstance().getString("DRONE_DATASOURCE", Config.getRepInstance().getString("DATASOURCE")));
    return (DatabaseFaqs)getInstance(MANAGER_PACKAGE_NAME, mCache, datasource);
  }
View Full Code Here

Examples of com.zycus.dotproject.util.DataSource

    }

    public void onSave() {
      boolean isAdd = false;
      if (dataSource == null) {
        dataSource = new DataSource();
        isAdd = true;
      }

      dataSource.setDataSourceName(dataSourceName.getText());
      dataSource.setSetverIPName(server.getText());
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.