1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package org.apache.hadoop.hbase.hbql.statement;
22
23 import org.apache.hadoop.hbase.hbql.client.HBqlException;
24 import org.apache.hadoop.hbase.hbql.impl.HConnectionImpl;
25
26 public abstract class StatementWithParameters extends StatementWithMapping {
27
28 private final NamedParameters namedParameters = new NamedParameters();
29
30 public StatementWithParameters(final StatementPredicate predicate, final String mappingName) {
31 super(predicate, mappingName);
32 }
33
34 public NamedParameters getNamedParameters() {
35 return this.namedParameters;
36 }
37
38 abstract public int setStatementParameter(String name, Object val) throws HBqlException;
39
40 abstract public void validate(HConnectionImpl connection) throws HBqlException;
41
42 abstract public void validateTypes() throws HBqlException;
43
44 abstract public void resetParameters();
45 }