Package org.dbwiki.data.database

Source Code of org.dbwiki.data.database.ResultAttributeNode

package org.dbwiki.data.database;

import org.dbwiki.data.annotation.AnnotationList;
import org.dbwiki.data.resource.NodeIdentifier;
import org.dbwiki.data.schema.AttributeSchemaNode;
import org.dbwiki.data.time.TimeSequence;
import org.dbwiki.driver.rdbms.DatabaseConstants;
import org.dbwiki.driver.rdbms.RDBMSDatabaseTextNode;

public class ResultAttributeNode extends DatabaseAttributeNode {
  public ResultAttributeNode(AttributeSchemaNode entity, TimeSequence timestamp) {
    // FIXME: Pre/post numbers for result attribute nodes are nonsense and should never be used
    super(entity, null, timestamp, new AnnotationList(),-1,-1);
  }
 
  @Override
  public void add(String value, TimeSequence timestamp, int pre, int post) {
    this.value().add(new RDBMSDatabaseTextNode(DatabaseConstants.RelDataColIDValUnknown, this, timestamp, value,pre,post));
  }

 
  public NodeIdentifier identifier() {
    return new NodeIdentifier();
  }

}
TOP

Related Classes of org.dbwiki.data.database.ResultAttributeNode

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.