|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.enterprise.server.plugins.drift.mongodb.entities.MongoDBChangeSetEntry
@Embedded public class MongoDBChangeSetEntry
A MongoChangeSetEntry is embedded in a MongoDBChangeSet. In the database, a change set
is stored as a single document, and the document contains an array of its entries.
| Constructor Summary | |
|---|---|
MongoDBChangeSetEntry()
|
|
MongoDBChangeSetEntry(String path,
DriftCategory category)
|
|
| Method Summary | |
|---|---|
DriftCategory |
getCategory()
|
MongoDBChangeSet |
getChangeSet()
|
Long |
getCtime()
|
String |
getDirectory()
|
String |
getId()
Returns an id that uniquely identifies this entry. |
MongoDBFile |
getNewDriftFile()
|
String |
getNewFileHash()
|
MongoDBFile |
getOldDriftFile()
|
String |
getOldFileHash()
|
String |
getPath()
|
void |
setCategory(DriftCategory category)
|
void |
setChangeSet(MongoDBChangeSet changeSet)
|
void |
setCtime(Long ctime)
This is here only for testing. |
void |
setDirectory(String directory)
|
void |
setId(String id)
This method does not actually set the id. |
void |
setIndex(int index)
Sets the index of the entry which is the array index within the document stored in the database. |
void |
setNewDriftFile(MongoDBFile newDriftFile)
|
void |
setNewFileHash(String newFileHash)
|
void |
setOldDriftFile(MongoDBFile oldDriftFile)
|
void |
setOldFileHash(String oldFileHash)
|
void |
setPath(String path)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MongoDBChangeSetEntry()
public MongoDBChangeSetEntry(String path,
DriftCategory category)
| Method Detail |
|---|
public String getId()
<changeset_id>:<n>
where n is an integer id assigned by the owning change set that is unique
within that change set.
getId in interface Drift<MongoDBChangeSet,MongoDBFile>public void setId(String id)
Drift interface.
setId in interface Drift<MongoDBChangeSet,MongoDBFile>id - public void setIndex(int index)
index - The array index of the entry as it is stored in the change set document
in the database.public Long getCtime()
getCtime in interface Drift<MongoDBChangeSet,MongoDBFile>public void setCtime(Long ctime)
ctime - The timestamppublic MongoDBChangeSet getChangeSet()
getChangeSet in interface Drift<MongoDBChangeSet,MongoDBFile>public void setChangeSet(MongoDBChangeSet changeSet)
setChangeSet in interface Drift<MongoDBChangeSet,MongoDBFile>public DriftCategory getCategory()
getCategory in interface Drift<MongoDBChangeSet,MongoDBFile>public void setCategory(DriftCategory category)
setCategory in interface Drift<MongoDBChangeSet,MongoDBFile>public String getPath()
getPath in interface Drift<MongoDBChangeSet,MongoDBFile>public void setPath(String path)
setPath in interface Drift<MongoDBChangeSet,MongoDBFile>public String getDirectory()
getDirectory in interface Drift<MongoDBChangeSet,MongoDBFile>public void setDirectory(String directory)
setDirectory in interface Drift<MongoDBChangeSet,MongoDBFile>public String getOldFileHash()
public void setOldFileHash(String oldFileHash)
public String getNewFileHash()
public void setNewFileHash(String newFileHash)
public MongoDBFile getOldDriftFile()
getOldDriftFile in interface Drift<MongoDBChangeSet,MongoDBFile>public void setOldDriftFile(MongoDBFile oldDriftFile)
setOldDriftFile in interface Drift<MongoDBChangeSet,MongoDBFile>public MongoDBFile getNewDriftFile()
getNewDriftFile in interface Drift<MongoDBChangeSet,MongoDBFile>public void setNewDriftFile(MongoDBFile newDriftFile)
setNewDriftFile in interface Drift<MongoDBChangeSet,MongoDBFile>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||