|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.starteam.File.SyncRecord
public static final class File.SyncRecord
a stock Sync Record Implementation to create sync records in syncdb
| Constructor Summary | |
|---|---|
File.SyncRecord(GUID serverID)
default constructor |
|
| Method Summary | |
|---|---|
int |
getContentRevision()
return the content reviison |
DotNotation |
getDotNotation()
return the dot notation |
File.Digest |
getFileDigest()
return the digest |
MD5 |
getFileMD5()
return the file md5 |
long |
getFileSize()
return the file size |
DateTime |
getFileTime()
return the file time |
int |
getObjectID()
return the object id |
int |
getRecordID()
return the record id |
double |
getRecordTime()
return the record time |
GUID |
getRepositoryID()
return the server GUID |
File.Revision |
getRevisionIdentifier()
return the file revision |
int |
getRevisionNumber()
return the revision number |
int |
getRootObjectID()
return the root object id |
void |
initFromFile(File file)
initialize this record from a File instance |
boolean |
isValid()
return true if this sync record is valid |
void |
setContentRevision(int rev)
set the content revision |
void |
setDotNotation(DotNotation dot)
set the dot notation |
void |
setFileMD5(MD5 md5)
set the file md5 |
void |
setFileSize(long size)
set the file size |
void |
setFileTime(DateTime time)
set the file time |
void |
setLocalFileInfo(java.io.File file)
set file information from a disk file |
void |
setObjectID(int id)
set the object id |
void |
setRecordID(int id)
set the record id |
void |
setRevisionNumber(int id)
return the revision number |
void |
setRootObjectID(int id)
set the root object id |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public File.SyncRecord(GUID serverID)
serverID - the server GUID| Method Detail |
|---|
public File.Digest getFileDigest()
getFileDigest in interface File.WorkspaceSyncpublic long getFileSize()
getFileSize in interface File.Digestpublic void setFileSize(long size)
setFileSize in interface File.Digestsize - The file's size, in bytes.public DateTime getFileTime()
getFileTime in interface File.Digestpublic void setFileTime(DateTime time)
setFileTime in interface File.Digesttime - The file's last modified time, as the number days from
midnight, 30 December 1899, in UTC.public MD5 getFileMD5()
getFileMD5 in interface File.Digestpublic void setFileMD5(MD5 md5)
setFileMD5 in interface File.Digestmd5 - The MD5 cryptographic hash of the file's content.public File.Revision getRevisionIdentifier()
getRevisionIdentifier in interface File.WorkspaceSyncpublic GUID getRepositoryID()
getRepositoryID in interface File.Revisionpublic int getRootObjectID()
getRootObjectID in interface File.Revisionpublic void setRootObjectID(int id)
setRootObjectID in interface File.Revisionid - The RootObjectID of the repository object.public int getContentRevision()
getContentRevision in interface File.Revisionpublic void setContentRevision(int rev)
setContentRevision in interface File.Revisionrev - The content version of this item revision.public DotNotation getDotNotation()
getDotNotation in interface File.Revisionpublic void setDotNotation(DotNotation dot)
setDotNotation in interface File.Revisiondot - The dot notation of this revision of the repository
object.public void setRecordID(int id)
id - public int getRecordID()
public double getRecordTime()
public void setObjectID(int id)
setObjectID in interface File.Revisionid - The objectID of this revision of the repository object.public int getObjectID()
getObjectID in interface File.Revisionpublic void setRevisionNumber(int id)
setRevisionNumber in interface File.Revisionid - The version number of this revision of the repository
object.public int getRevisionNumber()
getRevisionNumber in interface File.RevisionVersionedObject.getRevisionNumber()public void initFromFile(File file)
file - the file
public void setLocalFileInfo(java.io.File file)
throws java.io.IOException
file -
java.io.IOExceptionpublic boolean isValid()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||