public class NativeQuery extends Object
Modifier and Type | Field and Description |
---|---|
int[] |
bindPositions |
String |
nativeSql |
Constructor and Description |
---|
NativeQuery(String nativeSql) |
NativeQuery(String nativeSql,
int[] bindPositions) |
Modifier and Type | Method and Description |
---|---|
static String |
bindName(int index)
Returns $1, $2, etc names of bind variables used by backend.
|
String |
toString(ParameterList parameters)
Stringize this query to a human-readable form, substituting particular parameter values for
parameter placeholders.
|
public final String nativeSql
public final int[] bindPositions
public NativeQuery(String nativeSql)
public NativeQuery(String nativeSql, int[] bindPositions)
public String toString(ParameterList parameters)
parameters
- a ParameterList returned by this Query's Query.createParameterList()
method, or null
to leave the parameter placeholders unsubstituted.public static String bindName(int index)
index
- index of a bind variableCopyright © 2016 PostgreSQL Global Development Group. All rights reserved.