java.lang.Object
org.seasar.doma.jdbc.AbstractSql<P>
- All Implemented Interfaces:
Sql<P>
- Direct Known Subclasses:
CallableSql,PreparedSql,ScriptCommand.ScriptSql
A skeletal implementation of the
Sql interface.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Stringprotected final SqlKindprotected final Stringprotected final Stringprotected final SqlLogType -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractSql(SqlKind kind, CharSequence rawSql, CharSequence formattedSql, String sqlFilePath, List<? extends P> parameters, SqlLogType sqlLogType, Function<String, String> commenter) -
Method Summary
-
Field Details
-
kind
-
rawSql
-
formattedSql
-
sqlFilePath
-
parameters
-
sqlLogType
-
-
Constructor Details
-
AbstractSql
protected AbstractSql(SqlKind kind, CharSequence rawSql, CharSequence formattedSql, String sqlFilePath, List<? extends P> parameters, SqlLogType sqlLogType, Function<String, String> commenter)
-
-
Method Details
-
getKind
Description copied from interface:SqlReturns the kind of the SQL.- Specified by:
getKindin interfaceSql<P extends SqlParameter>- Returns:
- the kind of the SQL
-
getRawSql
Description copied from interface:SqlReturns the raw SQL string.The bind variables are displayed as
?.- Specified by:
getRawSqlin interfaceSql<P extends SqlParameter>- Returns:
- the raw SQL string
-
getFormattedSql
Description copied from interface:SqlReturns the formatted SQL string.The bind variables are replaced with the string representations of the parameters.
- Specified by:
getFormattedSqlin interfaceSql<P extends SqlParameter>- Returns:
- the formatted SQL string
-
getSqlFilePath
Description copied from interface:SqlReturns the file path that contains this SQL.- Specified by:
getSqlFilePathin interfaceSql<P extends SqlParameter>- Returns:
- the file path that contains this SQL、or
nullif this SQL is auto-generated
-
getParameters
Description copied from interface:SqlReturns the parameter list.- Specified by:
getParametersin interfaceSql<P extends SqlParameter>- Returns:
- the parameter list
-
getSqlLogType
Description copied from interface:SqlReturns the type of the SQL log.- Specified by:
getSqlLogTypein interfaceSql<P extends SqlParameter>- Returns:
- the type of the SQL log
-
toString
-