com.opengamma.elsql
Class SpringSqlParams

java.lang.Object
  extended by com.opengamma.elsql.SpringSqlParams
All Implemented Interfaces:
SqlParams

public final class SpringSqlParams
extends Object
implements SqlParams

Provides access to SQL parameters from Spring.

This class has a dependency on the Spring framework.


Constructor Summary
SpringSqlParams(org.springframework.jdbc.core.namedparam.SqlParameterSource source)
          Creates an instance based on a source.
 
Method Summary
 boolean contains(String variable)
          Checks whether the variable exists.
 Object get(String variable)
          Gets the variable, returning null if not found.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpringSqlParams

public SpringSqlParams(org.springframework.jdbc.core.namedparam.SqlParameterSource source)
Creates an instance based on a source.

Parameters:
source - the source
Method Detail

contains

public boolean contains(String variable)
Description copied from interface: SqlParams
Checks whether the variable exists.

Specified by:
contains in interface SqlParams
Parameters:
variable - the variable
Returns:
true if it exists

get

public Object get(String variable)
Description copied from interface: SqlParams
Gets the variable, returning null if not found.

Specified by:
get in interface SqlParams
Parameters:
variable - the variable
Returns:
the value associated with the variable


Copyright 2009-Present by OpenGamma Inc. and individual contributors, released under the Apache License Version 2.0