Package com.skava.address.util
Class AddressUtils
java.lang.Object
com.skava.address.util.AddressUtils
- All Implemented Interfaces:
Serializable
This is a Utility class for address which contains string validator and util methods used in this service.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
Data stored in database table will be converted to domain attributestatic String
static long
Gets the long.static String
Gets the string.static void
setTextEncryptorComponent
(com.skava.core.crypto.TextEncryptorComponent component) domain attribute will be converted to the data representation that can be stored in a cache
-
Constructor Details
-
AddressUtils
public AddressUtils()
-
-
Method Details
-
getString
Gets the string.- Parameters:
string
- the stringdefaultValue
- the default value- Returns:
- the string
-
setTextEncryptorComponent
public static void setTextEncryptorComponent(com.skava.core.crypto.TextEncryptorComponent component) domain attribute will be converted to the data representation that can be stored in a cache- Parameters:
valueToEncrypt
- the entity attribute to be converted
-
encrypt
-
decrypt
Data stored in database table will be converted to domain attribute- Parameters:
valueToDecrypt
- the data from the database column to be converted- Returns:
- converted entity attribute
-
getLong
Gets the long.- Parameters:
string
- the stringdefaultValue
- the default value- Returns:
- the long
-