|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.opengamma.elsql.MapSqlParams
public final class MapSqlParams
Provides access to SQL parameters from a map.
| Constructor Summary | |
|---|---|
MapSqlParams(Map<String,Object> map)
Creates an instance based on a map. |
|
MapSqlParams(String key,
Object value)
Creates an instance based on one key-value pair. |
|
| Method Summary | |
|---|---|
boolean |
contains(String variable)
Checks whether the variable exists. |
Object |
get(String variable)
Gets the variable, returning null if not found. |
MapSqlParams |
with(String key,
Object value)
Returns a new instance with the specified key-value pair added. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MapSqlParams(Map<String,Object> map)
map - the map, which is assigned, not copied
public MapSqlParams(String key,
Object value)
key - the keyvalue - the value| Method Detail |
|---|
public MapSqlParams with(String key,
Object value)
This copies the internal map and calls Map.put(Object, Object).
key - the key to addvalue - the value to add
public boolean contains(String variable)
SqlParams
contains in interface SqlParamsvariable - the variable
public Object get(String variable)
SqlParams
get in interface SqlParamsvariable - the variable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||