net.sf.blunder.service.persistence.binary
Class BlunderBinaryService

java.lang.Object
  extended by net.sf.blunder.service.persistence.InMemoryPersistenceService
      extended by net.sf.blunder.service.persistence.binary.BlunderBinaryService
All Implemented Interfaces:
BlunderPersistenceService

public class BlunderBinaryService
extends InMemoryPersistenceService

Binary implementation for a BlunderPersistenceService. It reads and writes data from/to a Java serialized file.

Author:
Ambrosi Lucas

Constructor Summary
BlunderBinaryService()
           
 
Method Summary
protected  String getEmptyOrValueString(String value)
          Returns the value as it's passed.
 HashMap<Long,ExceptionRelation> readData()
          Binary implementation of the data reader.
 void writeData()
          Binary implementation of the data writer.
 
Methods inherited from class net.sf.blunder.service.persistence.InMemoryPersistenceService
delete, findBy, findByBusiness, findByLeaf, findByLeafAndBusiness, findByLeafAndRoot, findByRoot, findDefaultRelation, getData, getFilePath, getInputStream, getOutputStream, getReader, getWriter, learn, refresh, setData, setFilePath, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlunderBinaryService

public BlunderBinaryService()
Method Detail

getEmptyOrValueString

protected String getEmptyOrValueString(String value)
Returns the value as it's passed.

Overrides:
getEmptyOrValueString in class InMemoryPersistenceService
Parameters:
value -
Returns:
the value as it's passed.
See Also:
net.sf.blunder.service.persistence.InMemoryPersistenceService#getEmptyOrValueString()

readData

public HashMap<Long,ExceptionRelation> readData()
Binary implementation of the data reader.

Specified by:
readData in class InMemoryPersistenceService
See Also:
InMemoryPersistenceService.readData()

writeData

public void writeData()
Binary implementation of the data writer.

Specified by:
writeData in class InMemoryPersistenceService
See Also:
InMemoryPersistenceService.writeData()


Copyright © 2009 Blunder. All Rights Reserved.