Class Utils
- java.lang.Object
-
- de.fraunhofer.iosb.ilt.sensorthingsmanager.utils.Utils
-
public class Utils extends Object
- Author:
- scf
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T extends de.fraunhofer.iosb.ilt.sta.model.Entity<T>>
voiddeleteAll(de.fraunhofer.iosb.ilt.sta.dao.BaseDao<T> doa)static voiddeleteAll(de.fraunhofer.iosb.ilt.sta.service.SensorThingsService sts)static booleanisNullOrEmpty(String string)Returns true if the given string is null, or empty.static voidshowAlert(javafx.scene.control.Alert.AlertType type, String title, String text, Throwable exception)
-
-
-
Method Detail
-
isNullOrEmpty
public static boolean isNullOrEmpty(String string)
Returns true if the given string is null, or empty.- Parameters:
string- the string to check.- Returns:
- true if string == null || string.isEmpty()
-
showAlert
public static void showAlert(javafx.scene.control.Alert.AlertType type, String title, String text, Throwable exception)
-
deleteAll
public static void deleteAll(de.fraunhofer.iosb.ilt.sta.service.SensorThingsService sts) throws de.fraunhofer.iosb.ilt.sta.ServiceFailureException- Throws:
de.fraunhofer.iosb.ilt.sta.ServiceFailureException
-
deleteAll
public static <T extends de.fraunhofer.iosb.ilt.sta.model.Entity<T>> void deleteAll(de.fraunhofer.iosb.ilt.sta.dao.BaseDao<T> doa) throws de.fraunhofer.iosb.ilt.sta.ServiceFailureException- Throws:
de.fraunhofer.iosb.ilt.sta.ServiceFailureException
-
-