Spring Framework OracleSequenceMaxValueIncrementer - 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 OracleSequenceMaxValueIncrementer class.

This code example shows how to use the following methods:
	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 
	 * @param insertSql 
	 */ 
	protected void insertWithAssigned(Object entity,String insertSql) { 
		getNamedParameterJdbcTemplate().update(insertSql, new BeanPropertySqlParameterSource(entity)); 
3
CodeRank
This code example shows how to use the following methods:
 */ 
public class OracleAuditor extends JdbcAuditor { 
 
	@Override 
	public int getNextEventId() { 
		return new OracleSequenceMaxValueIncrementer(getDataSource(), "NS_AUDIT_SEQ").nextIntValue(); 
	} 
 
} 
4
CodeRank