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