public class ColumnsMap
extends java.lang.Object
This class is useful for queries producing results similar to ResultSet.
Constructor and Description |
---|
ColumnsMap() |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.Integer,java.lang.String> |
asIndexNameMap()
Converts this mapping to index->name column map.
|
java.lang.Integer |
find(java.lang.String name)
Finds column index by name.
|
void |
registerColumn(java.lang.String name,
int index)
Registers column to for later lookup.
|
public void registerColumn(java.lang.String name, int index) throws java.lang.IllegalArgumentException
name
- column name.index
- positive column index.java.lang.IllegalArgumentException
- if index has illegal valuepublic java.lang.Integer find(java.lang.String name)
name
- column name.public java.util.Map<java.lang.Integer,java.lang.String> asIndexNameMap()
Copyright © Copyright 2006-2019 The Scriptella Project Team.