|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.red5.io.object.RecordSet
public class RecordSet
Read only RecordSet object that might be received through remoting calls. There are 3 types of data fetching:
For last mode, use page size property to specify maximum number of rows on one page
Constructor Summary | |
---|---|
RecordSet(Input input)
Creates recordset from Input object |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RecordSet(Input input)
input
- inputMethod Detail |
---|
public 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 index
public int getLength()
public int getNumberAvailable()
public boolean isFullyPopulated()
public Map<String,Object> serialize()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |