/** * The same as ensureRecordOnline(ServerRecord record), * but allows to specify a message instead of default one * @param message message to display in the case the record is not connected * @return */ public static boolean ensureRecordOnline(ExecutionEnvironment env, String message) { return getDefault().ensureRecordOnlineImpl(env, message); }
/** * Checks whether the record is initialized, * if it is not, ask user whether (s)he wants to (re)connect, * asks password if needs, connects * @param record record to check * @return true in the case record is connected (or it wasn't, user agreed, and it's now connected); * otherwise false */ public static boolean ensureRecordOnline(ExecutionEnvironment env) { return getDefault().ensureRecordOnlineImpl(env); }