@SqlUpdate @Audited(ChangeType.UPDATE) public void renameBundleExternalKey(@Bind("externalKey") String externalKey, @Define("prefix") final String prefix, @SmartBindBean final InternalCallContext context);
@SqlUpdate("insert into queue_settings" + " (site_id, name, config, created_at, updated_at)" + " values (:siteId, :name, NULL, now(), now())") @GetGeneratedKeys int insertDefaultQueueSetting(@Bind("siteId") int siteId, @Bind("name") String name);
@SqlUpdate public void test(@SmartBindBean final InternalTenantContext context); }
@SqlUpdate @Audited(ChangeType.DELETE) public void markEmailAsDeleted(@SmartBindBean final AccountEmailModelDao accountEmail, @SmartBindBean final InternalCallContext context);
@SqlUpdate @GetGeneratedKeys public Long addHistoryFromTransaction(@EntityHistoryBinder EntityHistoryModelDao<M, E> history, @SmartBindBean InternalCallContext context); }
@GetGeneratedKeys @SqlUpdate("update data_sources set name = :d.name," + " type = :d.type, datasource_type = :d.datasourceType," + " url = :d.url, ds_set_id = :d.dsSetId where id = :d.id") public abstract int update(@BindBean("d") DataSource ds);
@SqlUpdate void insertEntry(@SmartBindBean T evt, @Define("tableName") final String tableName);
@SqlUpdate ( "INSERT INTO entity (id, slug, type, tenant_id) SELECT :entity.id, :entity.slug, :type, :tenantId " + "WHERE NOT EXISTS (SELECT 1 FROM entity where slug = :entity.slug AND type = :type AND tenant_id IS NOT DISTINCT FROM :tenantId)" ) Integer createEntityIfItDoesNotExist(@BindBean("entity") Entity entity, @Bind("type") String type, @Bind("tenantId") UUID tenantId);
@SqlUpdate("insert into workflow_definitions" + " (revision_id, name, config_id)" + " values (:revId, :name, :configId)") @GetGeneratedKeys long insertWorkflowDefinition(@Bind("revId") int revId, @Bind("name") String name, @Bind("configId") int configId);
@SqlUpdate ( "UPDATE addon " + "SET value = CAST (:addon.value AS json), " + " model = CAST (:addon.model AS json) " + "WHERE entity_id = :entity.id " + "AND source = :addon.source " + "AND addon_group = :addon.group " ) void updateAddonGroup(@BindBean("entity") T entity, @BindAddonGroup("addon") AddonGroup addon);