com.onewebsql.util.jdbc
Class NoOpParameterHandler

java.lang.Object
  extended by com.onewebsql.util.jdbc.NoOpParameterHandler
All Implemented Interfaces:
ParameterHandler<Object>

public class NoOpParameterHandler
extends Object
implements ParameterHandler<Object>

Implementation of the ParameterHandler interface which does not bind any parameters.


Field Summary
static NoOpParameterHandler INSTANCE
          Instance of the class so that you don't have to create several objects.
 
Constructor Summary
NoOpParameterHandler()
          Creates a new NoOpParameterHandler object.
 
Method Summary
 void bindParameters(PreparedStatement preparedStatement, Object parameters)
          Binds the specified parameters (using the methods set<Type>(int index, ...)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final NoOpParameterHandler INSTANCE
Instance of the class so that you don't have to create several objects.

Constructor Detail

NoOpParameterHandler

public NoOpParameterHandler()
Creates a new NoOpParameterHandler object.

Method Detail

bindParameters

public void bindParameters(PreparedStatement preparedStatement,
                           Object parameters)
                    throws SQLException
Description copied from interface: ParameterHandler
Binds the specified parameters (using the methods set<Type>(int index, ...)) to the specified PreparedStatement.

Specified by:
bindParameters in interface ParameterHandler<Object>
Parameters:
preparedStatement - SQL statement
parameters - parameters to be bound
Throws:
SQLException - if an error occurs while binding parameters


Copyright © 2011-2013 e-point SA. All Rights Reserved.