|
||||||||
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()
Cacheable
clearCache
in interface Cacheable
public abstract void commit() throws CommitException
commit
in interface Cacheable
public abstract HashDecay getCache()
getCache
in interface Cacheable
public Env getEnv()
public long getSyncTime()
Cacheable
getSyncTime
in interface Cacheable
public long getUpdateTime()
Cacheable
getUpdateTime
in interface Cacheable
public void inSync()
Cacheable
inSync
in interface Cacheable
public void invalidate()
Cacheable
invalidate
in interface Cacheable
public boolean outOfSync(long threshold)
Cacheable
outOfSync
in interface Cacheable
com.perforce.api.Cacheable
threshold
- Number of milliseconds.public void refreshUpdateTime()
Cacheable
refreshUpdateTime
in interface Cacheable
public void setEnv(Env env)
env
- user environment to use.Env
,
P4Process
public abstract void sync()
sync
in interface Cacheable
public String toXML()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |