~sgdg/stado/stado

« back to all changes in this revision

Viewing changes to src/org/postgresql/stado/parser/SqlDescribeTable.java

  • Committer: Andrei Martsinchyk
  • Date: 2013-04-22 15:04:09 UTC
  • mfrom: (9.1.2 stado30)
  • Revision ID: andrei.martsinchyk@gmail.com-20130422150409-cv4i89c21bbgvby1
Merge in 3.0 branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
import org.postgresql.stado.metadata.scheduler.ILockCost;
36
36
import org.postgresql.stado.metadata.scheduler.LockSpecification;
37
37
import org.postgresql.stado.parser.core.syntaxtree.DescribeTable;
38
 
import org.postgresql.stado.parser.core.visitor.ObjectDepthFirst;
 
38
import org.postgresql.stado.parser.core.visitor.DepthFirstVoidArguVisitor;
39
39
import org.postgresql.stado.parser.handler.TableNameHandler;
40
40
 
41
41
 
42
 
public class SqlDescribeTable extends ObjectDepthFirst implements IXDBSql,
 
42
public class SqlDescribeTable extends DepthFirstVoidArguVisitor implements IXDBSql,
43
43
        IExecutable {
44
44
 
45
45
    private XDBSessionContext client;
51
51
    }
52
52
 
53
53
    @Override
54
 
    public Object visit(DescribeTable n, Object obj) {
55
 
        Object _ret = null;
 
54
    public void visit(DescribeTable n, Object obj) {
56
55
        n.f0.accept(this, obj);
57
56
        TableNameHandler aTableNameHandler = new TableNameHandler(client);
58
57
        n.f1.accept(aTableNameHandler, obj);
59
58
        tableName = aTableNameHandler.getTableName();
60
 
        return _ret;
61
 
 
62
59
    }
63
60
 
64
61
    /**
122
119
    public boolean needCoordinatorConnection() {
123
120
        return false;
124
121
    }
 
122
 
 
123
        @Override
 
124
        public boolean isReadOnly() {
 
125
                // TODO Auto-generated method stub
 
126
                return false;
 
127
        }
125
128
}