if (!storeValid()) return false; int currState = currentState(objUid, typeName, tableName); int pool = getPool(); if (retryConnection(e, pool)) return commit_state(objUid, typeName, tableName); freePool(pool);
/** * Add a new table to an existing implementation. * */ protected void addTable(String tableName) throws Exception { int pool = getPool(); Statement stmt = _theConnection[pool].createStatement(); try { createTable(stmt, tableName); } catch (SQLException ex) { // assume this is reporting that the table already exists: } finally { freePool(pool); } }
if (imageSize > getMaxStateSize()) throw new ObjectStoreException("Object state is too large - maximum size allowed: " + getMaxStateSize()); if (imageSize > 0 && storeValid()) int pool = getPool(); ResultSet rs = null; if(retryConnection(e, pool)) { return write_state(objUid, tName, state, s, tableName); } else { if (tsLogger.arjLoggerI18N.isWarnEnabled()) freePool(pool);
if (!storeValid()) return newImage; int pool = getPool(); ResultSet rs = null; if(retryConnection(e, pool)) { return read_state(objUid, tName, ft, tableName); } else { throw new ObjectStoreException(e.toString(), e); freePool(pool);
boolean cleanup = true; if (!storeValid()) return false; || (ft == ObjectStore.OS_UNCOMMITTED)) int pool = getPool(); if (retryConnection(e, pool)) return remove_state(objUid, name, ft, tableName); freePool(pool);
jdbcImple = (JDBCImple) jdbcImpleClass .newInstance(); jdbcImple.setShareStatus(shareStatus); if (!jdbcImple.initialise(connection, jdbcAccess, impleTableName))
public int currentState(Uid objUid, String tName) throws ObjectStoreException { if (storeValid()) return _theImple.currentState(objUid, tName, getTableName()); else return ObjectStore.OS_UNKNOWN; }
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 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; }
createTable(stmt, tableName);
boolean cleanup = true; if (storeValid()) int pool = getPool(); try if (retryConnection(e, pool)) return currentState(objUid, typeName, tableName); freePool(pool);
boolean cleanup = true; if (storeValid()) int state = currentState(objUid, typeName, tableName); int pool = getPool(); { e }); freePool(pool); return false; if (retryConnection(e, pool)) reveal_state(objUid, typeName, tableName); freePool(pool);
if (storeValid()) int state = currentState(objUid, typeName, tableName); int pool = getPool(); PreparedStatement pstmt = null; { e }); freePool(pool); return false; if (retryConnection(e, pool)) hide_state(objUid, typeName, tableName); freePool(pool);