net.sf.blunder.service.persistence.binary
Class BlunderBinaryService
java.lang.Object
net.sf.blunder.service.persistence.InMemoryPersistenceService
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
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 |
BlunderBinaryService
public BlunderBinaryService()
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.