public class ParsedStmt extends Object
?anchorand
{anchor} anchoring conventions. This type also includes
all of the properties from the enclosed StmtDef, in addition to a couple of
helpers. It should allow programmers to project this type directly from an
existing StmtDef as a substitute.| Constructor and Description |
|---|
ParsedStmt(StmtDef stmtDef)
Construct a new ParsedStatement from the provided stmtDef and anchor token.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
getBindings() |
Set<String> |
getExtraBindings()
The list of binding names returned by this method does not
constitute an error.
|
Set<String> |
getMissingBindings()
Returns a list of binding names which were referenced
in either
|
String |
getName() |
Map<String,String> |
getParams() |
String |
getPositionalStatement(String anchorToken)
Return the statement that can be used as-is by any driver specific version.
|
Map<String,String> |
getSpecificBindings()
Return a map of bindings which were referenced in the statement.
|
String |
getStmt() |
Map<String,String> |
getTags() |
boolean |
hasError() |
ParsedStmt |
orError() |
String |
toString() |
public ParsedStmt(StmtDef stmtDef)
stmtDef - An existing statement def as read from the YAML API.public ParsedStmt orError()
public boolean hasError()
public Set<String> getExtraBindings()
{anchor} or ?anchorform.
public Set<String> getMissingBindings()
{anchor} or ?anchorform, but which were not present in the provided bindings map. If any binding names are present in the returned set, then this binding will not be usable.
public Map<String,String> getSpecificBindings()
public String getPositionalStatement(String anchorToken)
anchorToken - The token which is to be used as a positional place holderCopyright © 2018. All rights reserved.