com.ninja_squad.dbsetup.bind
Class DefaultBinderConfiguration

java.lang.Object
  extended by com.ninja_squad.dbsetup.bind.DefaultBinderConfiguration
All Implemented Interfaces:
BinderConfiguration

public class DefaultBinderConfiguration
extends java.lang.Object
implements BinderConfiguration

Default implementation of BinderConfiguration, used by default by DbSetup.


Field Summary
static DefaultBinderConfiguration INSTANCE
          A shareable, reusable instance of this class.
 
Constructor Summary
protected DefaultBinderConfiguration()
          Constructor.
 
Method Summary
 Binder getBinder(java.sql.ParameterMetaData metadata, int param)
          Uses the parameter type of the given parameter and returns the following Binders depending on the type got from the metadata.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INSTANCE

public static final DefaultBinderConfiguration INSTANCE
A shareable, reusable instance of this class.

Constructor Detail

DefaultBinderConfiguration

protected DefaultBinderConfiguration()
Constructor. Protected because it doesn't make much sense to instantiate this class, but extending it can be useful.

Method Detail

getBinder

public Binder getBinder(java.sql.ParameterMetaData metadata,
                        int param)
                 throws java.sql.SQLException
Uses the parameter type of the given parameter and returns the following Binders depending on the type got from the metadata.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object