public String getStoreName() { if (storeValid()) return getAccessClassName() + ":" + getTableName(); else return "Invalid"; }
protected InputObjectState read_state(Uid objUid, String tName, int ft) throws ObjectStoreException { if (!storeValid()) return null; else return _theImple.read_state(objUid, tName, ft, getTableName()); }
public synchronized void packInto(OutputBuffer buff) throws IOException { buff.packString(getAccessClassName()); buff.packString(getTableName()); }
setJDBCAccess(jdbcAccess); impleTableName = getDefaultTableName(); setTableName(impleTableName); "com.arjuna.ats.internal.arjuna.objectstore.JDBCStore_1", new Object[] { getJDBCAccess(), getTableName() }); try final Class jdbcImpleClass = getJDBCClass(connection); jdbcImple = (JDBCImple) jdbcImpleClass .newInstance(); "com.arjuna.ats.internal.arjuna.objectstore.JDBCStore_2", new Object[] { ex, getJDBCAccess() });
protected void initialise(String tableName) throws Exception String jdbcAccessClassName = getAccessClassName(); setupStore(jdbcAccessClassName, tableName); "com.arjuna.ats.internal.arjuna.objectstore.JDBCStore_1", new Object[] { getJDBCAccess(), getTableName() });
public boolean remove_committed(Uid storeUid, String tName) throws ObjectStoreException { if (tsLogger.arjLogger.isDebugEnabled()) { tsLogger.arjLogger.debug(DebugLevel.FUNCTIONS, VisibilityLevel.VIS_PUBLIC, FacilityCode.FAC_OBJECT_STORE, "JDBCStore.remove_committed(" + storeUid + ", " + tName + ")"); } return remove_state(storeUid, tName, ObjectStore.OS_COMMITTED); }
public InputObjectState read_uncommitted(Uid storeUid, String tName) throws ObjectStoreException { if (tsLogger.arjLogger.isDebugEnabled()) { tsLogger.arjLogger.debug(DebugLevel.FUNCTIONS, VisibilityLevel.VIS_PUBLIC, FacilityCode.FAC_OBJECT_STORE, "JDBCStore.read_uncommitted(" + storeUid + ", " + tName + ")"); } return read_state(storeUid, tName, ObjectStore.OS_UNCOMMITTED); }
protected JDBCStore() { if (tsLogger.arjLogger.isDebugEnabled()) { tsLogger.arjLogger.debug(DebugLevel.CONSTRUCTORS, VisibilityLevel.VIS_PUBLIC, FacilityCode.FAC_OBJECT_STORE, getClass().getName() + "()"); } try { initialise(""); } catch (Exception e) { throw new ObjectStoreError(e.toString(), e); } }
public InputObjectState read_committed (Uid storeUid, String tName) throws ObjectStoreException { if (tsLogger.arjLogger.isDebugEnabled()) { tsLogger.arjLogger.debug(DebugLevel.FUNCTIONS, VisibilityLevel.VIS_PUBLIC, FacilityCode.FAC_OBJECT_STORE, "JDBCActionStore.read_committed("+storeUid+", "+tName+")"); } return super.read_committed(storeUid, tName); }
public boolean remove_committed (Uid storeUid, String tName) throws ObjectStoreException { if (tsLogger.arjLogger.isDebugEnabled()) { tsLogger.arjLogger.debug(DebugLevel.FUNCTIONS, VisibilityLevel.VIS_PUBLIC, FacilityCode.FAC_OBJECT_STORE, "JDBCActionStore.remove_committed("+storeUid+", "+tName+")"); } return super.remove_committed(storeUid, tName); }
public int currentState(Uid objUid, String tName) throws ObjectStoreException { if (storeValid()) return _theImple.currentState(objUid, tName, getTableName()); else return ObjectStore.OS_UNKNOWN; }
public boolean remove_uncommitted(Uid storeUid, String tName) throws ObjectStoreException { if (tsLogger.arjLogger.isDebugEnabled()) { tsLogger.arjLogger.debug(DebugLevel.FUNCTIONS, VisibilityLevel.VIS_PUBLIC, FacilityCode.FAC_OBJECT_STORE, "JDBCStore.remove_uncommitted(" + storeUid + ", " + tName + ")"); } return remove_state(storeUid, tName, ObjectStore.OS_UNCOMMITTED); }
/** * Read an uncommitted instance of State out of the object store. The * instance is identified by the unique id and type */ public InputObjectState read_committed(Uid storeUid, String tName) throws ObjectStoreException { if (tsLogger.arjLogger.isDebugEnabled()) { tsLogger.arjLogger .debug(DebugLevel.FUNCTIONS, VisibilityLevel.VIS_PUBLIC, FacilityCode.FAC_OBJECT_STORE, "JDBCStore.read_committed(" + storeUid + ", " + tName + ")"); } return read_state(storeUid, tName, ObjectStore.OS_COMMITTED); }
protected JDBCStore(String tableName) { if (tsLogger.arjLogger.isDebugEnabled()) { tsLogger.arjLogger.debug(DebugLevel.CONSTRUCTORS, VisibilityLevel.VIS_PUBLIC, FacilityCode.FAC_OBJECT_STORE, getClass().getName() + "(" + tableName + ")"); } try { initialise(tableName); } catch (Exception e) { throw new ObjectStoreError(e.toString(), e); } }
protected boolean write_state(Uid objUid, String tName, OutputObjectState state, int s) throws ObjectStoreException { if (!storeValid()) return false; else return _theImple.write_state(objUid, tName, state, s, getTableName()); }
public boolean allTypes(InputObjectState foundTypes) throws ObjectStoreException { if (tsLogger.arjLogger.isDebugEnabled()) { tsLogger.arjLogger.debug(DebugLevel.FUNCTIONS, VisibilityLevel.VIS_PUBLIC, FacilityCode.FAC_OBJECT_STORE, "JDBCStore.allTypes(" + foundTypes + ")"); } if (storeValid()) return _theImple.allTypes(foundTypes, getTableName()); else return false; }
public boolean hide_state(Uid objUid, String tName) throws ObjectStoreException { if (tsLogger.arjLogger.isDebugEnabled()) { tsLogger.arjLogger.debug(DebugLevel.FUNCTIONS, VisibilityLevel.VIS_PUBLIC, FacilityCode.FAC_OBJECT_STORE, "ShadowingStore.hide_state(" + objUid + ", " + tName + ")"); } /* Bail out if the object store is not set up */ if (storeValid()) return _theImple.hide_state(objUid, tName, getTableName()); else return false; }
public boolean reveal_state(Uid objUid, String tName) throws ObjectStoreException { if (tsLogger.arjLogger.isDebugEnabled()) { tsLogger.arjLogger.debug(DebugLevel.FUNCTIONS, VisibilityLevel.VIS_PUBLIC, FacilityCode.FAC_OBJECT_STORE, "ShadowingStore.reveal_state(" + objUid + ", " + tName + ")"); } if (storeValid()) return _theImple.reveal_state(objUid, tName, getTableName()); else return false; }
public boolean commit_state(Uid objUid, String tName) throws ObjectStoreException { if (tsLogger.arjLogger.isDebugEnabled()) { tsLogger.arjLogger.debug(DebugLevel.FUNCTIONS, VisibilityLevel.VIS_PUBLIC, FacilityCode.FAC_OBJECT_STORE, "JDBCStore.commit_state(" + objUid + ", " + tName + ")"); } /* Bail out if the object store is not set up */ if (!storeValid()) return false; else return _theImple.commit_state(objUid, tName, getTableName()); }
public boolean allObjUids(String tName, InputObjectState state, int match) throws ObjectStoreException { if (tsLogger.arjLogger.isDebugEnabled()) { tsLogger.arjLogger.debug(DebugLevel.FUNCTIONS, VisibilityLevel.VIS_PUBLIC, FacilityCode.FAC_OBJECT_STORE, "JDBCStore.allObjUids(" + tName + ", " + state + ", " + match + ")"); } if (storeValid()) return _theImple.allObjUids(tName, state, match, getTableName()); else return false; }