| Constructor and Description |
|---|
Builder(String key)
Construct a builder object for the new
Record with given key. |
| Modifier and Type | Method and Description |
|---|---|
Record |
build()
Builds a new
Record. |
Record.Builder |
deviceLastModifiedDate(Date nDeviceLastModifiedDate)
Sets the device last modified date of this
Record. |
Record.Builder |
lastModifiedBy(String nLastModifiedBy)
Sets the last modified by of this
Record. |
Record.Builder |
lastModifiedDate(Date nLastModifiedDate)
Sets the last modified date of this
Record. |
Record.Builder |
modified(boolean nModified)
Sets whether this
Record has local modification. |
Record.Builder |
syncCount(long nSyncCount)
Sets the syncCount of the new
Record. |
Record.Builder |
value(String nValue)
Sets the value of the new
Record. |
public Record.Builder value(String nValue)
Record. Default is null, aka
deleted record.nValue - nullable String value of this recordpublic Record.Builder syncCount(long nSyncCount)
Record. Default is the current
time.nSyncCount - non negative long valuepublic Record.Builder lastModifiedDate(Date nLastModifiedDate)
Record. Default is the
current time.nLastModifiedDate - last modified date of this recordpublic Record.Builder lastModifiedBy(String nLastModifiedBy)
Record. Default is empty
string.nLastModifiedBy - device name or user name that last modified
this record.public Record.Builder deviceLastModifiedDate(Date nDeviceLastModifiedDate)
Record. It's the
local date of the device that modified this record. Default is the
current date.nDeviceLastModifiedDate - device last modified datepublic Record.Builder modified(boolean nModified)
Record has local modification.nModified - a flag that indicates whether the record has local
modificationCopyright © 2019. All rights reserved.