org.kuali.rice.krad.data.jpa.converters
Class HashConverter
java.lang.Object
org.kuali.rice.krad.data.jpa.converters.HashConverter
- All Implemented Interfaces:
- javax.persistence.AttributeConverter<String,String>
public class HashConverter
- extends Object
- implements javax.persistence.AttributeConverter<String,String>
Calls the core service to hash values going to the database.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HashConverter
public HashConverter()
convertToDatabaseColumn
public String convertToDatabaseColumn(String objectValue)
-
This implementation hashes the value going to the database.
- Specified by:
convertToDatabaseColumn
in interface javax.persistence.AttributeConverter<String,String>
convertToEntityAttribute
public String convertToEntityAttribute(String dataValue)
-
This implementation directly returns the hash value coming from the database.
- Specified by:
convertToEntityAttribute
in interface javax.persistence.AttributeConverter<String,String>
Copyright © 2005–2014 The Kuali Foundation. All rights reserved.