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.
+ Save this method
Example 1
Project: session-cloud   File: CustomTokenStore.java   View Source Code 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) {
		e.printStackTrace();
	}
	return false;
}