01: /*
02: * Created on Feb 20, 2004
03: */
04: package net.sourceforge.orbroker;
05:
06: /**
07: * @author Nils Kilden-Pedersen
08: */
09: class StaticStatement extends Statement {
10:
11: private final SQLParser parser;
12:
13: StaticStatement(String id, String statement,
14: ResultObjectDefinition resultObjectDef)
15: throws ConfigurationException {
16: super (id, resultObjectDef);
17: this .parser = new SQLParser(new StringBuffer(statement));
18: }
19:
20: /**
21: * @inheritDoc
22: * @see net.sourceforge.orbroker.Statement#getRunnableSQL(net.sourceforge.orbroker.ConnectionContext)
23: */
24: ImmutableSQL getRunnableSQL(ConnectionContext context)
25: throws BrokerException {
26: return this.parser.getRunnableStatement(context
27: .getTextReplacements());
28: }
29:
30: }
|