Class DBTraceBookmark
java.lang.Object
- All Implemented Interfaces:
Bookmark, TraceBookmark, TraceAddressSnapRange, BoundedShape<TraceAddressSnapRange>, BoundingShape<TraceAddressSnapRange>, Rectangle2D<Address, Long, TraceAddressSnapRange>, Comparable<Bookmark>
public class DBTraceBookmark
extends DBTraceAddressSnapRangePropertyMapTree.AbstractDBTraceAddressSnapRangePropertyMapData<DBTraceBookmark>
implements TraceBookmark
-
Nested Class Summary
Nested classes/interfaces inherited from class DBTreeDataRecord
DBTreeDataRecord.RecordEntry<DS,NS, T> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final DBTraceBookmarkSpaceprotected static final StringFields inherited from class DBTraceAddressSnapRangePropertyMapTree.AbstractDBTraceAddressSnapRangePropertyMapData
lifespan, range, treeFields inherited from class DatabaseObject
key -
Constructor Summary
ConstructorsConstructorDescriptionDBTraceBookmark(DBTraceBookmarkSpace space, DBTraceAddressSnapRangePropertyMapTree<DBTraceBookmark, ?> tree, DBCachedObjectStore<?> store, DBRecord record) -
Method Summary
Modifier and TypeMethodDescriptionintvoiddelete()Returns address at which this bookmark is applied.Returns bookmark categoryReturns bookmark commentlonggetId()Returns the id of the bookmark.protected DBTraceBookmarkGet the value of this record Note that the value is sometimes the record itself, i.e., this method returnsthis.If this bookmark is in a register space, identifies the containing threadgetTrace()getType()Returns bookmark type object.Returns bookmark type as a stringvoidSet the category and comment associated with a bookmark.voidsetLifespan(Lifespan lifespan) protected voidsetRecordValue(DBTraceBookmark value) Set the value of this record Note that the value is sometimes the record itself.toString()Methods inherited from class DBTraceAddressSnapRangePropertyMapTree.AbstractDBTraceAddressSnapRangePropertyMapData
doSetLifespan, doSetRange, equals, fresh, getBounds, getLifespan, getParentKey, getRange, getShape, getSpace, hashCode, setParentKey, setShape, shapeEqualsMethods inherited from class DBTreeDataRecord
asEntry, getDataCountMethods inherited from class DBAnnotatedObject
doRefresh, doUpdateAll, doUpdated, doWrite, getObjectKey, getTableName, isDeleted, refresh, refresh, update, update, update, updateMethods inherited from class DatabaseObject
checkDeleted, checkIsValid, checkIsValid, getKey, isDeleted, isInvalid, keyChanged, setDeleted, setInvalid, validateMethods inherited from interface Rectangle2D
computeAreaIntersection, computeAreaUnionBounds, computeCentroidDistance, contains, contains, doEquals, doHashCode, enclosedBy, encloses, getArea, getCenter, getMargin, intersection, intersects, unionBoundsMethods inherited from interface TraceAddressSnapRange
description, getX1, getX2, getY1, getY2, immutableMethods inherited from interface TraceBookmark
getLifespan
-
Field Details
-
TABLE_NAME
- See Also:
-
space
-
-
Constructor Details
-
DBTraceBookmark
public DBTraceBookmark(DBTraceBookmarkSpace space, DBTraceAddressSnapRangePropertyMapTree<DBTraceBookmark, ?> tree, DBCachedObjectStore<?> store, DBRecord record)
-
-
Method Details
-
setRecordValue
Description copied from class:DBTreeDataRecordSet the value of this record Note that the value is sometimes the record itself. In this case, this method expectsvalueto benulland does nothing. SeeSpatialMap.put(BoundedShape, Object)for more details of this pattern.- Specified by:
setRecordValuein classDBTreeDataRecord<TraceAddressSnapRange, TraceAddressSnapRange, DBTraceBookmark>- Parameters:
value- the record's new value
-
getRecordValue
Description copied from class:DBTreeDataRecordGet the value of this record Note that the value is sometimes the record itself, i.e., this method returnsthis. SeeSpatialMap.put(BoundedShape, Object)for more details of this pattern.- Specified by:
getRecordValuein classDBTreeDataRecord<TraceAddressSnapRange, TraceAddressSnapRange, DBTraceBookmark>- Returns:
- the record's value
-
setLifespan
- Specified by:
setLifespanin interfaceTraceBookmark
-
getTrace
- Specified by:
getTracein interfaceTraceBookmark
-
getThread
Description copied from interface:TraceBookmarkIf this bookmark is in a register space, identifies the containing thread- Specified by:
getThreadin interfaceTraceBookmark- Returns:
- the thread, or null if this bookmark is not in register space
-
getId
-
getAddress
Description copied from interface:BookmarkReturns address at which this bookmark is applied.- Specified by:
getAddressin interfaceBookmark
-
getType
Description copied from interface:BookmarkReturns bookmark type object.- Specified by:
getTypein interfaceBookmark- Specified by:
getTypein interfaceTraceBookmark
-
getTypeString
Description copied from interface:BookmarkReturns bookmark type as a string- Specified by:
getTypeStringin interfaceBookmark
-
getCategory
Description copied from interface:BookmarkReturns bookmark category- Specified by:
getCategoryin interfaceBookmark
-
getComment
Description copied from interface:BookmarkReturns bookmark comment- Specified by:
getCommentin interfaceBookmark
-
set
-
delete
public void delete()- Specified by:
deletein interfaceTraceBookmark
-
compareTo
- Specified by:
compareToin interfaceComparable<Bookmark>
-
toString
- Overrides:
toStringin classDBTreeDataRecord<TraceAddressSnapRange, TraceAddressSnapRange, DBTraceBookmark>
-