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
,java.lang.AutoCloseable
public class ResultBatch extends io.netty.util.AbstractReferenceCounted implements java.lang.AutoCloseable
-
-
Constructor Summary
Constructors Constructor Description ResultBatch(java.lang.String command, java.lang.Long rowsAffected, java.lang.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()
java.lang.String
getCommand()
ResultField[]
getFields()
java.lang.Long
getInsertedOid()
java.lang.Long
getRowsAffected()
boolean
hasRows()
boolean
hasRowsAffected()
boolean
isEmpty()
RowDataSet
takeRows()
java.lang.String
toString()
ResultBatch
touch(java.lang.Object hint)
-
-
-
Constructor Detail
-
ResultBatch
public ResultBatch(java.lang.String command, java.lang.Long rowsAffected, java.lang.Long insertedOid, ResultField[] fields, RowDataSet rows)
-
-
Method Detail
-
hasRows
public boolean hasRows()
-
isEmpty
public boolean isEmpty()
-
getCommand
public java.lang.String getCommand()
-
hasRowsAffected
public boolean hasRowsAffected()
-
getRowsAffected
public java.lang.Long getRowsAffected()
-
getInsertedOid
public java.lang.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(java.lang.Object hint)
- Specified by:
touch
in interfaceio.netty.util.ReferenceCounted
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-