/** * create the contact item for the factory in this address space * and persist it * * Used in the original transaction-initiating process */ static boolean createAndSave(ArjunaFactory factory) { if (_theSingularItem == null) { _theSingularItem = new FactoryContactItem(factory); return _theSingularItem.saveMe(); } else { // do it only once return true; } }
/** * construct the item known by this uid from the ObjectStore (assuming * it is there - otherwise return null) * * Used in the RecoveryManager */ static FactoryContactItem recreate (Uid uid) { FactoryContactItem theItem = new FactoryContactItem(uid); if (theItem.restoreMe()) { return theItem; } else { return null; } }
/** * construct the item known by this uid from the ObjectStore (assuming * it is there - otherwise return null * * Used in the RecoveryManager */ static FactoryContactItem recreate (Uid uid) { FactoryContactItem theItem = new FactoryContactItem(uid); if (theItem.restoreMe()) { return theItem; } else { return null; } }
/** * create the contact item for the factory in this address space * and persist it * * Used in the original transaction-initiating process */ static boolean createAndSave(ArjunaFactory factory) { if (_theSingularItem == null) { _theSingularItem = new FactoryContactItem(factory); return _theSingularItem.saveMe(); } else { // do it only once return true; } }