Package io.ebeaninternal.server.core
Class AbstractSqlQueryRequest
- java.lang.Object
-
- io.ebeaninternal.server.core.AbstractSqlQueryRequest
-
- Direct Known Subclasses:
DtoQueryRequest
,RelationalQueryRequest
public abstract class AbstractSqlQueryRequest extends Object
Wraps the objects involved in executing a SQL / Relational Query.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Close the underlying resources.void
endTransIfRequired()
End the transaction if it was locally created.void
executeSql(Binder binder, SpiQuery.Type type)
Prepare and execute the SQL using the Binder.String
getBindLog()
Return the bindLog for this request.EbeanServer
getServer()
String
getSql()
Return the SQL executed for this query.SpiTransaction
getTransaction()
void
initTransIfRequired()
Create a transaction if none currently exists.boolean
isLogSql()
boolean
next()
Return true if we can navigate to the next row.
-
-
-
Method Detail
-
initTransIfRequired
public void initTransIfRequired()
Create a transaction if none currently exists.
-
endTransIfRequired
public void endTransIfRequired()
End the transaction if it was locally created.
-
getServer
public EbeanServer getServer()
-
getTransaction
public SpiTransaction getTransaction()
-
isLogSql
public boolean isLogSql()
-
getBindLog
public String getBindLog()
Return the bindLog for this request.
-
next
public boolean next() throws SQLException
Return true if we can navigate to the next row.- Throws:
SQLException
-
close
public void close()
Close the underlying resources.
-
executeSql
public void executeSql(Binder binder, SpiQuery.Type type) throws SQLException
Prepare and execute the SQL using the Binder.- Throws:
SQLException
-
-