Package ghidra.framework.store.remote
Class RemoteDatabaseItem
java.lang.Object
ghidra.framework.store.remote.RemoteFolderItem
ghidra.framework.store.remote.RemoteDatabaseItem
- All Implemented Interfaces:
- DatabaseItem,- FolderItem
RemoteDatabaseItem provides a FolderItem implementation
 for a remote database.  This item wraps an underlying versioned database
 which corresponds to a repository item.- 
Field SummaryFields inherited from class ghidra.framework.store.remote.RemoteFolderItemcontentType, fileID, itemName, parentPath, repository, version, versionTimeFields inherited from interface ghidra.framework.store.FolderItemDATABASE_FILE_TYPE, DATAFILE_FILE_TYPE, DEFAULT_CHECKOUT_ID, LATEST_VERSION, UNKNOWN_FILE_TYPE
- 
Method SummaryModifier and TypeMethodDescriptionbooleanReturns true if unsaved file changes can be recovered.booleanReturns true if this item is versioned and has one or more checkouts.booleanReturns true if this item is versioned and has a checkin in-progress.longlength()Returns the length of this domain file.open()Open the current version of the stored database for non-update use.open(int fileVersion) Open a specific version of the stored database for non-update use.open(int fileVersion, int minChangeDataVer) Open a specific version of the stored database for non-update use.openForUpdate(long checkoutId) Open the current version of the stored database for update use.voidoutput(File outputFile, int fileVersion, TaskMonitor monitor) Serialize (i.e., pack) this item into the specified outputFile.voidupdateCheckoutVersion(long checkoutId, int checkoutVersion, String user) Update the checkout version associated with this versioned item.Methods inherited from class ghidra.framework.store.remote.RemoteFolderItemcheckout, clearCheckout, delete, getCheckout, getCheckoutId, getCheckouts, getCheckoutVersion, getContentType, getContentTypeVersion, getCurrentVersion, getFileID, getLocalCheckoutVersion, getName, getParentPath, getPathName, getVersions, isCheckedOut, isCheckedOutExclusive, isReadOnly, isVersioned, lastModified, refresh, resetFileID, setCheckout, setContentTypeVersion, setReadOnly, terminateCheckoutMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ghidra.framework.store.FolderItemcheckout, clearCheckout, delete, getCheckout, getCheckoutId, getCheckouts, getCheckoutVersion, getContentType, getContentTypeVersion, getCurrentVersion, getFileID, getLocalCheckoutVersion, getName, getParentPath, getPathName, getVersions, isCheckedOut, isCheckedOutExclusive, isReadOnly, isVersioned, lastModified, refresh, resetFileID, setCheckout, setContentTypeVersion, setReadOnly, terminateCheckout
- 
Method Details- 
lengthDescription copied from interface:FolderItemReturns the length of this domain file. This size is the minimum disk space used for storing this file, but does not account for additional storage space used to tracks changes, etc.- Specified by:
- lengthin interface- FolderItem
- Returns:
- file length
- Throws:
- IOException- thrown if IO or access error occurs
 
- 
canRecoverpublic boolean canRecover()Description copied from interface:FolderItemReturns true if unsaved file changes can be recovered.- Specified by:
- canRecoverin interface- FolderItem
 
- 
openDescription copied from interface:DatabaseItemOpen a specific version of the stored database for non-update use. Historical change data from minChangeDataVer through version is available. The returned BufferFile does not support the BufferMgr's Save operation.- Specified by:
- openin interface- DatabaseItem
- Parameters:
- fileVersion- database version
- minChangeDataVer- indicates the oldest change data version to be included in change set. A -1 indicates only the last change data buffer file is applicable.
- Returns:
- buffer file
- Throws:
- IOException- thrown if IO error occurs.
- See Also:
 
- 
openDescription copied from interface:DatabaseItemOpen a specific version of the stored database for non-update use. Change data will not be available. The returned BufferFile does not support the BufferMgr's Save operation.- Specified by:
- openin interface- DatabaseItem
- Parameters:
- fileVersion- database version
- Returns:
- buffer file
- Throws:
- IOException- thrown if IO error occurs.
 
- 
openDescription copied from interface:DatabaseItemOpen the current version of the stored database for non-update use. Change data will not be available. The returned BufferFile does not support the BufferMgr's Save operation.- Specified by:
- openin interface- DatabaseItem
- Throws:
- IOException- thrown if IO error occurs.
 
- 
openForUpdateDescription copied from interface:DatabaseItemOpen the current version of the stored database for update use. The returned BufferFile supports the Save operation. If this item is on a shared file-system, this method initiates an item checkin. If a changeSet is specified, it will be filled with all change data since the check-out version. Change data will be read into the change set starting oldest to newest.- Specified by:
- openForUpdatein interface- DatabaseItem
- Parameters:
- checkoutId- the associated checkoutId if this item is stored on a versioned file-system, otherwise DEFAULT_CHECKOUT_ID can be specified.
- Returns:
- buffer file
- Throws:
- IOException- thrown if IO error occurs.
 
- 
updateCheckoutVersionpublic void updateCheckoutVersion(long checkoutId, int checkoutVersion, String user) throws IOException Description copied from interface:FolderItemUpdate the checkout version associated with this versioned item.- Specified by:
- updateCheckoutVersionin interface- FolderItem
- Parameters:
- checkoutId- id corresponding to an existing checkout
- checkoutVersion-
- user-
- Throws:
- IOException- if an IO error occurs.
 
- 
hasCheckoutsDescription copied from interface:FolderItemReturns true if this item is versioned and has one or more checkouts.- Specified by:
- hasCheckoutsin interface- FolderItem
- Throws:
- IOException- if an IO error occurs
 
- 
isCheckinActiveDescription copied from interface:FolderItemReturns true if this item is versioned and has a checkin in-progress.- Specified by:
- isCheckinActivein interface- FolderItem
- Throws:
- IOException- if an IO error occurs
 
- 
outputpublic void output(File outputFile, int fileVersion, TaskMonitor monitor) throws IOException, CancelledException Description copied from interface:FolderItemSerialize (i.e., pack) this item into the specified outputFile.- Specified by:
- outputin interface- FolderItem
- Parameters:
- outputFile- packed output file to be created
- fileVersion- if this item is versioned, specifies the version to be output, otherwise -1 should be specified.
- monitor- progress monitor
- Throws:
- IOException
- CancelledException- if monitor cancels operation
 
 
-