public class ParameterMapIndex extends Object
Constructor and Description |
---|
ParameterMapIndex() |
Modifier and Type | Method and Description |
---|---|
void |
addParameter(String parameterKey,
int charPosition)
Adds a parameter, adding to the current index.
|
void |
addParameters(String parameterKey,
ParameterLocation location)
Adds a parameter and a list of its indexes
|
int |
getIndex()
The current parameter index
|
List<Integer> |
getParameterIndexes(String paramKey) |
ParameterLocation |
getParameterLocation(String paramKey)
Get the
ParameterLocation . |
List<Integer> |
getSqlCharPositions(String paramKey) |
void |
setIndex(int index)
Set the index
|
public void addParameter(String parameterKey, int charPosition)
parameterKey
- index
- public void addParameters(String parameterKey, ParameterLocation location)
paramKey
- indexes
- public List<Integer> getParameterIndexes(String paramKey)
paramKey
- public List<Integer> getSqlCharPositions(String paramKey)
paramKey
- public ParameterLocation getParameterLocation(String paramKey)
ParameterLocation
.paramKey
- ParameterLocation
public int getIndex()
public void setIndex(int index)
index
- Copyright © 2010–2015. All rights reserved.