public class FileBasedStoreObjectAccessor extends java.lang.Object implements PersistenceObjectStore.StoreObjectAccessor
StoreObjectAccessorLocking if multiple threads may be accessing this.| Constructor and Description |
|---|
FileBasedStoreObjectAccessor(java.io.File file,
java.lang.String tmpExtension) |
| Modifier and Type | Method and Description |
|---|---|
void |
append(java.lang.String val) |
void |
delete() |
boolean |
exists() |
java.lang.String |
get()
gets the object, or null if not found
|
byte[] |
getBytes() |
java.util.Date |
getLastModifiedDate()
last modified date, null if not supported or does not exist
|
void |
put(java.lang.String val) |
java.lang.String |
toString() |
public FileBasedStoreObjectAccessor(java.io.File file,
java.lang.String tmpExtension)
public java.lang.String get()
PersistenceObjectStore.StoreObjectAccessorget in interface PersistenceObjectStore.StoreObjectAccessorpublic byte[] getBytes()
getBytes in interface PersistenceObjectStore.StoreObjectAccessorpublic boolean exists()
exists in interface PersistenceObjectStore.StoreObjectAccessorpublic void put(java.lang.String val)
put in interface PersistenceObjectStore.StoreObjectAccessorpublic void append(java.lang.String val)
append in interface PersistenceObjectStore.StoreObjectAccessorpublic void delete()
delete in interface PersistenceObjectStore.StoreObjectAccessorpublic java.util.Date getLastModifiedDate()
PersistenceObjectStore.StoreObjectAccessorgetLastModifiedDate in interface PersistenceObjectStore.StoreObjectAccessorpublic java.lang.String toString()
toString in class java.lang.Object