|
Qizx fe-4.4p2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface PostCommitTrigger.CommitEvent
Provides access to changes operated by a commit.
Affected Documents and Collections are classified in three exclusive groups:
Method Summary | |
---|---|
int |
createdDocumentCount()
Returns the number of documents created in the transaction. |
LibraryMemberIterator |
createdDocuments()
Returns an iterator on documents created in the transaction. |
int |
deletedDocumentCount()
Returns the number of documents deleted in the transaction. |
LibraryMemberIterator |
deletedDocuments()
Returns an iterator on documents deleted in the transaction. |
long |
getCommitId()
Returns the "commit id", an integer which is increased on each successful commit. |
long |
getCommitTime()
Returns the precise time when the commit was performed. |
Document |
getCreatedDocument(String path)
Returns the Document descriptor corresponding to this path if and only if this document has been created in the related commit. |
Document |
getDeletedDocument(String path)
Returns the Document descriptor corresponding to this path if and only if this document has been deleted in the related commit. |
Library |
getLibrary()
Returns an XML Library session reflecting the state of the database after the commit. |
Collection |
getUpdatedCollection(String path)
Returns a non-null Collection descriptor if the collection with this path has been updated (i.e anything nested within the collection has changed). |
Document |
getUpdatedDocument(String path)
Returns the Document descriptor corresponding to this path if and only if this document has been updated in the related commit. |
int |
updatedCollectionCount()
Returns the number of collections whose contents have changed in the transaction. |
LibraryMemberIterator |
updatedCollections()
Returns an iterator on collections whose contents have changed in the transaction. |
int |
updatedDocumentCount()
Returns the number of documents whose contents have changed in the transaction. |
LibraryMemberIterator |
updatedDocuments()
Returns an iterator on documents whose contents have changed in the transaction. |
Method Detail |
---|
Library getLibrary()
This session has the same User as the Library session which performed the commit.
long getCommitTime()
System.currentTimeMillis()
.long getCommitId()
int createdDocumentCount()
LibraryMemberIterator createdDocuments() throws DataModelException
DataModelException
Document getCreatedDocument(String path) throws DataModelException
path
- path of a document within the Library
DataModelException
int updatedDocumentCount()
LibraryMemberIterator updatedDocuments() throws DataModelException
DataModelException
Document getUpdatedDocument(String path) throws DataModelException
path
- path of a document within the Library
DataModelException
int deletedDocumentCount()
LibraryMemberIterator deletedDocuments() throws DataModelException
DataModelException
Document getDeletedDocument(String path) throws DataModelException
Notice that this Document is a "zombie" document that cannot be found by queries. Only the metadata properties are accessible: attempt to get the XML contents will raise an error.
path
- path of a document within the Library
DataModelException
int updatedCollectionCount()
'Changed collection contents' means that a document or a collection, nested at any level inside this collection, has been created, deleted or updated.
Caution: the root collection / is not counted because it is always
LibraryMemberIterator updatedCollections() throws DataModelException
'Changed collection contents' means that a document or a collection, nested at any level inside this collection, has been created, deleted or updated.
DataModelException
Collection getUpdatedCollection(String path) throws DataModelException
path
- path of a collection within the Library
DataModelException
|
© 2010 Axyana Software | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |