Java Code Examples for org.apache.commons.lang3.math.NumberUtils.INTEGER_ONE

The following are Jave code examples for showing how to use INTEGER_ONE of the org.apache.commons.lang3.math.NumberUtils class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: session-cloud   File:   Source Code and License Vote up 5 votes
public boolean setSubscribeUrl(final String clientId, final String callbackUrl) {
	try {
		int updateN = jdbcTemplate.update(CALLBACK_URL_UPDATE_STATEMENT, new Object[]{callbackUrl,clientId});
		return updateN == NumberUtils.INTEGER_ONE;
	} catch (DataAccessException e) {
	return false;