Code example for Callable

Methods: call

0
	} 
 
	@SuppressWarnings("unchecked") 
	public static <T> T executeInSafety(final Callable<?> callable) {
		try { 
			final Object call = callable.call();
			if (null == call) {
				return null; 
			} 
			return (T) call;
		} 
		catch (final SQLException sqlException) {
			logError(sqlException);
		} 
		catch (final Exception e) {
			logError(e);
		} 
		return null; 
	} 
 
	private static void logError(final Exception e) {