org.seasar.extension.jdbc.util
クラス BindVariableUtil

java.lang.Object
  拡張org.seasar.extension.jdbc.util.BindVariableUtil

public final class BindVariableUtil
extends Object

バインド変数用のユーティリティです。

作成者:
higa

メソッドの概要
static String getBindVariableText(Object bindVariable)
          バインド変数を文字列として返します。
static String getCompleteSql(String sql, Object[] args)
          バインド変数をSQLの中にリテラルで埋め込んだ完全なSQLを返します。
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

メソッドの詳細

getCompleteSql

public static String getCompleteSql(String sql,
                                    Object[] args)
バインド変数をSQLの中にリテラルで埋め込んだ完全なSQLを返します。

パラメータ:
sql - SQL
args - 引数
戻り値:
バインド変数をSQLの中にリテラルで埋め込んだ完全なSQL

getBindVariableText

public static String getBindVariableText(Object bindVariable)
バインド変数を文字列として返します。

パラメータ:
bindVariable - バインド変数
戻り値:
バインド変数の文字列表現


Copyright ? 2004-2007 The Seasar Foundation. All Rights Reserved.