A B C D E F G H I L M N O P Q R S T U W

A

AbstractPersistentObject - class com.ashridgetech.prevdb.client.AbstractPersistentObject.
A convenient base class for classes that want to implement Persistent.
AbstractPersistentObject(PersistentManager) - Constructor for class com.ashridgetech.prevdb.client.AbstractPersistentObject
 
AbstractPersistentObject(PersistentManager, Object) - Constructor for class com.ashridgetech.prevdb.client.AbstractPersistentObject
 
AbstractPersistentObject(PrevDb, Class) - Constructor for class com.ashridgetech.prevdb.client.AbstractPersistentObject
 
add(int, Object) - Method in class com.ashridgetech.prevdb.client.RefList
 
add(Object) - Method in class com.ashridgetech.prevdb.client.RefList
 
add(Persistent) - Method in class com.ashridgetech.prevdb.client.NonUniqueIndex
Add a new Persistent object to this index.
addAll(Collection) - Method in class com.ashridgetech.prevdb.client.RefList
 
addAll(int, Collection) - Method in class com.ashridgetech.prevdb.client.RefList
 
addNewObject(Persistent) - Method in class com.ashridgetech.prevdb.client.PersistentManager
Add a new object to this manager.
allocateOid() - Method in class com.ashridgetech.prevdb.client.PersistentManager
Allocate a new object id for a new object.
AllTests - class com.ashridgetech.prevdb.test.AllTests.
Runs all JUnit Test classes in this package which have been added to the AllTests.suite() method.
AllTests(String) - Constructor for class com.ashridgetech.prevdb.test.AllTests
 
applyChanges(FieldChangeMap) - Method in class com.ashridgetech.prevdb.client.PersistentManager
Put an object back into its state after a transaction.
applyTransaction(Transaction) - Method in interface com.ashridgetech.prevdb.store.Loader
Reapply the effects of a Transaction to the PrevDb.
applyTransaction(Transaction) - Method in class com.ashridgetech.prevdb.client.PrevDb
Apply the effects of a Transaction to the objects in this PrevDb.
assertContains(Collection, Object) - Static method in class com.ashridgetech.prevdb.test.BaseTest
Test that c contains an object equal to o.
assertContainsAsString(Collection, String) - Static method in class com.ashridgetech.prevdb.test.BaseTest
Test that c contains an object whose getDescription method gives a value equal to s.
assertContainsOnly(Collection, Object) - Static method in class com.ashridgetech.prevdb.test.BaseTest
Test that c contains an object equal to o and nothing else.
assertContainsOnly(Collection, Object, Object) - Static method in class com.ashridgetech.prevdb.test.BaseTest
Test that c contains objects equal to o1 and o2 and nothing else.
assertContainsOnly(Collection, Object, Object, Object) - Static method in class com.ashridgetech.prevdb.test.BaseTest
Test that c contains objects equal to o1, o2 and o3 and nothing else.
assertContainsOnly(Collection, Object, Object, Object, Object) - Static method in class com.ashridgetech.prevdb.test.BaseTest
Test that c contains objects equal to o1, o2, o4 and o4 and nothing else.
assertEmpty(Collection) - Static method in class com.ashridgetech.prevdb.test.BaseTest
Test that c is empty
assertNotContainsAsString(Collection, String) - Static method in class com.ashridgetech.prevdb.test.BaseTest
Test that c does not contain an object whose toString method gives a value equal to s.

B

B - Static variable in class com.ashridgetech.prevdb.test.TestClassA
 
balance - Variable in class com.ashridgetech.prevdb.test.BaseTest
 
BALANCE - Static variable in class com.ashridgetech.prevdb.test.TestClassA
 
balance2 - Variable in class com.ashridgetech.prevdb.test.BaseTest
 
BaseTest - class com.ashridgetech.prevdb.test.BaseTest.
Common facilities for tests on the Prevdb classes.
BaseTest(String) - Constructor for class com.ashridgetech.prevdb.test.BaseTest
Standard constructor required by subclasses of TestCase
blankToNull(String) - Static method in class com.ashridgetech.prevdb.common.Util
Change a null or blank String to null.

C

callStaticMethod(Class, String) - Static method in class com.ashridgetech.prevdb.common.Util
Get the value of a static method of a Class with no arguments.
capitalize(String) - Static method in class com.ashridgetech.prevdb.common.Util
Get a String with the first character converted to upper case.
checkArg(boolean, String) - Static method in class com.ashridgetech.prevdb.common.Util
 
checkEquals(String, String) - Method in class com.ashridgetech.prevdb.test.BaseTest
Check two Strings for equality, and dump characters if they differ.
checkEquals(String, String, String) - Method in class com.ashridgetech.prevdb.test.BaseTest
Check two Strings for equality, and dump characters if they differ.
checkNotEmpty(String, String) - Static method in class com.ashridgetech.prevdb.common.Util
 
checkNotNull(Object, String) - Static method in class com.ashridgetech.prevdb.common.Util
 
checkNull(Object, String) - Static method in class com.ashridgetech.prevdb.common.Util
 
checkState(boolean, String) - Static method in class com.ashridgetech.prevdb.common.Util
 
checkText(String, String) - Method in class com.ashridgetech.prevdb.test.BaseTest
Check the current text.
checkText(String, String, boolean) - Method in class com.ashridgetech.prevdb.test.BaseTest
Check the current text.
checkTextIgnore(String, String) - Method in class com.ashridgetech.prevdb.test.BaseTest
 
checkTextIgnorePrefixes - Variable in class com.ashridgetech.prevdb.test.BaseTest
 
classFieldMapListMap - Variable in class com.ashridgetech.prevdb.test.TestSystemStore
 
clear() - Method in class com.ashridgetech.prevdb.client.RefList
 
com.ashridgetech.prevdb.client - package com.ashridgetech.prevdb.client
Provides classes and interfaces for use within code that uses PrevDB.
com.ashridgetech.prevdb.common - package com.ashridgetech.prevdb.common
Common classes used by the other packages.
com.ashridgetech.prevdb.store - package com.ashridgetech.prevdb.store
Defines the interfaces for persistent store implementations used with a PrevDb.
com.ashridgetech.prevdb.test - package com.ashridgetech.prevdb.test
JUnit test classes for the PrevDb classes.
commitTransaction() - Method in class com.ashridgetech.prevdb.client.PrevDb
Commit the current unit of work.
concat(Collection, Collection) - Static method in class com.ashridgetech.prevdb.common.Util
Concatenate two Collections, in their natural order of iteration, into a single result List.
contains(Object) - Method in class com.ashridgetech.prevdb.client.RefList
 
containsAll(Collection) - Method in class com.ashridgetech.prevdb.client.RefList
 
createPrevDb(SystemStore) - Method in class com.ashridgetech.prevdb.test.BaseTest
 
CREDIT_LIMIT - Static variable in class com.ashridgetech.prevdb.test.TestClassA
 
creditLimit - Variable in class com.ashridgetech.prevdb.test.BaseTest
 
creditLimit2 - Variable in class com.ashridgetech.prevdb.test.BaseTest
 

D

DataException - exception com.ashridgetech.prevdb.store.DataException.
An exception indicating a problem with a data store operation
DataException(Exception) - Constructor for class com.ashridgetech.prevdb.store.DataException
Construct a new DataExceptionwith only a cause.
DataException(String) - Constructor for class com.ashridgetech.prevdb.store.DataException
Construct a new DataExceptionwith just a message.
DataException(String, Exception) - Constructor for class com.ashridgetech.prevdb.store.DataException
Construct a new DataExceptionwith a message and a cause.
defineNonUniqueIndex(PersistentField) - Method in class com.ashridgetech.prevdb.client.PersistentManager
Define a non-unique index required for the class managed by this PersistentManager.
defineNonUniqueIndex(PersistentField) - Method in class com.ashridgetech.prevdb.client.PrevDb
Define a non-unique index required for a class managed by this PrevDb.
definePersistentClass(Class, PersistentField) - Method in class com.ashridgetech.prevdb.client.PrevDb
Define a new persistent class.
desc - Variable in class com.ashridgetech.prevdb.test.BaseTest
 
desc2 - Variable in class com.ashridgetech.prevdb.test.BaseTest
 
DESCRIPTION - Static variable in class com.ashridgetech.prevdb.test.TestClassC
 
DESCRIPTION - Static variable in class com.ashridgetech.prevdb.test.TestClassB
 

E

ELEVEN - Static variable in class com.ashridgetech.prevdb.test.BaseTest
 
EMPTY_ARRAY - Static variable in class com.ashridgetech.prevdb.common.Util
 
EMPTY_CLASS_ARRAY - Static variable in class com.ashridgetech.prevdb.common.Util
 
EMPTY_STRING_ARRAY - Static variable in class com.ashridgetech.prevdb.common.Util
 
encode(String) - Static method in class com.ashridgetech.prevdb.common.Util
Encode a String in the manner needed for a Java source string literal, replacing characters with escape codes as needed.
equals(Object) - Method in class com.ashridgetech.prevdb.client.RefList
 
equals(Object) - Method in class com.ashridgetech.prevdb.client.Ref
 

F

FieldChangeMap - class com.ashridgetech.prevdb.client.FieldChangeMap.
A mapping from a set of a persistent fields of one Persistent class to their values and their old values.
FieldChangeMap(Class, Object) - Constructor for class com.ashridgetech.prevdb.client.FieldChangeMap
Creates a new FieldChangeMap for a particular persistent class and oid.
FieldChangeMap(Persistent) - Constructor for class com.ashridgetech.prevdb.client.FieldChangeMap
Creates a new FieldChangeMap for a particular persistent object.
FieldMap - class com.ashridgetech.prevdb.client.FieldMap.
A mapping from a set of a persistent fields of one Persistent class to their values, in one Persistent object.
FieldMap(Class, Object) - Constructor for class com.ashridgetech.prevdb.client.FieldMap
Creates a new FieldMap for a particular persistent class and oid.
FieldMap(Persistent) - Constructor for class com.ashridgetech.prevdb.client.FieldMap
Creates a new FieldMap for a particular persistent object.
findByOid(Object) - Method in class com.ashridgetech.prevdb.client.PersistentManager
Find an object by its oid.
findClass(String) - Static method in class com.ashridgetech.prevdb.common.Util
Find a public class by name.
findConstructor(Class, Class) - Static method in class com.ashridgetech.prevdb.common.Util
Find a public constructor with a given single argument type in a class.
findConstructor(Class, Class[]) - Static method in class com.ashridgetech.prevdb.common.Util
Find a constructor with parameter types that are assignable from the given argTypes, not necessarily exact matches, as found by Class.getConstructor(java.lang.Class[]).
findExactConstructor(Class, Class[]) - Static method in class com.ashridgetech.prevdb.common.Util
Find a public constructor with a given argument list in a class.
findIndexedCollection(PersistentField, Object) - Method in class com.ashridgetech.prevdb.client.PersistentManager
Find the collection of objects that have a given value in a given indexed.
findNestedClass(Class, String) - Static method in class com.ashridgetech.prevdb.common.Util
Find a public static nested class by name within another class.
FOUR - Static variable in class com.ashridgetech.prevdb.test.BaseTest
 

G

get() - Method in class com.ashridgetech.prevdb.client.Ref
Get the object referenced by this Ref.
get(int) - Method in class com.ashridgetech.prevdb.client.RefList
 
get(Object) - Method in class com.ashridgetech.prevdb.client.NonUniqueIndex
Get the list of objects with a given value in the indexed field.
getAList() - Method in class com.ashridgetech.prevdb.test.TestClassB
Get The A's referring to this B
getB() - Method in class com.ashridgetech.prevdb.test.TestClassA
Get the B
getBalance() - Method in class com.ashridgetech.prevdb.test.TestClassA
Get the cash balance
getCreditLimit() - Method in class com.ashridgetech.prevdb.test.TestClassA
Get the credit limit
getCurrentTransaction() - Method in class com.ashridgetech.prevdb.client.PrevDb
Get the Transaction currently in progress
getDescription() - Method in class com.ashridgetech.prevdb.test.TestClassC
Get the description
getDescription() - Method in class com.ashridgetech.prevdb.test.TestClassB
Get the description
getField(PersistentField) - Method in class com.ashridgetech.prevdb.client.AbstractPersistentObject
 
getField(PersistentField) - Method in interface com.ashridgetech.prevdb.client.Persistent
Get the value of a single field.
getFields() - Method in class com.ashridgetech.prevdb.client.AbstractPersistentObject
 
getFields() - Method in class com.ashridgetech.prevdb.client.FieldChangeMap
Get the set of fields in this FieldChangeMap
getFields() - Method in interface com.ashridgetech.prevdb.client.Persistent
Get a map of all the persistent fields in this object.
getFields() - Method in class com.ashridgetech.prevdb.client.FieldMap
Get the set of fields in this FieldMap, in the order in which they were set.
getFieldValue(PersistentField) - Method in class com.ashridgetech.prevdb.client.FieldMap
Get a field value that is known to be held in this FieldMap
getFirstElement(Collection) - Static method in class com.ashridgetech.prevdb.common.Util
Get the first element of a collection.
getIndexedField() - Method in class com.ashridgetech.prevdb.client.NonUniqueIndex
Get the PersistentField that is indexed
getJavaField(Field) - Method in class com.ashridgetech.prevdb.test.TestClassC
Get the value of a Java field.
getJavaField(Field) - Method in class com.ashridgetech.prevdb.test.TestClassB
Get the value of a Java field.
getJavaField(Field) - Method in class com.ashridgetech.prevdb.test.TestClassA
Get the value of a Java field.
getJavaField(Field) - Method in class com.ashridgetech.prevdb.client.AbstractPersistentObject
Get the value of a Java field.
getLastSavedTransaction() - Method in class com.ashridgetech.prevdb.test.TestSystemStore
 
getManager() - Method in class com.ashridgetech.prevdb.client.AbstractPersistentObject
Get the PersistentManager for this class
getManager() - Method in interface com.ashridgetech.prevdb.client.Persistent
Get the PersistentManager that manages this object.
getName() - Method in class com.ashridgetech.prevdb.test.TestClassA
Get the name
getName() - Method in class com.ashridgetech.prevdb.client.PersistentField
Get the name of the field
getNewFieldMap() - Method in class com.ashridgetech.prevdb.client.FieldChangeMap
Get the FieldMap of new values.
getNewFieldValue(PersistentField) - Method in class com.ashridgetech.prevdb.client.FieldChangeMap
Get the new value of a field that is known to be held in this FieldChangeMap
getNewObjects() - Method in interface com.ashridgetech.prevdb.client.Transaction
Get the FieldMaps for the persistent objects that have been created during this transaction.
getNumber() - Method in class com.ashridgetech.prevdb.client.PersistentField
Get the number of the field - unique within the class
getObjectIterator() - Method in class com.ashridgetech.prevdb.client.PersistentManager
Get an iterator over a notional set of FieldMaps for the objects in this PersistentManager
getObjects(Class) - Method in interface com.ashridgetech.prevdb.store.Loader
Get an Iterator over a set of FieldMaps for all the objects of a class
getOid() - Method in class com.ashridgetech.prevdb.client.Ref
Get the oid of the object referenced by this Ref.
getOid() - Method in class com.ashridgetech.prevdb.client.AbstractPersistentObject
 
getOid() - Method in class com.ashridgetech.prevdb.client.FieldChangeMap
Get the oid
getOid() - Method in interface com.ashridgetech.prevdb.client.Persistent
Get the oid of this object.
getOid() - Method in class com.ashridgetech.prevdb.client.FieldMap
Get the oid
getOidField() - Method in class com.ashridgetech.prevdb.client.PersistentManager
Get the PersistentField that holds the oid of the class which this PersistentManager manages.
getOldFieldMap() - Method in class com.ashridgetech.prevdb.client.FieldChangeMap
Get the FieldMap of old values.
getOldFieldValue(PersistentField) - Method in class com.ashridgetech.prevdb.client.FieldChangeMap
Get the old value of a field that is known to be held in this FieldChangeMap
getPersistentClass() - Method in class com.ashridgetech.prevdb.client.FieldChangeMap
Get the class to which this FieldChangeMap belongs
getPersistentClass() - Method in class com.ashridgetech.prevdb.client.PersistentField
Get the class to which this PersistentField belongs
getPersistentClass() - Method in class com.ashridgetech.prevdb.client.PersistentManager
Get the class which this PersistentManager manages
getPersistentClass() - Method in class com.ashridgetech.prevdb.client.FieldMap
Get the class to which this FieldMap belongs
getPersistentClasses() - Method in interface com.ashridgetech.prevdb.store.Loader
Get the collection of persistent object classes.
getPersistentClasses() - Method in class com.ashridgetech.prevdb.client.PrevDb
Get the collection of persistent object classes.
getPersistentField(PersistentField[], String) - Static method in class com.ashridgetech.prevdb.client.AbstractPersistentObject
Get a PersistentField from an array by name.
getPersistentFields() - Method in class com.ashridgetech.prevdb.test.TestClassC
 
getPersistentFields() - Method in class com.ashridgetech.prevdb.test.TestClassB
 
getPersistentFields() - Method in class com.ashridgetech.prevdb.test.TestClassA
 
getPersistentFields() - Method in class com.ashridgetech.prevdb.client.AbstractPersistentObject
Provide an array of PersistentFields for this object.
getPrevDb() - Method in class com.ashridgetech.prevdb.client.PersistentManager
Get the PrevDb that owns this PersistentManager
getStartDate() - Method in class com.ashridgetech.prevdb.test.TestClassA
Get the starting date
getSystemStore() - Method in class com.ashridgetech.prevdb.client.PrevDb
Get the default SystemStore for this PrevDb.
getTypes(Object[]) - Static method in class com.ashridgetech.prevdb.common.Util
Get the types of an array of objects.
getUpdatedObjects() - Method in interface com.ashridgetech.prevdb.client.Transaction
Get the FieldChangeMaps for the persistent objects that have been updated during this transaction.

H

hasFieldValue(PersistentField) - Method in class com.ashridgetech.prevdb.client.FieldChangeMap
Indicate whether this FieldChangeMap has a value for a particular field
hasFieldValue(PersistentField) - Method in class com.ashridgetech.prevdb.client.FieldMap
Indicate whether this FieldMap has a value for a particular field
hashCode() - Method in class com.ashridgetech.prevdb.client.RefList
 
hashCode() - Method in class com.ashridgetech.prevdb.client.Ref
 

I

indexOf(Object) - Method in class com.ashridgetech.prevdb.client.RefList
 
isBlank(String) - Static method in class com.ashridgetech.prevdb.common.Util
Test whether a String is null or empty or all whitespace.
isEmpty() - Method in class com.ashridgetech.prevdb.client.RefList
 
isLoading() - Method in class com.ashridgetech.prevdb.client.PrevDb
Indicate whether this prevDb is loading objects.
isMapFor(Persistent) - Method in class com.ashridgetech.prevdb.client.FieldChangeMap
Show whether this FieldChangeMap holds field values for a given Persistent object.
isMapFor(Persistent) - Method in class com.ashridgetech.prevdb.client.FieldMap
Show whether this FieldMap holds field values for a given Persistent object.
isNull() - Method in class com.ashridgetech.prevdb.client.Ref
Indicate whether this ref is null (ie does not refer to an object)
iterator() - Method in class com.ashridgetech.prevdb.client.RefList
 

L

lastIndexOf(Object) - Method in class com.ashridgetech.prevdb.client.RefList
 
lastOid - Variable in class com.ashridgetech.prevdb.client.PersistentManager
 
list(Object) - Static method in class com.ashridgetech.prevdb.common.Util
Create a List from the arguments.
list(Object, Object) - Static method in class com.ashridgetech.prevdb.common.Util
Create a List from the arguments.
list(Object, Object, Object) - Static method in class com.ashridgetech.prevdb.common.Util
Create a List from the arguments.
listIterator() - Method in class com.ashridgetech.prevdb.client.RefList
 
listIterator(int) - Method in class com.ashridgetech.prevdb.client.RefList
 
load(Loader) - Method in class com.ashridgetech.prevdb.test.TestSystemStore
 
load(Loader) - Method in interface com.ashridgetech.prevdb.store.SystemStore
Load all the Persistent objects at startup.
Loader - interface com.ashridgetech.prevdb.store.Loader.
The callback interface which a PrevDb provides to a SystemStore to allow it to load and save objects.
loadObject(FieldMap) - Method in interface com.ashridgetech.prevdb.store.Loader
Load a persistent object into the PrevDb.
loadObject(FieldMap) - Method in class com.ashridgetech.prevdb.client.PersistentManager
Load a persistent object into the PrevDb.
loadOid(Object) - Method in class com.ashridgetech.prevdb.client.PersistentManager
For any Integer oid, set the next oid returned by PersistentManager.allocateOid() to one greater, if it is not already greater.
localizePath(String) - Static method in class com.ashridgetech.prevdb.common.Util
Localize a path name by replacing both '\' and '/' with the local File.separatorChar.
log - Variable in class com.ashridgetech.prevdb.test.TestSystemStore
 
log - Variable in class com.ashridgetech.prevdb.test.BaseTest
 
logger - Static variable in class com.ashridgetech.prevdb.test.AllTests
 

M

main(String[]) - Static method in class com.ashridgetech.prevdb.test.AllTests
Command line arguments: -text - (optional) runs the text runner instead of the GUI testClassName - the fully qualified name of a TestCase class to run
manager(Class) - Method in class com.ashridgetech.prevdb.client.PrevDb
Find the PersistentManager for a Class.
mkdirs(File) - Static method in class com.ashridgetech.prevdb.common.Util
Check for the existence of a directory and create it if necessary, including any non-existent parent directories.

N

name - Variable in class com.ashridgetech.prevdb.test.BaseTest
 
NAME - Static variable in class com.ashridgetech.prevdb.test.TestClassA
 
NAME_PATTERN - Static variable in class com.ashridgetech.prevdb.common.Util
A Pattern which finds '.' , '/', '\' so it can be used for splitting file or package names.
name2 - Variable in class com.ashridgetech.prevdb.test.BaseTest
 
naturalize(String) - Static method in class com.ashridgetech.prevdb.common.Util
Get a String from a camel case name with spaces between each word, and underscores replaced by spaces.
newInstance(Class) - Static method in class com.ashridgetech.prevdb.common.Util
Create an object of a class with no constructor argument.
newInstance(Class, Object) - Static method in class com.ashridgetech.prevdb.common.Util
Create an object of a class with a given single constructor argument.
newInstance(Class, Object[]) - Static method in class com.ashridgetech.prevdb.common.Util
Create an object of a class with a given set of arguments.
newInstance(Class, Object, Object) - Static method in class com.ashridgetech.prevdb.common.Util
Create an object of a class with a given pair of constructor arguments.
newInstance(String) - Static method in class com.ashridgetech.prevdb.common.Util
Create an object of a named class with no constructor argument.
newInstance(String, Object) - Static method in class com.ashridgetech.prevdb.common.Util
Create an object of a class with a given single constructor argument.
newInstance(String, Object[]) - Static method in class com.ashridgetech.prevdb.common.Util
Create an object of a named class with a given set of arguments.
NonUniqueIndex - class com.ashridgetech.prevdb.client.NonUniqueIndex.
An map from values of one PersistentField to Lists of objects that contain that value.
NonUniqueIndex(PersistentField) - Constructor for class com.ashridgetech.prevdb.client.NonUniqueIndex
Creates new NonUniqueIndex.
notifyFieldUpdate(Persistent, PersistentField, Object, Object) - Method in class com.ashridgetech.prevdb.client.PersistentManager
Notify this manager that a field in one of its persistent objects has been updated.
notifyFieldUpdate(Persistent, PersistentField, Object, Object) - Method in class com.ashridgetech.prevdb.client.PrevDb
Notify this PrevDb that a field in one of its persistent objects has been updated.
notifyNewObject(Persistent) - Method in class com.ashridgetech.prevdb.client.PersistentManager
Notify this manager that a new persistent object has been created.
notifyNewObject(Persistent) - Method in class com.ashridgetech.prevdb.client.PrevDb
Notify this PrevDb that a new persistent object has been created.
notifyUpdate(PersistentField, int, int) - Method in class com.ashridgetech.prevdb.client.AbstractPersistentObject
 
notifyUpdate(PersistentField, Object, Object) - Method in class com.ashridgetech.prevdb.client.AbstractPersistentObject
Convenience method to allow a subclass setter method to call PersistentManager.notifyFieldUpdate(com.ashridgetech.prevdb.client.Persistent, com.ashridgetech.prevdb.client.PersistentField, java.lang.Object, java.lang.Object).
notifyUpdate(PersistentField, String, String) - Method in class com.ashridgetech.prevdb.client.AbstractPersistentObject
 
nullToBlank(String) - Static method in class com.ashridgetech.prevdb.common.Util
Change a null or blank String to an empty String.

O

ObjectNotFoundException - exception com.ashridgetech.prevdb.client.ObjectNotFoundException.
An exception indicating an object could not be found
ObjectNotFoundException(Class, Object) - Constructor for class com.ashridgetech.prevdb.client.ObjectNotFoundException
Construct a ObjectNotFoundException.
oid - Variable in class com.ashridgetech.prevdb.client.AbstractPersistentObject
 
OID - Static variable in class com.ashridgetech.prevdb.client.AbstractPersistentObject
 
ONE - Static variable in class com.ashridgetech.prevdb.test.BaseTest
 

P

packageName(String) - Static method in class com.ashridgetech.prevdb.common.Util
Get the package out of a fully qualified class name.
Persistent - interface com.ashridgetech.prevdb.client.Persistent.
The interface which PrevDb persistent objects must implement.
PERSISTENT_FIELDS - Static variable in class com.ashridgetech.prevdb.test.TestClassC
 
PERSISTENT_FIELDS - Static variable in class com.ashridgetech.prevdb.test.TestClassB
 
PERSISTENT_FIELDS - Static variable in class com.ashridgetech.prevdb.test.TestClassA
 
PERSISTENT_FIELDS - Static variable in class com.ashridgetech.prevdb.client.AbstractPersistentObject
 
PersistentField - class com.ashridgetech.prevdb.client.PersistentField.
A definition of a persistent field of a Persistent class.
PersistentField(Class, String, int) - Constructor for class com.ashridgetech.prevdb.client.PersistentField
Creates new PersistentField.
PersistentManager - class com.ashridgetech.prevdb.client.PersistentManager.
A manager (factory) object for one class of Persistent objects.
PersistentManager.1 - class com.ashridgetech.prevdb.client.PersistentManager.1.
 
PersistentManager(PrevDb, Class, PersistentField) - Constructor for class com.ashridgetech.prevdb.client.PersistentManager
Create a PersistentManager for a class.
PersistentManagerTest - class com.ashridgetech.prevdb.test.PersistentManagerTest.
Tests the PersistentManager and related classes.
PersistentManagerTest(String) - Constructor for class com.ashridgetech.prevdb.test.PersistentManagerTest
Standard constructor required by subclasses of TestCase
PersistentObjectTest - class com.ashridgetech.prevdb.test.PersistentObjectTest.
Tests the AbstractPersistentObject and related classes.
PersistentObjectTest(String) - Constructor for class com.ashridgetech.prevdb.test.PersistentObjectTest
Standard constructor required by subclasses of TestCase
pluralize(String) - Static method in class com.ashridgetech.prevdb.common.Util
Get a String word made plural (in English).
prevDb - Variable in class com.ashridgetech.prevdb.test.BaseTest
 
PrevDb - class com.ashridgetech.prevdb.client.PrevDb.
The overall controller for all the Persistent objects in a PrevDb system.
PrevDb.1 - class com.ashridgetech.prevdb.client.PrevDb.1.
 
PrevDb() - Constructor for class com.ashridgetech.prevdb.client.PrevDb
 
PrevDbTest - class com.ashridgetech.prevdb.test.PrevDbTest.
Tests the PrevDb methods, including loading to dummy store.
PrevDbTest(String) - Constructor for class com.ashridgetech.prevdb.test.PrevDbTest
Standard constructor required by subclasses of TestCase

Q

quote(String) - Static method in class com.ashridgetech.prevdb.common.Util
Put double quotes around a string, and encode it.

R

readFile(String) - Static method in class com.ashridgetech.prevdb.common.Util
Read from a named file into a String.
readReader(Reader) - Static method in class com.ashridgetech.prevdb.common.Util
Read from a Reader into a String.
readToPosition(BufferedReader, int, int) - Static method in class com.ashridgetech.prevdb.common.Util
Read from the current position in a Reader to a given relative line and column.
Ref - class com.ashridgetech.prevdb.client.Ref.
A reference from one persistent object to another.
Ref() - Constructor for class com.ashridgetech.prevdb.client.Ref
Creates new null Ref that refers to no object.
Ref(Persistent) - Constructor for class com.ashridgetech.prevdb.client.Ref
Creates new Ref referring to a Persistent object.
Ref(Persistent, Class, Object) - Constructor for class com.ashridgetech.prevdb.client.Ref
Creates new Ref with the oid of a Persistent object.
Ref(PersistentManager, Object) - Constructor for class com.ashridgetech.prevdb.client.Ref
Creates new Ref with the oid of a Persistent object.
RefList - class com.ashridgetech.prevdb.client.RefList.
A reference from one persistent object to a List of related objects.
RefList(Persistent, PersistentField) - Constructor for class com.ashridgetech.prevdb.client.RefList
Creates new RefList that contains a collection of objects referring to this one.
RefTest - class com.ashridgetech.prevdb.test.RefTest.
Tests the Ref, RefList and related classes.
RefTest(String) - Constructor for class com.ashridgetech.prevdb.test.RefTest
Standard constructor required by subclasses of TestCase
remove(int) - Method in class com.ashridgetech.prevdb.client.RefList
 
remove(Object) - Method in class com.ashridgetech.prevdb.client.RefList
 
remove(Persistent) - Method in class com.ashridgetech.prevdb.client.NonUniqueIndex
Remove a Persistent object from this index when its value for the field indexed by this index has changed.
removeAll(Collection) - Method in class com.ashridgetech.prevdb.client.RefList
 
retainAll(Collection) - Method in class com.ashridgetech.prevdb.client.RefList
 
rollbackNewObject(FieldMap) - Method in class com.ashridgetech.prevdb.client.PersistentManager
Remove a new object added within the current transaction.
rollbackObject(FieldChangeMap) - Method in class com.ashridgetech.prevdb.client.PersistentManager
Put an object back into its state before a transaction.
rollbackTransaction() - Method in class com.ashridgetech.prevdb.client.PrevDb
Abandon the current unit of work.
rollbackTransaction(Transaction) - Method in class com.ashridgetech.prevdb.client.PrevDb
Undo the effects of a Transaction on the objects in this PrevDb.

S

savedTransactions - Variable in class com.ashridgetech.prevdb.test.TestSystemStore
 
saveTransaction(Transaction) - Method in class com.ashridgetech.prevdb.test.TestSystemStore
 
saveTransaction(Transaction) - Method in interface com.ashridgetech.prevdb.store.SystemStore
Save a Transaction
set(int, Object) - Method in class com.ashridgetech.prevdb.client.RefList
 
setB(TestClassB) - Method in class com.ashridgetech.prevdb.test.TestClassA
Set the B
setCreditLimit(int) - Method in class com.ashridgetech.prevdb.test.TestClassA
Set the credit limit
setDescription(String) - Method in class com.ashridgetech.prevdb.test.TestClassC
Set the description
setDescription(String) - Method in class com.ashridgetech.prevdb.test.TestClassB
Set the description
setField(PersistentField, Object) - Method in class com.ashridgetech.prevdb.client.AbstractPersistentObject
 
setField(PersistentField, Object) - Method in interface com.ashridgetech.prevdb.client.Persistent
Set the value of a single field.
setFields(FieldMap) - Method in class com.ashridgetech.prevdb.client.AbstractPersistentObject
 
setFields(FieldMap) - Method in interface com.ashridgetech.prevdb.client.Persistent
Set some or all of the fields in this object.
setFieldValue(PersistentField, Object) - Method in class com.ashridgetech.prevdb.client.FieldMap
Set a field value in this FieldMap
setFieldValues(PersistentField, Object, Object) - Method in class com.ashridgetech.prevdb.client.FieldChangeMap
Set a field value in this FieldChangeMap
setJavaField(Field, Object) - Method in class com.ashridgetech.prevdb.test.TestClassC
Set the value of a Java field.
setJavaField(Field, Object) - Method in class com.ashridgetech.prevdb.test.TestClassB
Set the value of a Java field.
setJavaField(Field, Object) - Method in class com.ashridgetech.prevdb.test.TestClassA
Set the value of a Java field.
setJavaField(Field, Object) - Method in class com.ashridgetech.prevdb.client.AbstractPersistentObject
Set the value of a Java field.
setName(String) - Method in class com.ashridgetech.prevdb.test.TestClassA
Set the name
setStartDate(Date) - Method in class com.ashridgetech.prevdb.test.TestClassA
Set the starting date
setSystemStore(SystemStore) - Method in class com.ashridgetech.prevdb.client.PrevDb
Set the default SystemStore for this PrevDb.
setUp() - Method in class com.ashridgetech.prevdb.test.TransactionTest
 
setUp() - Method in class com.ashridgetech.prevdb.test.RefTest
 
setUp() - Method in class com.ashridgetech.prevdb.test.PrevDbTest
 
setUp() - Method in class com.ashridgetech.prevdb.test.PersistentObjectTest
 
setUp() - Method in class com.ashridgetech.prevdb.test.PersistentManagerTest
 
setUp() - Method in class com.ashridgetech.prevdb.test.BaseTest
 
shutdown() - Method in class com.ashridgetech.prevdb.client.PrevDb
End the operation of this PrevDb.
shutdown(Loader) - Method in class com.ashridgetech.prevdb.test.TestSystemStore
 
shutdown(Loader) - Method in interface com.ashridgetech.prevdb.store.SystemStore
Perform the actions needed when the system is shutting down, which may include saving a snapshot of all the objects.
singularize(String) - Static method in class com.ashridgetech.prevdb.common.Util
Get a String word made singular (in English).
size() - Method in class com.ashridgetech.prevdb.client.RefList
 
snapshot() - Method in class com.ashridgetech.prevdb.client.PrevDb
Take a snapshot of the system data during running.
snapshot(Loader) - Method in class com.ashridgetech.prevdb.test.TestSystemStore
 
snapshot(Loader) - Method in interface com.ashridgetech.prevdb.store.SystemStore
Take a snapshot of all the persistent objects during running, if required.
SPACE_PATTERN - Static variable in class com.ashridgetech.prevdb.common.Util
A Pattern which finds whitespace so it can be used for splitting space-separated lists of tokens.
splitAtSpace(String) - Static method in class com.ashridgetech.prevdb.common.Util
Split a string at spaces.
splitName(String) - Static method in class com.ashridgetech.prevdb.common.Util
Split a string at periods or file separators.
START_DATE - Static variable in class com.ashridgetech.prevdb.test.TestClassA
 
startDate - Variable in class com.ashridgetech.prevdb.test.BaseTest
 
startDate2 - Variable in class com.ashridgetech.prevdb.test.BaseTest
 
startTransaction() - Method in class com.ashridgetech.prevdb.client.PrevDb
Start a new unit of work that will be managed by this PrevDb.
startup() - Method in class com.ashridgetech.prevdb.client.PrevDb
Start the operation of this PrevDb.
subList(int, int) - Method in class com.ashridgetech.prevdb.client.RefList
 
suite() - Static method in class com.ashridgetech.prevdb.test.AllTests
 
systemStore - Variable in class com.ashridgetech.prevdb.test.BaseTest
 
SystemStore - interface com.ashridgetech.prevdb.store.SystemStore.
Provides a way for the PrevDb to load and save persistent objects, and transactions.

T

TEN - Static variable in class com.ashridgetech.prevdb.test.BaseTest
 
testBasic() - Method in class com.ashridgetech.prevdb.test.TransactionTest
Tests various basic transaction functions of PrevDb.
testBasic() - Method in class com.ashridgetech.prevdb.test.RefTest
Tests various basic functions of Ref.
testBasic() - Method in class com.ashridgetech.prevdb.test.PersistentObjectTest
Tests various basic functions of AbstractPersistentObject.
testBasic() - Method in class com.ashridgetech.prevdb.test.PersistentManagerTest
Tests various basic functions of PersistentManager.
TestClassA - class com.ashridgetech.prevdb.test.TestClassA.
Persistent test class for use in unit tests.
TestClassA(PrevDb) - Constructor for class com.ashridgetech.prevdb.test.TestClassA
 
TestClassA(PrevDb, String, Date, int, BigDecimal) - Constructor for class com.ashridgetech.prevdb.test.TestClassA
 
TestClassB - class com.ashridgetech.prevdb.test.TestClassB.
Persistent test class for use in unit tests.
TestClassB(PrevDb) - Constructor for class com.ashridgetech.prevdb.test.TestClassB
 
TestClassB(PrevDb, String) - Constructor for class com.ashridgetech.prevdb.test.TestClassB
 
TestClassC - class com.ashridgetech.prevdb.test.TestClassC.
Persistent test class for use in unit tests.
TestClassC(PrevDb) - Constructor for class com.ashridgetech.prevdb.test.TestClassC
 
TestClassC(PrevDb, String) - Constructor for class com.ashridgetech.prevdb.test.TestClassC
 
testFieldChangeMaps() - Method in class com.ashridgetech.prevdb.test.PersistentObjectTest
Tests field change map access functions
testFieldMaps() - Method in class com.ashridgetech.prevdb.test.PersistentObjectTest
Tests field map access functions
testFields() - Method in class com.ashridgetech.prevdb.test.PersistentObjectTest
Tests field access functions of AbstractPersistentObject.
testLoadReload() - Method in class com.ashridgetech.prevdb.test.PrevDbTest
Tests unloading a PrevDb instance to a test SystemStore and reloading it into another.
testNewObjects() - Method in class com.ashridgetech.prevdb.test.TransactionTest
Tests various object creation functions of PrevDb.
testNonUniqueIndex() - Method in class com.ashridgetech.prevdb.test.PersistentManagerTest
Tests various NonUniqueIndex related functions of PersistentManager, along with methods of NonUniqueIndex itself.
testPersistent() - Method in class com.ashridgetech.prevdb.test.PersistentManagerTest
Tests various Persistent related functions of PersistentManager.
testRefListBasic() - Method in class com.ashridgetech.prevdb.test.RefTest
Tests basic functions of RefList
testRefMember() - Method in class com.ashridgetech.prevdb.test.RefTest
Tests using Ref as a class member.
testRollback() - Method in class com.ashridgetech.prevdb.test.TransactionTest
Tests rollback functions of PrevDb.
TestSystemStore - class com.ashridgetech.prevdb.test.TestSystemStore.
A mock object implementation of SystemStore for testing.
TestSystemStore() - Constructor for class com.ashridgetech.prevdb.test.TestSystemStore
 
testUpdatedObjects() - Method in class com.ashridgetech.prevdb.test.TransactionTest
Tests various object update functions of PrevDb.
THREE - Static variable in class com.ashridgetech.prevdb.test.BaseTest
 
toArray() - Method in class com.ashridgetech.prevdb.client.RefList
 
toArray(Object[]) - Method in class com.ashridgetech.prevdb.client.RefList
 
toFullString() - Method in class com.ashridgetech.prevdb.client.PersistentField
Get a full description including the class name.
toString() - Method in class com.ashridgetech.prevdb.test.TestClassC
 
toString() - Method in class com.ashridgetech.prevdb.test.TestClassB
 
toString() - Method in class com.ashridgetech.prevdb.test.TestClassA
 
toString() - Method in class com.ashridgetech.prevdb.client.NonUniqueIndex
 
toString() - Method in class com.ashridgetech.prevdb.client.RefList
 
toString() - Method in class com.ashridgetech.prevdb.client.Ref
 
toString() - Method in class com.ashridgetech.prevdb.client.FieldChangeMap
 
toString() - Method in class com.ashridgetech.prevdb.client.PersistentField
Get a short description of field name and number only.
toString() - Method in class com.ashridgetech.prevdb.client.PersistentManager
 
toString() - Method in class com.ashridgetech.prevdb.client.FieldMap
 
toString(Collection) - Static method in class com.ashridgetech.prevdb.common.Util
 
Transaction - interface com.ashridgetech.prevdb.client.Transaction.
Manages the updates made to persistent objects during one unit of work.
TransactionTest - class com.ashridgetech.prevdb.test.TransactionTest.
Tests the PrevDb's Transaction implementation.
TransactionTest(String) - Constructor for class com.ashridgetech.prevdb.test.TransactionTest
Standard constructor required by subclasses of TestCase
TWO - Static variable in class com.ashridgetech.prevdb.test.BaseTest
 

U

uncapitalize(String) - Static method in class com.ashridgetech.prevdb.common.Util
Get a String with the first character converted to lower case.
unqualifiedClassName(String) - Static method in class com.ashridgetech.prevdb.common.Util
Get the name of a class, without its package or containing class.
update(Persistent, Object, Object) - Method in class com.ashridgetech.prevdb.client.NonUniqueIndex
Update a Persistent object's place in this index when its value for the field indexed by this index has changed.
Util - class com.ashridgetech.prevdb.common.Util.
Utility methods used by various classes.

W

wrap(String, int) - Static method in class com.ashridgetech.prevdb.common.Util
Split text at whitespace so that each line is less than maxLength.

A B C D E F G H I L M N O P Q R S T U W

Copyright © 2003 Ashridge Technologies Ltd. All Rights Reserved.