Spring Framework DB2SequenceMaxValueIncrementer - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Spring Framework DB2SequenceMaxValueIncrementer class.

This code example shows how to use the following methods:
		setIdentifierProperty(entity, id); 
		getNamedParameterJdbcTemplate().update(insertSql, new BeanPropertySqlParameterSource(entity)); 
	} 
	 
	protected void insertWithDB2Sequence(Object entity,String sequenceName,String insertSql) { 
		insertWithSequence(entity, new DB2SequenceMaxValueIncrementer(getDataSource(),sequenceName), insertSql); 
	} 
	 
	protected void insertWithOracleSequence(Object entity,String sequenceName,String insertSql) { 
		insertWithSequence(entity, new OracleSequenceMaxValueIncrementer(getDataSource(),sequenceName), insertSql); 
	} 
	 
	protected void insertWithUUID(Object entity,String insertSql) { 
		String uuid = UUID.randomUUID().toString().replace("-", ""); 
		setIdentifierProperty(entity, uuid); 
		getNamedParameterJdbcTemplate().update(insertSql, new BeanPropertySqlParameterSource(entity)); 
	} 
	/** 
	 * 手工分配ID插入 
	 * @param entity 
3
CodeRank