Refine search
@SqlUpdate @GetGeneratedKeys public Long addHistoryFromTransaction(@EntityHistoryBinder EntityHistoryModelDao<M, E> history, @SmartBindBean InternalCallContext context); }
@SqlBatch("insert into something (name, id) values (:name, nextval('id_sequence'))") @GetGeneratedKeys(columnName = "id") public int[] insert(@Bind("name") List<String> names);
final ResultSetMapper mapper; try { mapper = ggk.value().newInstance();
@Override public Object map(int index, ResultSet r, StatementContext ctx) throws SQLException { Method m = ctx.getSqlObjectMethod(); Class<?> rt = m.getReturnType(); GetGeneratedKeys ggk = m.getAnnotation(GetGeneratedKeys.class); String keyColumn = ggk.columnName(); ResultSetMapper f; if (!"".equals(keyColumn)) { f = figureOutMapper(rt, keyColumn); } else { f = factory.mapperFor(rt, ctx); } return f.map(index, r, ctx); }
@SqlBatch("insert into something (name) values (:it)") @GetGeneratedKeys public int[] insert(@Bind List<String> names);
final ResultSetMapper mapper; try { mapper = ggk.value().newInstance();
@SqlUpdate("INSERT INTO transactions (start_time) VALUES (CURRENT_TIMESTAMP)") @GetGeneratedKeys long insertTransaction();
@SqlUpdate("INSERT INTO transactions (start_time) VALUES (CURRENT_TIMESTAMP)") @GetGeneratedKeys long insertTransaction();
@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);
@GetGeneratedKeys @SqlUpdate("update jdbc_sources set username = :j.username," + " password = :j.password where id = :j.id") protected abstract int updateJdbc(@BindBean("j") JdbcSource source);
@GetGeneratedKeys @SqlUpdate("update quboledb_sources set dbtap_id = :d.dbTapId," + " auth_token = :d.authToken where id = :d.id") protected abstract int updateQubole(@BindBean("d") QuboleDbSource db);
@GetGeneratedKeys @SqlUpdate("INSERT INTO branches (host, organization, repository, repositoryId, branch, active) VALUES (:host, :organization, :repository, :repositoryId, :branch, :active)") int insert(@BindWithRosetta GitInfo gitInfo);
@GetGeneratedKeys @SqlUpdate("INSERT INTO module_builds (repoBuildId, moduleId, buildNumber, state) VALUES (:repoBuildId, :moduleId, :buildNumber, :state)") long skip(@BindWithRosetta ModuleBuild build);
@GetGeneratedKeys @SqlUpdate("INSERT INTO module_builds (repoBuildId, moduleId, buildNumber, state) VALUES (:repoBuildId, :moduleId, :buildNumber, :state)") long enqueue(@BindWithRosetta ModuleBuild build);
@SqlUpdate("INSERT INTO nodes (node_identifier) VALUES (:nodeIdentifier)") @GetGeneratedKeys int insertNode(@Bind("nodeIdentifier") String nodeIdentifier);
@GetGeneratedKeys @SqlUpdate("INSERT INTO instant_message_configs (branchId, moduleId, channelName, onFinish, onFail, onChange, onRecover, active) VALUES (:branchId, :moduleId, :channelName, :onFinish, :onFail, :onChange, :onRecover, :active)") long insert(@BindWithRosetta InstantMessageConfiguration instantMessageConfiguration);
@GetGeneratedKeys @SqlUpdate("INSERT INTO repo_builds (branchId, buildNumber, state, buildTrigger, buildOptions) VALUES (:branchId, :buildNumber, :state, :buildTrigger, :buildOptions)") long enqueue(@BindWithRosetta RepositoryBuild build);
@SqlUpdate("insert into PERSON (name, email, phone) values (:p.name, :p.emailVal, :p.phone)") @GetGeneratedKeys long insert(@BindBean("p") Person person);
@SqlUpdate("insert into ADDRESS (streetAddress, postalCode, postalPlace) values (:a.streetAddress, :a.postalCode, :a.postalPlace)") @GetGeneratedKeys long insert(@BindBean("a") Address address);
@SqlUpdate("insert into ADDRESS (streetAddress, postalCode, postalPlace) values (:a.streetAddress, :a.postalCode, :a.postalPlace)") @GetGeneratedKeys public abstract Long insert(@BindBean("a") Address address);