public interface DocumentValueFactory
Modifier and Type | Method and Description |
---|---|
Binary |
createBinary(byte type,
byte[] data) |
Boolean |
createBoolean(boolean value) |
Code |
createCode(String code) |
CodeWithScope |
createCode(String code,
Document scope) |
Date |
createDate(long millis) |
Date |
createDate(String iso) |
Double |
createDouble(double value) |
Integer |
createInt(int value) |
Long |
createLong(long value) |
Object |
createNull() |
ObjectId |
createObjectId(byte[] bytes) |
ObjectId |
createObjectId(int time,
int machine,
int process,
int inc) |
ObjectId |
createObjectId(String hex) |
Pattern |
createRegex(String pattern,
int flags) |
Pattern |
createRegex(String pattern,
String flags) |
String |
createString(String value) |
Symbol |
createSymbol(String value) |
Timestamp |
createTimestamp(int time,
int inc) |
UUID |
createUuid(long part1,
long part2) |
UUID |
createUuid(String uuid) |
Integer createInt(int value)
Long createLong(long value)
Boolean createBoolean(boolean value)
Double createDouble(double value)
Date createDate(String iso) throws ParseException
ParseException
Date createDate(long millis)
Timestamp createTimestamp(int time, int inc)
ObjectId createObjectId(byte[] bytes)
ObjectId createObjectId(int time, int machine, int process, int inc)
Object createNull()
Binary createBinary(byte type, byte[] data)
UUID createUuid(long part1, long part2)
CodeWithScope createCode(String code, Document scope)
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.