Validator.validateNotNull(entityClass, "The entity class should not be null for removal by id");
Validator.validateNotNull(primaryKey, "The primary key should not be null for removal by id");
PersistenceManagerOperations context = initPersistenceContext(entityClass, primaryKey, options);
entityValidator.validatePrimaryKey(context.getIdMeta(), primaryKey);
return context.deleteById();
}
protected <T> AchillesFuture<T> asyncFind(final Class<T> entityClass, final Object primaryKey, Options options) {
Validator.validateNotNull(entityClass, "Entity class should not be null for find by id");
Validator.validateNotNull(primaryKey, "Entity primaryKey should not be null for find by id");