org.red5.io.object
public class RecordSet extends Object
For last mode, use page size property to specify maximum number of rows on one page
Constructor and Description |
---|
RecordSet(Input input)
Creates recordset from Input object
|
Modifier and Type | Method and Description |
---|---|
List<String> |
getColumnNames()
Return a list containing the names of the columns in the recordset.
|
List<Object> |
getItemAt(int index)
Return a specified item from the recordset.
|
int |
getLength()
Get the total number of items.
|
int |
getNumberAvailable()
Get the number of items already received from the server.
|
boolean |
isFullyPopulated()
Check if all items are available on the client.
|
Map<String,Object> |
serialize()
Return Map that can be serialized as result.
|
void |
setDeliveryMode(String mode)
Set the mode for fetching paged results.
|
void |
setDeliveryMode(String mode,
int pageSize)
Set the mode for fetching paged results with given max page size.
|
void |
setDeliveryMode(String mode,
int pageSize,
int prefetchCount)
Set the mode for fetching paged results with given max page size and number of prefetched pages.
|
void |
setRemotingClient(RemotingClient client)
Set the remoting client to use for retrieving of paged results.
|
public RecordSet(Input input)
input
- inputpublic void setRemotingClient(RemotingClient client)
client
- Remoting client that works with this Recordsetpublic void setDeliveryMode(String mode)
mode
- Mode for fetching of resultspublic void setDeliveryMode(String mode, int pageSize)
mode
- Mode for fetching of resultspageSize
- Max page sizepublic void setDeliveryMode(String mode, int pageSize, int prefetchCount)
mode
- Mode for fetching of resultspageSize
- Max page sizeprefetchCount
- Number of prefetched pages (not implemented yet)public List<String> getColumnNames()
public List<Object> getItemAt(int index)
index
- Item indexpublic int getLength()
public int getNumberAvailable()
public boolean isFullyPopulated()
Copyright © 2006-2012 The Red5 Project