Examples of Record


Examples of org.onebusaway.transit_data.model.realtime.CurrentVehicleEstimateQueryBean.Record

      List<CurrentVehicleEstimateBean> beans) {

    if (query.getVehicleId() == null)
      return false;

    Record record = records.get(records.size() - 1);

    AgencyAndId vehicleId = AgencyAndIdLibrary.convertFromString(query.getVehicleId());
    BlockLocation location = _blockLocationService.getLocationForVehicleAndTime(
        vehicleId, new TargetTime(record.getTimestamp()));

    if (location == null)
      return false;

    double d = SphericalGeometryLibrary.distance(record.getLocation(),
        location.getLocation());
    double p = _realTimeLocationDeviationModel.probability(d);

    if (p < _shortCutProbability)
      return false;
View Full Code Here

Examples of org.openoffice.xmerge.converter.palm.Record

            traverseBody(node);
        }

        // create a PalmDB object and ConvertData object.
        //
        Record records[] = encoder.getRecords();

        ConvertData cd = new ConvertData();
        PalmDocument palmDoc = new PalmDocument(docName,
            PdbUtil.intID("WrdS"), PdbUtil.intID("BDOC"), 0,
            PalmDB.PDB_HEADER_ATTR_BACKUP, records);
View Full Code Here

Examples of org.prevayler.demos.scalability.Record

    try {
      selectStatement.setString(1, name);
      ResultSet resultSet = selectStatement.executeQuery();

      while (resultSet.next()) {
        list.add(new Record(resultSet.getLong(1), name, resultSet.getString(2), resultSet.getBigDecimal(3), resultSet.getBigDecimal(4), resultSet.getDate(5), resultSet.getDate(6)));
      }

    } catch (SQLException sqlex) {
      dealWithSQLException(sqlex, "selecting record from " + table());
    }
View Full Code Here

Examples of org.smpp.smscsim.util.Record

   * @return status code of the authentication; ESME_ROK if authentication
   *         passed
   */
  private int checkIdentity(BindRequest request) {
    int commandStatus = Data.ESME_ROK;
    Record user = users.find(SYSTEM_ID_ATTR, request.getSystemId());
    if (user != null) {
      String password = user.getValue(PASSWORD_ATTR);
      if (password != null) {
        if (!request.getPassword().equals(password)) {
          commandStatus = Data.ESME_RINVPASWD;
          debug.write("system id " + request.getSystemId() + " not authenticated. Invalid password.");
          display("not authenticated " + request.getSystemId() + " -- invalid password");
View Full Code Here

Examples of org.sonatype.tests.http.server.jetty.behaviour.Record

  private Server server;

  public RepositoryRequestAsExpiredTest() throws Exception {
    // just a dummy server doing 404 all the time
    // it is the request we are interested in
    this.record = new Record();
    this.server =
        Server.withPort(0).serve("/").withBehaviours(record, Behaviours.error(404, "don't bother yourself"));
    server.start();
  }
View Full Code Here

Examples of org.tmatesoft.hg.repo.HgStatusCollector.Record

    repoLock.acquire();
    try {
      int[] parentRevs = new int[2];
      detectParentFromDirstate(parentRevs);
      HgWorkingCopyStatusCollector sc = new HgWorkingCopyStatusCollector(repo);
      Record status = sc.status(HgRepository.WORKING_COPY);
      if (status.getModified().size() == 0 && status.getAdded().size() == 0 && status.getRemoved().size() == 0) {
        newRevision = Nodeid.NULL;
        return new Outcome(Kind.Failure, "nothing to add");
      }
      final Internals implRepo = Internals.getInstance(repo);
      CommitFacility cf = new CommitFacility(implRepo, parentRevs[0], parentRevs[1]);
      for (Path m : status.getModified()) {
        HgDataFile df = repo.getFileNode(m);
        cf.add(df, new WorkingCopyContent(df));
      }
      for (Path a : status.getAdded()) {
        HgDataFile df = repo.getFileNode(a); // TODO need smth explicit, like repo.createNewFileNode(Path) here
        // XXX might be an interesting exercise not to demand a content supplier, but instead return a "DataRequester"
        // object, that would indicate interest in data, and this code would "push" it to requester, so that any exception
        // is handled here, right away, and won't need to travel supplier and CommitFacility. (although try/catch inside
        // supplier.read (with empty throws declaration)
        cf.add(df, new FileContentSupplier(repo, a));
      }
      for (Path r : status.getRemoved()) {
        HgDataFile df = repo.getFileNode(r);
        cf.forget(df);
      }
      cf.branch(detectBranch());
      cf.user(detectUser());
View Full Code Here

Examples of org.tmatesoft.hg.test.LogOutputParser.Record

    final List<Record> fname2Follow = new LinkedList<LogOutputParser.Record>(changelogParser.getResult());
    changelogParser.reset();
    eh.run("hg", "log", "--debug", fname2, "--cwd", repo.getLocation());
    // fname2Follow.retainAll(changelogParser.getResult());
    for (Iterator<Record> it = fname2Follow.iterator(); it.hasNext();) {
      Record r = it.next();
      boolean belongsToSoleFname2History = false;
      for (Record d : changelogParser.getResult()) {
        if (d.changesetIndex == r.changesetIndex) {
          assert d.changesetNodeid.equals(r.changesetNodeid) : "[sanity]";
          belongsToSoleFname2History = true;
View Full Code Here

Examples of org.xbill.DNS.Record

      }
    }
    if ((flags & FLAG_SIGONLY) == 0) {
      Iterator<?> it = rrset.rrs();
      while (it.hasNext()) {
        Record r = (Record) it.next();
        if (r.getName().isWild() && !name.isWild()) {
          r = r.withName(name);
        }
        response.addRecord(r, section);
      }
    }
    if ((flags & (FLAG_SIGONLY | FLAG_DNSSECOK)) != 0) {
      Iterator<?> it = rrset.sigs();
      while (it.hasNext()) {
        Record r = (Record) it.next();
        if (r.getName().isWild() && !name.isWild()) {
          r = r.withName(name);
        }
        response.addRecord(r, section);
      }
    }
  }
View Full Code Here

Examples of pt.opensoft.dbaccess.Record

* User: Ricardo Caetano
*/
public abstract class OracleSequence {
 
    public long nextValue(DBConnect dbc) throws SQLException {
      Record view = new View().getRecord(dbc, "SELECT " + getName() + ".NEXTVAL FROM DUAL");
      return view.getLongValue("NEXTVAL");
    }
View Full Code Here

Examples of pt.opensoft.field.Record

  private Map createResource (String[] resourcesNames, IBatchProcessor ibProcessor) throws IOException {

    Map resources = new HashMap();
    String type = null;
    Parameters parameters = ibProcessor.getProcessosParameters();
    Record resourceConfigParams = new Record();
    String resourceName;
    StringBuffer resourceFullName = new StringBuffer();

    try {
      for (int i = 0; i < resourcesNames.length; i++) {
        resourceName = resourcesNames[i];
        resourceFullName.append("resource.").append(resourceName).append(".");

        type = parameters.getString(resourceFullName + "type");
        Logger _logger = Logger.getDefault().getWrapper();

        resourceConfigParams.setValue("loggerInstance", _logger);

        Vector properties = parameters.getVector(resourceFullName + "properties");
        for (int j = 0; j < properties.size(); j++) {
          String name = (String) properties.get(j);
          String value = parameters.getString(resourceFullName + name);
          if (value == null) continue;
          resourceConfigParams.setValue(name, value);
        }

        Class newClass = Class.forName(type);
        Resource res = (Resource) newClass.newInstance();
        res.setId(resourceName);
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.