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

This code example shows how to use the following methods:nextLongValue
	protected void insertWithAutoIncrement(Object entity,String insertSql) { 
		insertWithIdentity(entity,insertSql); 
	} 
 
	protected void insertWithSequence(Object entity,AbstractSequenceMaxValueIncrementer sequenceIncrementer,String insertSql) { 
		Long id = sequenceIncrementer.nextLongValue(); 
		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("-", ""); 
3
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java