org.progeeks.repository
Class Repository.WriteLockedItem

java.lang.Object
  extended by org.progeeks.repository.Repository.ReadLockedItem
      extended by org.progeeks.repository.Repository.WriteLockedItem
All Implemented Interfaces:
RepositoryItem, Identifiable
Enclosing class:
Repository

protected class Repository.WriteLockedItem
extends Repository.ReadLockedItem

Repository item implementation for items that are locked for reading and writing.


Constructor Summary
Repository.WriteLockedItem(java.lang.String itemId, java.io.File dataFile, java.io.File metaDataFile)
           
 
Method Summary
 void delete()
          Deletes the item and its meta-data from the repository.
 void setMetaData(MetaObject metaData)
          Sets the meta-data for a file, replacing any existing meta-data it had.
 
Methods inherited from class org.progeeks.repository.Repository.ReadLockedItem
getDataFile, getId, getLock, getMetaData, release, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Repository.WriteLockedItem

public Repository.WriteLockedItem(java.lang.String itemId,
                                  java.io.File dataFile,
                                  java.io.File metaDataFile)
Method Detail

delete

public void delete()
Description copied from interface: RepositoryItem
Deletes the item and its meta-data from the repository. This can only be done if the item was obtained with a write lock.

Specified by:
delete in interface RepositoryItem
Overrides:
delete in class Repository.ReadLockedItem

setMetaData

public void setMetaData(MetaObject metaData)
Description copied from interface: RepositoryItem
Sets the meta-data for a file, replacing any existing meta-data it had. This can only be done if the item was obtained with a write lock.

Specified by:
setMetaData in interface RepositoryItem
Overrides:
setMetaData in class Repository.ReadLockedItem


Copyright © 2002-2003 Paul Speed. All Rights Reserved.