{
pstmt.setInt(1, ObjectStore.OS_COMMITTED_HIDDEN);
}
else
{
throw new ObjectStoreException("can't commit object "
+ objUid + " in state " + currState);
}
pstmt.setString(2, objUid.stringForm());
pstmt.setString(3, typeName);
pstmt.setInt(4, currState);
int rowcount = pstmt.executeUpdate();
if (rowcount > 0)
{
result = true;
}
}
catch (Throwable e)
{
cleanup = false;
if (retryConnection(e, pool))
{
return commit_state(objUid, typeName, tableName);
}
else
{
throw new ObjectStoreException(e.toString());
}
}
finally
{
if (cleanup)
freePool(pool);
}
}
else
throw new ObjectStoreException("commit_state - object with uid "
+ objUid + " has no TypeName");
return result;
}