public class ParsedParameters extends Object
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
getParameterCount() |
List<String> |
getParameterNames() |
int |
hashCode() |
boolean |
isPositional() |
static ParsedParameters |
named(List<String> names)
A static factory of named
ParsedParameters instances. |
static ParsedParameters |
positional(int count)
A static factory of positional
ParsedParameters instances. |
String |
toString() |
public int getParameterCount()
public List<String> getParameterNames()
public boolean isPositional()
public static ParsedParameters named(List<String> names)
ParsedParameters instances.
List given in argument must contain parameter names from the
related statement. They must be bare names, free of SQL
variable processing syntax such as a prefixed colon or other
delimiters.names - the parameter names from SQL statementParsedParameters instanceIllegalArgumentException - if names list contains positional parameterpublic static ParsedParameters positional(int count)
ParsedParameters instances.
The count given in the argument must indicate how many positional
parameters are available in the statement.count - the number of positional parameters in statementParsedParameters instanceCopyright © 2019. All rights reserved.