|
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--com.perforce.api.SourceControlObject
An abstract base class for all source control objects.
| Constructor Summary | |
SourceControlObject()
|
|
SourceControlObject(Env env)
|
|
| Method Summary | |
void |
clearCache()
Removes any cached objects. |
abstract void |
commit()
Stores this object back into Perforce, creating it if it didn't already exist. |
abstract HashDecay |
getCache()
|
Env |
getEnv()
Returns the P4 environment associated with this instance. |
long |
getSyncTime()
Returns the time, in milliseconds, that this object was synchronized. |
long |
getUpdateTime()
Returns the time, in milliseconds, for this object's last update. |
void |
inSync()
Marks this object as being in in sync or valid. |
void |
invalidate()
Invalidates this object. |
boolean |
outOfSync(long threshold)
Tests this object to see if it is out of sync. |
void |
refreshUpdateTime()
Sets the update time for this object to the current time. |
void |
setEnv(Env env)
Sets the P4 environment to be used when working with this object. |
abstract void |
sync()
Brings this object back into sync with Perforce. |
String |
toXML()
Returns a string containg the object in XML form. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SourceControlObject()
public SourceControlObject(Env env)
| Method Detail |
public void clearCache()
CacheableclearCache in interface Cacheable
public abstract void commit()
throws CommitException
commit in interface Cacheablepublic abstract HashDecay getCache()
getCache in interface Cacheablepublic Env getEnv()
public long getSyncTime()
CacheablegetSyncTime in interface Cacheablepublic long getUpdateTime()
CacheablegetUpdateTime in interface Cacheablepublic void inSync()
CacheableinSync in interface Cacheablepublic void invalidate()
Cacheableinvalidate in interface Cacheablepublic boolean outOfSync(long threshold)
CacheableoutOfSync in interface Cacheablecom.perforce.api.Cacheablethreshold - Number of milliseconds.public void refreshUpdateTime()
CacheablerefreshUpdateTime in interface Cacheablepublic void setEnv(Env env)
env - user environment to use.Env,
P4Processpublic abstract void sync()
sync in interface Cacheablepublic String toXML()
|
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||