パッケージ org.nkjmlab.sorm4j.sql
インタフェース ParameterizedSql
public interface ParameterizedSql
This class represents a SQL statement with ordered parameters.
- 作成者:
- nkjm
-
メソッドの概要
修飾子とタイプメソッド説明static StringembedParameter(String sql, Object... parameters) Embeds the given parameters to the give SQL string.static StringembedParameter(String sql, Map<String, Object> parameters) Embeds the given parameters to the give SQL string.Gets the SQL string after binding parameter.Object[]Gets this ordered parameters.getSql()Gets this SQL statement.static ParameterizedSqlCreatesParameterizedSqlobject of the given SQL string.static ParameterizedSqlCreatesParameterizedSqlobject of the given SQL string and parameters.static ParameterizedSqlParses the given SQL and ordered parameters which could include special parameters (e.g. list parameter and embedded parameter).static ParameterizedSqlParses the given SQL and named parameters which could include special parameters (e.g. list parameter and embedded parameter).
-
メソッドの詳細
-
getSql
String getSql()Gets this SQL statement.- 戻り値:
-
getParameters
Object[] getParameters()Gets this ordered parameters.- 戻り値:
-
getBindedSql
String getBindedSql()Gets the SQL string after binding parameter.- 戻り値:
-
of
CreatesParameterizedSqlobject of the given SQL string. When you use a SQL statement with parameter, useparse(java.lang.String, java.lang.Object...)method.- パラメータ:
sql- without parameter.- 戻り値:
-
of
CreatesParameterizedSqlobject of the given SQL string and parameters. The given parameters should be simple ordered parameters. When you use special parameters, useparse(java.lang.String, java.lang.Object...)method.- パラメータ:
sql-parameters- ordered parameters without special parameters (e.g. named parameter, list parameter and embedded parameter)- 戻り値:
-
parse
Parses the given SQL and ordered parameters which could include special parameters (e.g. list parameter and embedded parameter).- パラメータ:
sql-parameters-- 戻り値:
-
parse
Parses the given SQL and named parameters which could include special parameters (e.g. list parameter and embedded parameter).- パラメータ:
sql-parameters-- 戻り値:
-
embedParameter
Embeds the given parameters to the give SQL string.- パラメータ:
sql-parameters-- 戻り値:
-
embedParameter
Embeds the given parameters to the give SQL string.- パラメータ:
sql-parameters-- 戻り値:
-