/** * Deletes the {@link ByteArrayEntity} with the given id from the database. * Important: this operation will NOT do any optimistic locking, to avoid loading the * bytes in memory. So use this method only in conjunction with an entity that has * optimistic locking!. */ public void deleteByteArrayById(String byteArrayEntityId) { getDbEntityManager().delete(ByteArrayEntity.class, "deleteByteArrayNoRevisionCheck", byteArrayEntityId); }
public void addRemovalTimeToByteArraysByRootProcessInstanceId(String rootProcessInstanceId, Date removalTime) { Map<String, Object> parameters = new HashMap<>(); parameters.put("rootProcessInstanceId", rootProcessInstanceId); parameters.put("removalTime", removalTime); getDbEntityManager() .updatePreserveOrder(ByteArrayEntity.class, "updateByteArraysByRootProcessInstanceId", parameters); }
/** * Deletes the {@link ByteArrayEntity} with the given id from the database. * Important: this operation will NOT do any optimistic locking, to avoid loading the * bytes in memory. So use this method only in conjunction with an entity that has * optimistic locking!. */ public void deleteByteArrayById(String byteArrayEntityId) { getDbEntityManager().delete(ByteArrayEntity.class, "deleteByteArrayNoRevisionCheck", byteArrayEntityId); }
public void addRemovalTimeToByteArraysByRootProcessInstanceId(String rootProcessInstanceId, Date removalTime) { Map<String, Object> parameters = new HashMap<>(); parameters.put("rootProcessInstanceId", rootProcessInstanceId); parameters.put("removalTime", removalTime); getDbEntityManager() .updatePreserveOrder(ByteArrayEntity.class, "updateByteArraysByRootProcessInstanceId", parameters); }
public DbOperation deleteByteArraysByRemovalTime(Date removalTime, int minuteFrom, int minuteTo, int batchSize) { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("removalTime", removalTime); if (minuteTo - minuteFrom + 1 < 60) { parameters.put("minuteFrom", minuteFrom); parameters.put("minuteTo", minuteTo); } parameters.put("batchSize", batchSize); return getDbEntityManager() .deletePreserveOrder(ByteArrayEntity.class, "deleteByteArraysByRemovalTime", new ListQueryParameterObject(parameters, 0, batchSize)); }
public DbOperation deleteByteArraysByRemovalTime(Date removalTime, int minuteFrom, int minuteTo, int batchSize) { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("removalTime", removalTime); if (minuteTo - minuteFrom + 1 < 60) { parameters.put("minuteFrom", minuteFrom); parameters.put("minuteTo", minuteTo); } parameters.put("batchSize", batchSize); return getDbEntityManager() .deletePreserveOrder(ByteArrayEntity.class, "deleteByteArraysByRemovalTime", new ListQueryParameterObject(parameters, 0, batchSize)); }
public void insertByteArray(ByteArrayEntity arr) { arr.setCreateTime(ClockUtil.getCurrentTime()); getDbEntityManager().insert(arr); }
public void insertByteArray(ByteArrayEntity arr) { arr.setCreateTime(ClockUtil.getCurrentTime()); getDbEntityManager().insert(arr); }
/** * Deletes the {@link ByteArrayEntity} with the given id from the database. * Important: this operation will NOT do any optimistic locking, to avoid loading the * bytes in memory. So use this method only in conjunction with an entity that has * optimistic locking!. */ public void deleteByteArrayById(String byteArrayEntityId) { getDbEntityManager().delete(ByteArrayEntity.class, "deleteByteArrayNoRevisionCheck", byteArrayEntityId); }
public void addRemovalTimeToByteArraysByRootProcessInstanceId(String rootProcessInstanceId, Date removalTime) { Map<String, Object> parameters = new HashMap<>(); parameters.put("rootProcessInstanceId", rootProcessInstanceId); parameters.put("removalTime", removalTime); getDbEntityManager() .updatePreserveOrder(ByteArrayEntity.class, "updateByteArraysByRootProcessInstanceId", parameters); }
public DbOperation deleteByteArraysByRemovalTime(Date removalTime, int minuteFrom, int minuteTo, int batchSize) { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("removalTime", removalTime); if (minuteTo - minuteFrom + 1 < 60) { parameters.put("minuteFrom", minuteFrom); parameters.put("minuteTo", minuteTo); } parameters.put("batchSize", batchSize); return getDbEntityManager() .deletePreserveOrder(ByteArrayEntity.class, "deleteByteArraysByRemovalTime", new ListQueryParameterObject(parameters, 0, batchSize)); }
public void insertByteArray(ByteArrayEntity arr) { arr.setCreateTime(ClockUtil.getCurrentTime()); getDbEntityManager().insert(arr); }