public ObjectStoreIterator(ObjectStore store, String tName) { try { store.allObjUids(tName, uidList); } catch (ObjectStoreException e) { } }
/** * Is the current state of the object the same as that provided as the last * parameter? * * @param u The object to work on. * @param tn The type of the object. * @param st The expected type of the object. * * @return <code>true</code> if the current state is as expected, * <code>false</code> otherwise. */ public boolean isType (Uid u, String tn, int st) throws ObjectStoreException { return ((currentState(u, tn) == st) ? true : false); }
if (imple.allTypes(types)) if (imple.allObjUids(theName, uids)) + " state is "); System.out.print(ObjectStore .stateStatusString(imple .currentState( theUid, theName)));
if (imple.allTypes(types)) currentRoot.add(currentNode); if (imple.allObjUids(fullPathName, uids)) "status: " + statusToString(imple .currentState( theUid, fullPathName)))));
+ imple.currentState(new Uid(uid), type)); imple.allObjUids(type, buff, ObjectStore.OS_UNCOMMITTED);
if (_objectStore.allObjUids(_itemTypeName, uids)) _objectStore.remove_committed(newUid, _itemTypeName);
if ( _objectStore.allTypes(types) ) if ( _objectStore.allObjUids( theTypeName, uids ) )
ObjectStore objStore = new ObjectStore(TxControl .getActionStoreType()); InputObjectState states = new InputObjectState(); if (objStore.allObjUids(SubordinateAtomicAction.getType(), states) && (states.notempty()))
public void allTypes(ObjStoreTypeBean parent, String storeName, Collection<ObjStoreTypeBean> names) { InputObjectState types = new InputObjectState(); try { if (getObjectStore(store.storeDir(), storeName).allTypes(types)) { while (true) { try { String theName = types.unpackString(); if (theName.length() == 0) break; else names.add(new ObjStoreTypeBean(parent, storeName, theName)); } catch (IOException e) { break; // end of list } } } } catch (ObjectStoreException e) { if (tsLogger.arjLoggerI18N.isWarnEnabled()) tsLogger.arjLoggerI18N.warn("com.arjuna.ats.arjuna.tools.osb.mbean.ObjStoreBean.m_3", new Object[] { e }); } }
if (imple.allTypes(types)) if (imple.allObjUids(theName, uids)) System.out.print(ObjectStore.stateStatusString(imple.currentState(theUid, theName))); System.out.println();
if (imple.allTypes(types)) currentRoot.add(currentNode); if (imple.allObjUids(fullPathName, uids)) "status: " + statusToString(imple .currentState( theUid, fullPathName)))));
if (_objectStore.allObjUids(_typeName, uids)) _objectStore.remove_committed(newUid, _typeName);
if (_objectStore.allTypes(types)) if (_objectStore.allObjUids(theName, uids, ObjectStore.OS_UNCOMMITTED))
public boolean allObjUids (String s, InputObjectState buff) throws ObjectStoreException { return allObjUids(s, buff, StateStatus.OS_UNKNOWN); }
/** * Is the current state of the object the same as that provided as the last * parameter? * * @param u The object to work on. * @param tn The type of the object. * @param st The expected type of the object. * * @return <code>true</code> if the current state is as expected, * <code>false</code> otherwise. */ public boolean isType (Uid u, String tn, int st) throws ObjectStoreException { return ((currentState(u, tn) == st) ? true : false); }
if ( _objectStore.allObjUids(_itemTypeName, uids) ) _objectStore.remove_committed( newUid, _itemTypeName ) ;
public boolean allObjUids (String s, InputObjectState buff) throws ObjectStoreException { return allObjUids(s, buff, StateStatus.OS_UNKNOWN); }
/** * Is the current state of the object the same as that provided as the last * parameter? * * @param u The object to work on. * @param tn The type of the object. * @param st The expected type of the object. * * @return <code>true</code> if the current state is as expected, * <code>false</code> otherwise. */ public boolean isType (Uid u, String tn, int st) throws ObjectStoreException { return ((currentState(u, tn) == st) ? true : false); }
public boolean allObjUids (String s, InputObjectState buff) throws ObjectStoreException { return allObjUids(s, buff, StateStatus.OS_UNKNOWN); }
/** * Is the current state of the object the same as that provided as the last * parameter? * * @param u The object to work on. * @param tn The type of the object. * @param st The expected type of the object. * * @return <code>true</code> if the current state is as expected, * <code>false</code> otherwise. */ public boolean isType (Uid u, String tn, int st) throws ObjectStoreException { return ((currentState(u, tn) == st) ? true : false); }