コード例 #1
0
  /**
   * Accept the visitor for all visitable children of this node.
   *
   * @param v the visitor
   * @exception StandardException on error
   */
  void acceptChildren(Visitor v) throws StandardException {
    super.acceptChildren(v);

    if (tableElementList != null) {
      tableElementList.accept(v);
    }
  }
コード例 #2
0
ファイル: CreateSequenceNode.java プロジェクト: voole/Oceanus
  void acceptChildren(Visitor v) throws StandardException {
    super.acceptChildren(v);

    if (storageFormat != null) {
      storageFormat = (StorageFormatNode) storageFormat.accept(v);
    }
  }
コード例 #3
0
ファイル: CreateSequenceNode.java プロジェクト: voole/Oceanus
  public void printSubNodes(int depth) {
    super.printSubNodes(depth);

    if (storageFormat != null) {
      printLabel(depth, "storageFormat: ");
      storageFormat.treePrint(depth + 1);
    }
  }
コード例 #4
0
ファイル: RenameNode.java プロジェクト: tt5753/openclouddb
  /** Fill this node with a deep copy of the given node. */
  public void copyFrom(QueryTreeNode node) throws StandardException {
    super.copyFrom(node);

    RenameNode other = (RenameNode) node;
    this.newTableName =
        (TableName) getNodeFactory().copyNode(other.newTableName, getParserContext());
    this.oldObjectName = other.oldObjectName;
    this.newObjectName = other.newObjectName;
    this.usedAlterTable = other.usedAlterTable;
    this.renamingWhat = other.renamingWhat;
  }
コード例 #5
0
ファイル: CreateSequenceNode.java プロジェクト: voole/Oceanus
  /** Fill this node with a deep copy of the given node. */
  public void copyFrom(QueryTreeNode node) throws StandardException {
    super.copyFrom(node);

    CreateSequenceNode other = (CreateSequenceNode) node;
    this.sequenceName =
        (TableName) getNodeFactory().copyNode(other.sequenceName, getParserContext());
    this.dataType = other.dataType;
    this.startWith = other.startWith;
    this.incrementBy = other.incrementBy;
    this.maxValue = other.maxValue;
    this.minValue = other.minValue;
    this.isCycle = other.isCycle;
    this.storageFormat =
        (StorageFormatNode) getNodeFactory().copyNode(other.storageFormat, getParserContext());
  }