Modifier and Type | Method and Description |
---|---|
static PrepareStatement |
prepare(Statement statement)
Construct a
PrepareStatement from a select-like Statement . |
String |
toString() |
public static PrepareStatement prepare(Statement statement)
Construct a PrepareStatement
from a select-like Statement
.
Note that passing a PrepareStatement
will return it directly, whereas passing a QueryPlan
will result in an IllegalArgumentException
.
statement
- the Statement
to prepare.IllegalArgumentException
- when statement cannot be prepared.Copyright © 2014 Couchbase, Inc.