|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sptci.echo2demo.InputFormModelFactory
public class InputFormModelFactory
A factory class for abstracting interactions between the
InputFormModel JDO JavaBean and the JDO data store.
| Field Summary | |
|---|---|
private static java.util.logging.Logger |
logger
The logger used to log errors/warnings to. |
private static InputFormModelFactory |
singleton
The singleton instance of the class. |
| Constructor Summary | |
|---|---|
protected |
InputFormModelFactory()
Default constructor. |
| Method Summary | |
|---|---|
void |
delete(InputFormModel inputFormData)
Delete the specified instance of InputFormModel
from the JDO data store. |
java.util.Collection<InputFormModel> |
fetchAll()
Return all the instance of InputFormModel
from the JDO data store. |
InputFormModel |
fetchByIndex(int index)
Return the object that occupies the specified index number in a list that contains all the object instances. |
static InputFormModelFactory |
getInstance()
Return the singleton instance of the class. |
int |
lastIndex()
Return the list index number of the last record in a list that contains all the objects from the data store. |
void |
save(InputFormModel inputFormData)
Save the specified instance of InputFormModel
to the JDO data store. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final InputFormModelFactory singleton
private static final java.util.logging.Logger logger
| Constructor Detail |
|---|
protected InputFormModelFactory()
| Method Detail |
|---|
public static final InputFormModelFactory getInstance()
singleton instance.public void save(InputFormModel inputFormData)
InputFormModel
to the JDO data store.
inputFormData - The instance to persist to
the data store.public void delete(InputFormModel inputFormData)
InputFormModel
from the JDO data store.
inputFormData - The instance to delete from
the data store.public final java.util.Collection<InputFormModel> fetchAll()
InputFormModel
from the JDO data store.
ArrayList of all the instances.
public final int lastIndex()
throws java.lang.RuntimeException
java.lang.RuntimeException - If JDO exceptions are encountered while
fetching the objects.
public InputFormModel fetchByIndex(int index)
throws java.lang.RuntimeException
index - The index at which the object exists.
null
if no object is found.
java.lang.RuntimeException - If JDO exceptions are encountered while
fetching the object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||