net.mlw.vlh.adapter.jdbc.util.setter
Class StringArraySetter

java.lang.Object
  extended bynet.mlw.vlh.adapter.jdbc.util.setter.AbstractSetter
      extended bynet.mlw.vlh.adapter.jdbc.util.setter.AbstractArraySetter
          extended bynet.mlw.vlh.adapter.jdbc.util.setter.StringArraySetter
All Implemented Interfaces:
Setter

public class StringArraySetter
extends AbstractArraySetter

Consumes a String[] and sets multiple String(s) on the Statement.

Version:
$Revision: 1.6 $ $Date: 2005/12/19 10:58:01 $
Author:
Matthew L. Wilson

Constructor Summary
StringArraySetter()
           
 
Method Summary
 String getReplacementString(Object value)
           
 int set(PreparedStatement query, int index, Object value)
          Set the object on the given query.
 void setToken(String token)
           
 
Methods inherited from class net.mlw.vlh.adapter.jdbc.util.setter.AbstractArraySetter
isUseBindVarables, setUseBindVarables
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringArraySetter

public StringArraySetter()
Method Detail

getReplacementString

public String getReplacementString(Object value)
Specified by:
getReplacementString in interface Setter
Overrides:
getReplacementString in class AbstractArraySetter
See Also:
Setter.getReplacementString(java.lang.Object)

set

public int set(PreparedStatement query,
               int index,
               Object value)
        throws SQLException,
               ParseException
Description copied from interface: Setter
Set the object on the given query.

Parameters:
query - The PreparedStatement.
index - The name of the argument
value - The value to be set
Throws:
ParseException - If an error occurs.
SQLException - If an error occurs.
See Also:
Setter.set(java.sql.PreparedStatement, int, java.lang.Object)

setToken

public void setToken(String token)
Parameters:
token - The token to set.


Copyright © 2003-2006 mlavilson. All Rights Reserved.