Hi All
I am currently having some methods which have
java objects as input parameters.
say if i have an object called Service (which is an input parameter to a method)
This Service object comprises of 3 member variables -
uri, payload & principal.
All these 3 member variables will be extracted in the above mentioned method & then inserted into the database.
In the database, uri & principal are not null columns so I am checking in the method if the 2 are null in the method itself before invoking the database operation. If they are null I throw a custom exception stating the nullness of mandatory parameters as the reason & do not invoke the database operation at all.
This is with null. I want to build a comprehensive sort of validator which can comprise of null checks, empty
string validations etc .
Can someone list some pointers to documents or links where I can find more info on the same
Bye
Mahesh