|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.progeeks.repository.Repository.ReadLockedItem
protected class Repository.ReadLockedItem
Repository item implementation for items that are locked for reading only.
| Constructor Summary | |
|---|---|
Repository.ReadLockedItem(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. |
java.io.File |
getDataFile()
Returns the file object for the item's data. |
java.lang.String |
getId()
Returns the id string that unique identifies the item in the repository. |
Lock |
getLock()
Returns the unique identifier for the lock that the repository item was obtained with. |
MetaObject |
getMetaData()
Returns the meta-data for the file. |
void |
release()
Releases the lock held on an item. |
void |
setMetaData(MetaObject metaData)
Sets the meta-data for a file, replacing any existing meta-data it had. |
java.lang.String |
toString()
Returns a string summary of the object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Repository.ReadLockedItem(java.lang.String itemId,
java.io.File dataFile,
java.io.File metaDataFile)
| Method Detail |
|---|
public void delete()
RepositoryItem
delete in interface RepositoryItempublic java.io.File getDataFile()
RepositoryItem
getDataFile in interface RepositoryItempublic java.lang.String getId()
RepositoryItem
getId in interface RepositoryItemgetId in interface Identifiablepublic Lock getLock()
RepositoryItem
getLock in interface RepositoryItempublic MetaObject getMetaData()
RepositoryItem
getMetaData in interface RepositoryItempublic void setMetaData(MetaObject metaData)
RepositoryItem
setMetaData in interface RepositoryItempublic void release()
RepositoryItem
release in interface RepositoryItempublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||