Package com.impossibl.postgres.protocol
Class ResultBatch
- java.lang.Object
-
- io.netty.util.AbstractReferenceCounted
-
- com.impossibl.postgres.protocol.ResultBatch
-
- All Implemented Interfaces:
io.netty.util.ReferenceCounted
,AutoCloseable
public class ResultBatch extends io.netty.util.AbstractReferenceCounted implements AutoCloseable
-
-
Constructor Summary
Constructors Constructor Description ResultBatch(String command, Long rowsAffected, Long insertedOid, ResultField[] fields, RowDataSet rows)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RowDataSet
borrowRows()
void
clearRowsAffected()
void
close()
protected void
deallocate()
String
getCommand()
ResultField[]
getFields()
Long
getInsertedOid()
Long
getRowsAffected()
boolean
hasRows()
boolean
hasRowsAffected()
boolean
isEmpty()
RowDataSet
takeRows()
String
toString()
ResultBatch
touch(Object hint)
-
-
-
Constructor Detail
-
ResultBatch
public ResultBatch(String command, Long rowsAffected, Long insertedOid, ResultField[] fields, RowDataSet rows)
-
-
Method Detail
-
hasRows
public boolean hasRows()
-
isEmpty
public boolean isEmpty()
-
getCommand
public String getCommand()
-
hasRowsAffected
public boolean hasRowsAffected()
-
getRowsAffected
public Long getRowsAffected()
-
getInsertedOid
public Long getInsertedOid()
-
getFields
public ResultField[] getFields()
-
borrowRows
public RowDataSet borrowRows()
-
takeRows
public RowDataSet takeRows()
-
clearRowsAffected
public void clearRowsAffected()
-
deallocate
protected void deallocate()
- Specified by:
deallocate
in classio.netty.util.AbstractReferenceCounted
-
touch
public ResultBatch touch(Object hint)
- Specified by:
touch
in interfaceio.netty.util.ReferenceCounted
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
-
-