/** * Remove the object's committed state. * * @param uid The object to work on. * @param typeName The type of the object to work on. * @return <code>true</code> if no errors occurred, <code>false</code> * otherwise. * @throws ObjectStoreException if things go wrong. */ public boolean remove_committed(Uid uid, String typeName) throws ObjectStoreException { try { long id = getId(uid, typeName); // look up the id *before* doing the remove from state, or it won't be there any more. getContentForType(typeName).remove(uid); journal.appendDeleteRecord(id, syncDeletes); } catch(Exception e) { throw new ObjectStoreException(e); } return true; }
/** * Remove the object's committed state. * * @param uid The object to work on. * @param typeName The type of the object to work on. * @return <code>true</code> if no errors occurred, <code>false</code> * otherwise. * @throws ObjectStoreException if things go wrong. */ public boolean remove_committed(Uid uid, String typeName) throws ObjectStoreException { try { RecordInfo record = getContentForType(typeName).remove(uid); long id = (record != null ? record.id : getId(uid, typeName)); journal.appendDeleteRecord(id, syncDeletes); return true; } catch (IllegalStateException e) { tsLogger.i18NLogger.warn_hornetqobjectstore_remove_state_exception(e); return false; } catch(Exception e) { throw new ObjectStoreException(e); } }
/** * Remove the object's committed state. * * @param uid The object to work on. * @param typeName The type of the object to work on. * @return <code>true</code> if no errors occurred, <code>false</code> * otherwise. * @throws ObjectStoreException if things go wrong. */ public boolean remove_committed(Uid uid, String typeName) throws ObjectStoreException { try { long id = getId(uid, typeName); // look up the id *before* doing the remove from state, or it won't be there any more. getContentForType(typeName).remove(uid); journal.appendDeleteRecord(id, syncDeletes); return true; } catch (IllegalStateException e) { tsLogger.i18NLogger.warn_hornetqobjectstore_remove_state_exception(e); return false; } catch(Exception e) { throw new ObjectStoreException(e); } }
/** * Remove the object's committed state. * * @param uid The object to work on. * @param typeName The type of the object to work on. * @return <code>true</code> if no errors occurred, <code>false</code> * otherwise. * @throws ObjectStoreException if things go wrong. */ public boolean remove_committed(Uid uid, String typeName) throws ObjectStoreException { try { RecordInfo record = getContentForType(typeName).remove(uid); long id = (record != null ? record.id : getId(uid, typeName)); journal.appendDeleteRecord(id, syncDeletes); return true; } catch (IllegalStateException e) { tsLogger.i18NLogger.warn_hornetqobjectstore_remove_state_exception(e); return false; } catch(Exception e) { throw new ObjectStoreException(e); } }
/** * Remove the object's committed state. * * @param uid The object to work on. * @param typeName The type of the object to work on. * @return <code>true</code> if no errors occurred, <code>false</code> * otherwise. * @throws ObjectStoreException if things go wrong. */ public boolean remove_committed(Uid uid, String typeName) throws ObjectStoreException { try { long id = getId(uid, typeName); // look up the id *before* doing the remove from state, or it won't be there any more. getContentForType(typeName).remove(uid); journal.appendDeleteRecord(id, syncDeletes); return true; } catch (IllegalStateException e) { tsLogger.i18NLogger.warn_hornetqobjectstore_remove_state_exception(e); return false; } catch(Exception e) { throw new ObjectStoreException(e); } }
/** * Remove the object's committed state. * * @param uid The object to work on. * @param typeName The type of the object to work on. * @return <code>true</code> if no errors occurred, <code>false</code> * otherwise. * @throws ObjectStoreException if things go wrong. */ public boolean remove_committed(Uid uid, String typeName) throws ObjectStoreException { try { RecordInfo record = getContentForType(typeName).remove(uid); long id = (record != null ? record.id : getId(uid, typeName)); journal.appendDeleteRecord(id, syncDeletes); return true; } catch (IllegalStateException e) { tsLogger.i18NLogger.warn_hornetqobjectstore_remove_state_exception(e); return false; } catch(Exception e) { throw new ObjectStoreException(e); } }
/** * Remove the object's committed state. * * @param uid The object to work on. * @param typeName The type of the object to work on. * @return <code>true</code> if no errors occurred, <code>false</code> * otherwise. * @throws ObjectStoreException if things go wrong. */ public boolean remove_committed(Uid uid, String typeName) throws ObjectStoreException { try { RecordInfo record = getContentForType(typeName).remove(uid); long id = (record != null ? record.id : getId(uid, typeName)); journal.appendDeleteRecord(id, syncDeletes); return true; } catch (IllegalStateException e) { tsLogger.i18NLogger.warn_hornetqobjectstore_remove_state_exception(e); return false; } catch(Exception e) { throw new ObjectStoreException(e); } }
/** * Remove the object's committed state. * * @param uid The object to work on. * @param typeName The type of the object to work on. * @return <code>true</code> if no errors occurred, <code>false</code> * otherwise. * @throws ObjectStoreException if things go wrong. */ public boolean remove_committed(Uid uid, String typeName) throws ObjectStoreException { try { RecordInfo record = getContentForType(typeName).remove(uid); long id = (record != null ? record.id : getId(uid, typeName)); journal.appendDeleteRecord(id, syncDeletes); return true; } catch (IllegalStateException e) { tsLogger.i18NLogger.warn_hornetqobjectstore_remove_state_exception(e); return false; } catch(Exception e) { throw new ObjectStoreException(e); } }
/** * Remove the object's committed state. * * @param uid The object to work on. * @param typeName The type of the object to work on. * @return <code>true</code> if no errors occurred, <code>false</code> * otherwise. * @throws ObjectStoreException if things go wrong. */ public boolean remove_committed(Uid uid, String typeName) throws ObjectStoreException { try { long id = getId(uid, typeName); // look up the id *before* doing the remove from state, or it won't be there any more. getContentForType(typeName).remove(uid); journal.appendDeleteRecord(id, syncDeletes); return true; } catch (IllegalStateException e) { tsLogger.i18NLogger.warn_hornetqobjectstore_remove_state_exception(e); return false; } catch(Exception e) { throw new ObjectStoreException(e); } }
/** * Remove the object's committed state. * * @param uid The object to work on. * @param typeName The type of the object to work on. * @return <code>true</code> if no errors occurred, <code>false</code> * otherwise. * @throws ObjectStoreException if things go wrong. */ public boolean remove_committed(Uid uid, String typeName) throws ObjectStoreException { try { RecordInfo record = getContentForType(typeName).remove(uid); long id = (record != null ? record.id : getId(uid, typeName)); journal.appendDeleteRecord(id, syncDeletes); return true; } catch (IllegalStateException e) { tsLogger.i18NLogger.warn_hornetqobjectstore_remove_state_exception(e); return false; } catch(Exception e) { throw new ObjectStoreException(e); } }
byte[] data = outputBuffer.buffer(); RecordInfo record = new RecordInfo(getId(uid, typeName), RECORD_TYPE, data, false, (short)0); previousRecord = getContentForType(typeName).putIfAbsent(uid, record);
byte[] data = outputBuffer.buffer(); RecordInfo record = new RecordInfo(getId(uid, typeName), RECORD_TYPE, data, false, (short)0); previousRecord = getContentForType(typeName).putIfAbsent(uid, record);
byte[] data = outputBuffer.buffer(); RecordInfo record = new RecordInfo(getId(uid, typeName), RECORD_TYPE, data, false, (short)0); previousRecord = getContentForType(typeName).putIfAbsent(uid, record);
byte[] data = outputBuffer.buffer(); RecordInfo record = new RecordInfo(getId(uid, typeName), RECORD_TYPE, data, false, (short)0); previousRecord = getContentForType(typeName).putIfAbsent(uid, record);
outputBuffer.packString(typeName); outputBuffer.packBytes(txData.buffer()); long id = getId(uid, typeName); byte[] data = outputBuffer.buffer();
byte[] data = outputBuffer.buffer(); RecordInfo record = new RecordInfo(getId(uid, typeName), RECORD_TYPE, data, false, (short)0); previousRecord = getContentForType(typeName).putIfAbsent(uid, record);
byte[] data = outputBuffer.buffer(); RecordInfo record = new RecordInfo(getId(uid, typeName), RECORD_TYPE, data, false, (short)0); previousRecord = getContentForType(typeName).putIfAbsent(uid, record);
outputBuffer.packString(typeName); outputBuffer.packBytes(txData.buffer()); long id = getId(uid, typeName); byte[] data = outputBuffer.buffer();
outputBuffer.packString(typeName); outputBuffer.packBytes(txData.buffer()); long id = getId(uid, typeName); byte[] data = outputBuffer.buffer();
outputBuffer.packString(typeName); outputBuffer.packBytes(txData.buffer()); long id = getId(uid, typeName); byte[] data = outputBuffer.buffer();