/** Creates a command to update a ProductType selected by its ID using several update actions. @param versioned the object to update (so directly a {@link ProductType}) or just the version/ID information of it @param updateActions the updates @return the update command for ProductType */ static ProductTypeUpdateCommand of(final Versioned<ProductType> versioned, final List<? extends UpdateAction<ProductType>> updateActions) { return new ProductTypeUpdateCommandImpl(versioned, updateActions); }
static ProductTypeUpdateCommand of(final Versioned<ProductType> versioned, final List<? extends UpdateAction<ProductType>> updateActions) { return new ProductTypeUpdateCommandImpl(versioned, updateActions); }
/** Creates a command to update a ProductType selected by its ID using one update action. @param versioned the object to update (so directly a {@link ProductType}) or just the version/ID information of it @param updateAction the update to perform @return the update command for ProductType */ static ProductTypeUpdateCommand of(final Versioned<ProductType> versioned, final UpdateAction<ProductType> updateAction) { return new ProductTypeUpdateCommandImpl(versioned, Collections.singletonList(updateAction)); }
static ProductTypeUpdateCommand of(final Versioned<ProductType> versioned, final UpdateAction<ProductType> updateAction) { return new ProductTypeUpdateCommandImpl(versioned, Collections.singletonList(updateAction)); }
static ProductTypeUpdateCommand ofKey(final String key, final Long version, final List<? extends UpdateAction<ProductType>> updateActions) { final Versioned<ProductType> versioned = Versioned.of("key=" + key, version);//hack for simple reuse return new ProductTypeUpdateCommandImpl(versioned, updateActions); }
/** Creates a command to update a ProductType selected by its key using several update actions. @param key the key of the ProductType to update, see {@link ProductType#getKey()} @param version the current version of the ProductType, see {@link ProductType#getVersion()} @param updateActions the updates @return the update command for ProductType */ static ProductTypeUpdateCommand ofKey(final String key, final Long version, final List<? extends UpdateAction<ProductType>> updateActions) { final Versioned<ProductType> versioned = Versioned.of("key=" + urlEncode(key), version);//hack for simple reuse return new ProductTypeUpdateCommandImpl(versioned, updateActions); }