Package com.impossibl.postgres.jdbc
Interface Query
-
- All Known Implementing Classes:
DirectQuery
,PreparedQuery
public interface Query
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
Query.Status
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static Query
create(String sqlText)
static Query
create(String sqlText, FieldFormatRef[] parameterFormats, io.netty.buffer.ByteBuf[] parameterBuffers)
static Query
create(String statement, FieldFormatRef[] parameterFormats, io.netty.buffer.ByteBuf[] parameterBuffers, ResultField[] resultFields)
static Query
create(String statement, ResultField[] resultFields)
void
dispose(PGDirectConnection connection)
SQLWarning
execute(PGDirectConnection connection)
List<ResultBatch>
getResultBatches()
Query.Status
getStatus()
Long
getTimeout()
void
setMaxRows(int maxRows)
void
setTimeout(Long timeout)
-
-
-
Method Detail
-
getStatus
Query.Status getStatus()
-
getTimeout
Long getTimeout()
-
setTimeout
void setTimeout(Long timeout)
-
setMaxRows
void setMaxRows(int maxRows)
-
getResultBatches
List<ResultBatch> getResultBatches()
-
execute
SQLWarning execute(PGDirectConnection connection) throws SQLException
- Throws:
SQLException
-
dispose
void dispose(PGDirectConnection connection) throws SQLException
- Throws:
SQLException
-
create
static Query create(String sqlText, FieldFormatRef[] parameterFormats, io.netty.buffer.ByteBuf[] parameterBuffers)
-
create
static Query create(String statement, ResultField[] resultFields)
-
create
static Query create(String statement, FieldFormatRef[] parameterFormats, io.netty.buffer.ByteBuf[] parameterBuffers, ResultField[] resultFields)
-
-