Class CommentRecord
java.lang.Object
org.nustaq.reallive.records.RecordWrapper
org.nustaq.kontraktor.apputil.comments.CommentRecord
- All Implemented Interfaces:
java.io.Serializable,AuthorMixin<CommentRecord>,CreationMixin<CommentRecord>,IdMixin<CommentRecord>,ImageUrlMixin<CommentRecord>,LastModifiedMixin<CommentRecord>,RoleMixin<CommentRecord>,TextMixin<CommentRecord>,org.nustaq.reallive.api.Record,org.nustaq.reallive.query.EvalContext
public class CommentRecord extends org.nustaq.reallive.records.RecordWrapper implements CreationMixin<CommentRecord>, LastModifiedMixin<CommentRecord>, IdMixin<CommentRecord>, AuthorMixin<CommentRecord>, ImageUrlMixin<CommentRecord>, TextMixin<CommentRecord>, RoleMixin<CommentRecord>
Created by ruedi on 28/06/16.
A full tree of CommentRecords for a single article
key: did#articleId
- See Also:
- Serialized Form
-
Field Summary
-
Constructor Summary
Constructors Constructor Description CommentRecord(java.lang.String key)CommentRecord(org.nustaq.reallive.api.Record record) -
Method Summary
Modifier and Type Method Description voidaddChild(CommentRecord cRecord)CommentRecordchildren(java.util.List<org.nustaq.reallive.api.Record> children)CommentRecorddelChildNode(java.lang.String commentId)CommentRecorddown(int down)CommentRecordfindChildNode(java.lang.String nodeId)CommentRecordfindParent(java.lang.String childId)java.util.List<CommentRecord>getChildCommentRecords()java.util.List<org.nustaq.reallive.api.Record>getChildren()intgetDown()static intgetNumCommenters(java.util.List<org.nustaq.reallive.api.Record> children)intgetUp()CommentRecordup(int up)Methods inherited from class org.nustaq.reallive.records.RecordWrapper
equals, get, getFields, getKey, getLastModified, getRecord, getSequence, hashCode, internal_incSequence, internal_setLastModified, internal_updateLastModified, key, put, toString, WrapMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.nustaq.kontraktor.apputil.recordwrappermixins.AuthorMixin
author, getAuthorMethods inherited from interface org.nustaq.kontraktor.apputil.recordwrappermixins.CreationMixin
creation, getCreationMethods inherited from interface org.nustaq.kontraktor.apputil.recordwrappermixins.IdMixin
getId, idMethods inherited from interface org.nustaq.kontraktor.apputil.recordwrappermixins.ImageUrlMixin
getImageURL, imageURLMethods inherited from interface org.nustaq.kontraktor.apputil.recordwrappermixins.LastModifiedMixin
getLastModified, lastModifiedMethods inherited from interface org.nustaq.reallive.api.Record
arr, asMap, asString, copied, getBool, getDouble, getFields, getInt, getKey, getKeyVals, getLong, getRec, getSafeString, getSequence, getString, getValue, internal_incSequence, internal_setLastModified, internal_updateLastModified, key, merge, put, rec, recarr, reduced
-
Constructor Details
-
CommentRecord
public CommentRecord(org.nustaq.reallive.api.Record record) -
CommentRecord
public CommentRecord(java.lang.String key)
-
-
Method Details
-
getUp
public int getUp() -
getDown
public int getDown() -
up
-
down
-
children
-
addChild
-
getChildren
public java.util.List<org.nustaq.reallive.api.Record> getChildren() -
getChildCommentRecords
-
findChildNode
-
delChildNode
-
findParent
-
getNumCommenters
public static int getNumCommenters(java.util.List<org.nustaq.reallive.api.Record> children)
-