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

This code example shows how to use the following methods:
	 * the provided item. 
	 * @param item the item to use for parameter values 
	 */ 
	@Override 
	public SqlParameterSource createSqlParameterSource(T item) { 
		return new BeanPropertySqlParameterSource(item); 
	} 
 
} 
5
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:
 
    private NamedParameterJdbcTemplate namedParameterJdbcTemplate; 
 
    @Override 
	public void savePlayer(Player player) { 
        namedParameterJdbcTemplate.update(INSERT_PLAYER, new BeanPropertySqlParameterSource(player)); 
	} 
 
    public void setDataSource(DataSource dataSource) { 
        this.namedParameterJdbcTemplate = new NamedParameterJdbcTemplate(dataSource); 
    } 
} 
5
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:
This code example shows how to use the following methods:hasValue
This code example shows how to use the following methods:
	} 
 
	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("-", ""); 
		setIdentifierProperty(entity, uuid); 
		getNamedParameterJdbcTemplate().update(insertSql, new BeanPropertySqlParameterSource(entity)); 
4
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
See Code Examples for Spring Framework BeanPropertySqlParameterSource Methods: