|
SPT Core API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sptci.jdo.Factory<StartLetter>
com.sptci.jdo.StartLetterFactory
public class StartLetterFactory
A repository class for abstracting interactions between the
StartLetter JDO JavaBean and the JDO data store.
© Copyright 2007 Sans Pareil Technologies, Inc.
| Field Summary | |
|---|---|
static StartLetterFactory |
startLetterFactory
The singleton instance of the class. |
| Fields inherited from class com.sptci.jdo.Factory |
|---|
logger |
| Constructor Summary | |
|---|---|
StartLetterFactory()
|
|
| Method Summary | |
|---|---|
StartLetter |
create(char letter,
Class source,
javax.jdo.PersistenceManager pm)
Create a new persistent instance with the specified name. |
StartLetter |
create(char letter,
String source,
javax.jdo.PersistenceManager pm)
Create a new persistent instance with the specified name. |
StartLetter |
fetch(char letter,
String source,
javax.jdo.PersistenceManager pm)
Fetch the StartLetter identified by the StartLetter.letter and
StartLetter.source values. |
Collection<StartLetter> |
fetchAll(javax.jdo.PersistenceManager pm)
Return all the instance of StartLetter from the JDO data store. |
Collection<StartLetter> |
fetchBySource(Class source,
javax.jdo.PersistenceManager pm)
Return all the instances of StartLetter that are associated with
the specified StartLetter.source. |
Collection<StartLetter> |
fetchBySource(String source,
javax.jdo.PersistenceManager pm)
Return all the instances of StartLetter that are associated with
the specified StartLetter.source. |
static StartLetterFactory |
getInstance()
Return the singleton instance of the class. |
protected String |
getPrimaryKey(char letter,
String source)
Create the primary key for the specified combination of start letter and source class. |
| Methods inherited from class com.sptci.jdo.Factory |
|---|
addAlphabeticalIndex, begin, close, close, commit, count, delete, fetch, fetch, fetch, fetchAll, getPersistenceManager, removeStartLetter, rollback, save |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final StartLetterFactory startLetterFactory
| Constructor Detail |
|---|
public StartLetterFactory()
| Method Detail |
|---|
public static StartLetterFactory getInstance()
startLetterFactory instance.
public StartLetter create(char letter,
Class source,
javax.jdo.PersistenceManager pm)
letter - The StartLetter.letter value to use.source - The class whose fully qualified name is to be used for
StartLetter.source.pm - The persistence manager to use to interact with the data
store.
create(char, String, javax.jdo.PersistenceManager)
public StartLetter create(char letter,
String source,
javax.jdo.PersistenceManager pm)
letter - The StartLetter.letter value to use.source - The StartLetter.source value to use.pm - The persistence manager to use to interact with the data
store.
fetch( char, String, PersistenceManager )public Collection<StartLetter> fetchAll(javax.jdo.PersistenceManager pm)
StartLetter from the JDO data store.
pm - The persistence manager to use to interact with the data
store. It is assumed that an active transaction is in operation.
Extent.
public StartLetter fetch(char letter,
String source,
javax.jdo.PersistenceManager pm)
StartLetter.letter and
StartLetter.source values.
letter - The letter value to use.source - The source value to use.pm - The persistence manager to use to interact with the data
store. It is assumed that an active transaction is in operation.
null if no
such object exists in the data store.
public Collection<StartLetter> fetchBySource(Class source,
javax.jdo.PersistenceManager pm)
StartLetter that are associated with
the specified StartLetter.source.
source - The source class whose start letters are to be retrieved.pm - The persistence manager to use to interact with the data
store. It is assumed that an active transaction is in operation.
fetchBySource(String, javax.jdo.PersistenceManager)
public Collection<StartLetter> fetchBySource(String source,
javax.jdo.PersistenceManager pm)
StartLetter that are associated with
the specified StartLetter.source.
source - The source object whose start letters are to be retrieved.pm - The persistence manager to use to interact with the data
store. It is assumed that an active transaction is in operation.
protected String getPrimaryKey(char letter,
String source)
letter - The start letter character.source - The class name of the source object.
|
SPT Core API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||