interface PersistenceService : agent::Migration
{
void connect (in string userName)
raises (UserExists, UserDBCorrupted);
void disconnect (in string userName)
raises (UserNotFound, UserDBCorrupted);
boolean DB_allocated ();
void allocateNewDB (in string userName)
raises (UserNotFound, DBAlreadyInUse);
string getDBName ();
void store (in string fileName, in string userName)
raises (UserNotFound, NoDBAllocated, StoreFailure);
void restore (in string fileName, in string userName)
raises (UserNotFound, DBAlreadyInUse, RestoreFailure);
void addElement (in PersistentObject newObject, in string userName)
raises (UserNotFound, NoDBAllocated);
void deleteElement (in string PID, in string userName)
raises (UserNotFound,NoDBAllocated, ObjectNotFound);
NCScontrolCommonData::IDlist listAllID (in string userName)
raises (UserNotFound, NoDBAllocated);
POlist getAllObjects (in string userName)
raises (UserNotFound, NoDBAllocated);
PersistentObject getElement (in string PID, in string userName)
raises (UserNotFound, ObjectNotFound);
void createNewDB (in string fileName, in string userName)
raises (UserNotFound, StoreFailure);
};
Es werden insgesamt 13 Operationen angeboten, von denen die drei Operationen: