Class CommentRecord
java.lang.Object
org.nustaq.reallive.records.RecordWrapper
org.nustaq.kontraktor.apputil.comments.CommentRecord
- All Implemented Interfaces:
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:
-
Field Summary
Fields inherited from class org.nustaq.reallive.records.RecordWrapper
recordFields inherited from interface org.nustaq.reallive.api.Record
_NULL_ -
Constructor Summary
ConstructorsConstructorDescriptionCommentRecord(String key) CommentRecord(org.nustaq.reallive.api.Record record) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddChild(CommentRecord cRecord) delChildNode(String commentId) down(int down) findChildNode(String nodeId) findParent(String childId) List<org.nustaq.reallive.api.Record>intgetDown()static intgetNumCommenters(List<org.nustaq.reallive.api.Record> children) intgetUp()up(int up) Methods inherited from class org.nustaq.reallive.records.RecordWrapper
containsKey, equals, get, getFields, getKey, getLastModified, getRecord, getSequence, hashCode, internal_incSequence, internal_put, internal_setLastModified, internal_updateLastModified, key, put, shallowCopy, toString, transformCopy, 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.reallive.query.EvalContext
getMethods 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
_afterLoad, asDouble, asList, asLoggingString, asLong, asMap, asSet, containsKey, deepCopy, deepMerge, defaultEquals, getArr, getAsList, getBool, getDouble, getFields, getFieldSet, getInt, getKey, getKeyVals, getLong, getRec, getRecord, getSafeString, getSequence, getString, getValue, haveRec, internal_incSequence, internal_put, internal_setLastModified, internal_updateLastModified, join, key, mget, mgetNum, mgetString, omit, omitRecursivelyInPlace, put, putTransforming, reduced, replaceValues, shallowCopy, stripOps, toJson, toPrettyString, transformCopy, validateForJsonability
-
Constructor Details
-
CommentRecord
public CommentRecord(org.nustaq.reallive.api.Record record) -
CommentRecord
-
-
Method Details
-
getUp
public int getUp() -
getDown
public int getDown() -
up
-
down
-
children
-
addChild
-
getChildren
-
getChildCommentRecords
-
findChildNode
-
delChildNode
-
findParent
-
getNumCommenters
-