Extends
Constructor
- options
- Type:
Object - id
- Type:
stringorinteger - prefix
- Type:
string - postfix
- Type:
string - Default:
"" - delimiter
- Type:
string - Default:
"_"
new UUID4Key(options)
UUID4Key
Parameters:
Methods
- instance
- Type:
Instance - id
- Type:
string KeyError
generate(instance)
generates new key This method is called before inserting new document to a bucket The method must return a prosime
Parameters:
setId(id)
undefined
Parameters:
Throws:
undefined
Inherited Methods
- <undefined>
- Type:
string
getId()
Parameters:
getOptions()
KeyOptionsObject
Returns:
KeyOptionsObject
isGenerated()
boolean
Returns:
boolean
toString()
string
returns the key
Returns:string