org.kuali.rice.krad.data.jpa.converters
Class HashConverter

java.lang.Object
  extended by 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)

Constructor Summary
HashConverter()
           
 
Method Summary
 String convertToDatabaseColumn(String objectValue)
           This implementation hashes the value going to the database.
 String convertToEntityAttribute(String dataValue)
           This implementation directly returns the hash value coming from the database.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HashConverter

public HashConverter()
Method Detail

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.