com.frevvo.forms.client
E
- The specific Entry sub-class: e.g., FormTypeEntry.public class EntryHolder extends Object implements Serializable
FormTypeEntry
, SubmissionEntry
, etc
are not Serializable
. This class can wrapper an entry into a
serializable holder so it can be safely inserted into persistent stores (e.g.
file, db or an http session).
Note that in order to get a hold of the Entry you will need to provide a
FormsService
along with the getEntry(FormsService)
call.Constructor and Description |
---|
EntryHolder() |
EntryHolder(com.google.gdata.data.BaseEntry<?> entry) |
Modifier and Type | Method and Description |
---|---|
<E extends com.google.gdata.data.BaseEntry<E>> |
getEntry(FormsService fs,
Class<E> entryClass)
Get the entry associated with this holder.
|
public EntryHolder()
public EntryHolder(com.google.gdata.data.BaseEntry<?> entry)
entryClass
- entry
- public <E extends com.google.gdata.data.BaseEntry<E>> E getEntry(FormsService fs, Class<E> entryClass) throws IOException, com.google.gdata.util.ServiceException
FormsService
will be used
retrieve a fresh Entry from the server, which will then be cached for any
subsequent calls to this method.fs
- The FormsService
entryClass
- The specific BaseEntry
classBaseEntry
IOException
com.google.gdata.util.ServiceException
Copyright © 2006–2015 frevvo Inc. All rights reserved.