Examples of NodeIdentifier


Examples of org.dbwiki.data.resource.NodeIdentifier

    while (rs.next()) {
      int versionNumber = rs.getInt(RelVersionColNumber);
      String versionName = rs.getString(RelVersionColName);
      User user = users.get(rs.getInt(RelVersionColUser));
      int nodeId = rs.getInt(RelVersionColNode);
      NodeIdentifier nid = null;
      if(nodeId != -1)
        nid = new NodeIdentifier(nodeId);
      Provenance provenance =
        ProvenanceFactory.getProvenance((byte)rs.getInt(RelVersionColProvenance),
            user, nid, rs.getString(RelVersionColSource));
      long createTime = rs.getLong(RelVersionColTime);
      this.add(new Version(versionNumber, versionName, createTime, provenance, this));
View Full Code Here

Examples of org.dbwiki.data.resource.NodeIdentifier

   */
 
  public RDBMSDatabaseAttributeNode(int id, AttributeSchemaNode schema, DatabaseGroupNode parent, TimeSequence timestamp, AnnotationList annotation, int pre, int post) {
    super(schema, parent, timestamp, annotation, pre, post);
   
    _identifier = new NodeIdentifier(id);
  }
View Full Code Here

Examples of org.dbwiki.data.resource.NodeIdentifier

  /*
   * Public Methods
   */
 
  public QueryResultSet execute() throws org.dbwiki.exception.WikiException {
    return new QueryResultSet(_database.get(new NodeIdentifier(_nodeID)));
  }
View Full Code Here

Examples of org.dbwiki.data.resource.NodeIdentifier

    return _wiki.layouter().displaySchemaNode(schema());
  }
 
  public ResourceIdentifier getIdentifierForParameterString(String parameterValue) throws org.dbwiki.exception.WikiException {
    try {
      return new NodeIdentifier(Integer.parseInt(parameterValue));
    } catch (java.lang.NumberFormatException exception) {
      throw new WikiRequestException(WikiRequestException.InvalidUrl, parameterValue);
    }
  }
View Full Code Here

Examples of org.dbwiki.data.resource.NodeIdentifier

        pStmt.setString(iParameter + 1, parameters.get(iParameter));
      }
      ResultSet rs = pStmt.executeQuery();
      RDBMSDatabaseListing content = this.content();
      while (rs.next()) {
        result.add(content.get(new NodeIdentifier(rs.getInt(1))));
      }
      rs.close();
      con.close();
    } catch (java.sql.SQLException sqlException) {
      throw new WikiFatalException(sqlException);
View Full Code Here

Examples of org.dbwiki.data.resource.NodeIdentifier

   
    return result;
  }
 
  public ResourceIdentifier getNodeIdentifierForURL(RequestURL url) throws org.dbwiki.exception.WikiException {
    return new NodeIdentifier(url);
  }
View Full Code Here

Examples of org.dbwiki.data.resource.NodeIdentifier

      try {
        Connection con = _connector.getConnection();
        Statement stmt = con.createStatement();
        ResultSet rs = stmt.executeQuery(sql);
        while (rs.next()) {
          NodeIdentifier identifier = new NodeIdentifier(rs.getInt(RelDataColEntry));
          result.add(entries.get(identifier));
        }
        rs.close();
        stmt.close();
        con.close();
View Full Code Here

Examples of org.dbwiki.data.resource.NodeIdentifier

   */
 
  public RDBMSDatabaseGroupNode(int id, GroupSchemaNode schema, DatabaseGroupNode parent, TimeSequence timestamp, AnnotationList annotation, int pre, int post) {
    super(schema, parent, timestamp, annotation, pre, post);
   
    _identifier = new NodeIdentifier(id);
  }
View Full Code Here

Examples of org.dbwiki.data.resource.NodeIdentifier

   */

  public RDBMSDatabaseTextNode(int id, DatabaseAttributeNode parent, TimeSequence timestamp, String value, AnnotationList annotation, int pre, int post) {
    super(parent, timestamp, value, annotation, pre, post);
   
    _identifier = new NodeIdentifier(id);
  }
View Full Code Here

Examples of org.geotools.caching.spatialindex.NodeIdentifier

   
   
    private void releaseLocks(){
      try {
        for (Iterator<NodeIdentifier> iterator = writelocks.iterator(); iterator.hasNext();) {
          NodeIdentifier type = (NodeIdentifier) iterator.next();
          try{
              type.writeUnLock();
          }catch (Exception ex){
          //    logger.log(Level.SEVERE, "Could not release write lock.", ex);
          }
        }
      } catch (Exception ex) {
          logger.log(Level.SEVERE, "Could not release write locks.", ex);
      }
      try {
        for (Iterator<NodeIdentifier> iterator = readlocks.iterator(); iterator.hasNext();) {
          NodeIdentifier type = (NodeIdentifier) iterator.next();
          try{
              type.readUnLock();
          }catch (Exception ex){
          //    logger.log(Level.SEVERE, "Could not release read lock.", ex);
          }
        }
      } catch (Exception ex) {
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.