Package io.ebean.service
Interface SpiRawSqlService
-
public interface SpiRawSqlService
Service provided by Ebean for parsing and column mapping raw SQL queries.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RawSqlBuilder
parsed(String sql)
Parse the SQL determining column mapping.RawSql
resultSet(ResultSet resultSet, String... propertyNames)
Create based on a JDBC ResultSet.SqlRow
sqlRow(ResultSet resultSet, String dbTrueValue, boolean binaryOptimizedUUID)
Create based on a JDBC ResultSet.RawSqlBuilder
unparsed(String sql)
Unparsed SQL so explicit column mapping expected.
-
-
-
Method Detail
-
resultSet
RawSql resultSet(ResultSet resultSet, String... propertyNames)
Create based on a JDBC ResultSet.
-
parsed
RawSqlBuilder parsed(String sql)
Parse the SQL determining column mapping.
-
unparsed
RawSqlBuilder unparsed(String sql)
Unparsed SQL so explicit column mapping expected.
-
sqlRow
SqlRow sqlRow(ResultSet resultSet, String dbTrueValue, boolean binaryOptimizedUUID) throws SQLException
Create based on a JDBC ResultSet.- Parameters:
resultSet
- The ResultSet row to read as a SqlRowdbTrueValue
- The DB true valuebinaryOptimizedUUID
- Flag set to true if the UUID value is stored as optimised binary(16)- Throws:
SQLException
-
-