|
SolarMetric Kodo JDO 3.3.5 generated on August 31 2005 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An implementation of the SequenceFactory interface is used to generate
unique primary key values for newly persisted JDO instances.
Multiple sequence factories may be used during the lifetime of a JDO
application. Most sequence factories will probably implement
Configurable
to receive the system
configuration on construction.
Method Summary | |
void |
addSchema(ClassMapping mapping,
SchemaGroup group)
Add any tables, etc needed by this factory for the given mapping to the given schema group, if they do not exist already. |
boolean |
ensureCapacity(int count,
ClassMapping cm,
DataSource ds)
Ensures that this sequence factory has sufficient capacity readily available to provide count new sequence
values. |
long |
getNext(ClassMapping mapping,
DataSource ds)
Return a unique primary key value. |
Method Detail |
public void addSchema(ClassMapping mapping, SchemaGroup group)
public long getNext(ClassMapping mapping, DataSource ds) throws Exception
mapping
- metadata on the class of the object being persistedds
- the data source from which to obtain database
connections, if any are neededpublic boolean ensureCapacity(int count, ClassMapping cm, DataSource ds) throws Exception
count
new sequence
values.count
- number of sequence values to attempt to servecm
- metadata on the class of the object being persistedds
- the data source from which to obtain database
connections, if any are neededtrue
if the factory can service
count
requests without returning to the
datastore; else false
|
SolarMetric Kodo JDO 3.3.5 generated on August 31 2005 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |