|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.midao.jdbc.core.utils.AssertUtils
public class AssertUtils
Assert Utils class. Allows throwing exception is input value is nill. Useful in cases when function cannot accept some it parameters as null
Constructor Summary | |
---|---|
AssertUtils()
|
Method Summary | |
---|---|
static void |
assertNotNull(java.lang.Object value)
Throws exception if value is null |
static void |
assertNotNull(java.lang.Object value,
java.sql.SQLException exception)
Throws exception if value is null. |
static void |
assertNotNull(java.lang.Object value,
java.lang.String message)
Throws exception if value is null. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AssertUtils()
Method Detail |
---|
public static void assertNotNull(java.lang.Object value)
value
- value which would be checkedpublic static void assertNotNull(java.lang.Object value, java.lang.String message)
value
- values which would be checkedmessage
- message which would be added to exceptionpublic static void assertNotNull(java.lang.Object value, java.sql.SQLException exception) throws java.sql.SQLException
value
- values which would be checkedexception
- Exception which would be thrown if value == null
java.sql.SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |