本文整理汇总了Java中org.mongojack.ObjectId类的典型用法代码示例。如果您正苦于以下问题:Java ObjectId类的具体用法?Java ObjectId怎么用?Java ObjectId使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ObjectId类属于org.mongojack包,在下文中一共展示了ObjectId类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: create
import org.mongojack.ObjectId; //导入依赖的package包/类
@JsonCreator
public static PipelineSource create(@JsonProperty("id") @Id @ObjectId @Nullable String id,
@JsonProperty("title") String title,
@JsonProperty("description") @Nullable String description,
@JsonProperty("source") String source,
@Nullable @JsonProperty("stages") List<StageSource> stages,
@Nullable @JsonProperty("created_at") DateTime createdAt,
@Nullable @JsonProperty("modified_at") DateTime modifiedAt) {
return builder()
.id(id)
.title(title)
.description(description)
.source(source)
.createdAt(createdAt)
.modifiedAt(modifiedAt)
.stages(stages == null ? Collections.emptyList() : stages)
.build();
}
示例2: create
import org.mongojack.ObjectId; //导入依赖的package包/类
@JsonCreator
public static RuleSource create(@JsonProperty("id") @Id @ObjectId @Nullable String id,
@JsonProperty("title") String title,
@JsonProperty("description") @Nullable String description,
@JsonProperty("source") String source,
@JsonProperty("created_at") @Nullable DateTime createdAt,
@JsonProperty("modified_at") @Nullable DateTime modifiedAt) {
return builder()
.id(id)
.source(source)
.title(title)
.description(description)
.createdAt(createdAt)
.modifiedAt(modifiedAt)
.build();
}
示例3: create
import org.mongojack.ObjectId; //导入依赖的package包/类
@JsonCreator
public static RuleDao create(@Id @ObjectId @JsonProperty("_id") @Nullable String id,
@JsonProperty("title") String title,
@JsonProperty("description") @Nullable String description,
@JsonProperty("source") String source,
@JsonProperty("created_at") @Nullable DateTime createdAt,
@JsonProperty("modified_at") @Nullable DateTime modifiedAt) {
return builder()
.id(id)
.source(source)
.title(title)
.description(description)
.createdAt(createdAt)
.modifiedAt(modifiedAt)
.build();
}
示例4: create
import org.mongojack.ObjectId; //导入依赖的package包/类
@JsonCreator
public static PipelineDao create(@Id @ObjectId @JsonProperty("_id") @Nullable String id,
@JsonProperty("title") String title,
@JsonProperty("description") @Nullable String description,
@JsonProperty("source") String source,
@Nullable @JsonProperty("created_at") DateTime createdAt,
@Nullable @JsonProperty("modified_at") DateTime modifiedAt) {
return builder()
.id(id)
.title(title)
.description(description)
.source(source)
.createdAt(createdAt)
.modifiedAt(modifiedAt)
.build();
}
示例5: create
import org.mongojack.ObjectId; //导入依赖的package包/类
@JsonCreator
public static CollectorConfiguration create(@JsonProperty("id") @Id @ObjectId String id,
@JsonProperty("name") String name,
@JsonProperty("tags") List<String> tags,
@JsonProperty("inputs") List<CollectorInput> inputs,
@JsonProperty("outputs") List<CollectorOutput> outputs,
@JsonProperty("snippets") List<CollectorConfigurationSnippet> snippets) {
return builder()
.id(id)
.name(name)
.tags(tags)
.inputs(inputs)
.outputs(outputs)
.snippets(snippets)
.build();
}
示例6: create
import org.mongojack.ObjectId; //导入依赖的package包/类
@JsonCreator
public static PipelineConnections create(@JsonProperty("id") @Id @ObjectId @Nullable String id,
@JsonProperty("stream_id") String streamId,
@JsonProperty("pipeline_ids") Set<String> pipelineIds) {
return builder()
.id(id)
.streamId(streamId)
.pipelineIds(pipelineIds)
.build();
}
示例7: create
import org.mongojack.ObjectId; //导入依赖的package包/类
@JsonCreator
public static CollectorInput create(@JsonProperty("input_id") String inputId,
@JsonProperty("backend") String backend,
@JsonProperty("type") String type,
@JsonProperty("name") String name,
@JsonProperty("forward_to") String forwardTo,
@JsonProperty("properties") Map<String, Object> properties) {
if (inputId == null) {
inputId = org.bson.types.ObjectId.get().toString();
}
return new AutoValue_CollectorInput(inputId, backend, type, name, forwardTo, properties);
}
示例8: create
import org.mongojack.ObjectId; //导入依赖的package包/类
@JsonCreator
public static CollectorConfigurationSnippet create(@JsonProperty("snippet_id") String snippetId,
@JsonProperty("backend") String backend,
@JsonProperty("name") String name,
@JsonProperty("snippet") String snippet) {
if (snippetId == null) {
snippetId = org.bson.types.ObjectId.get().toString();
}
return new AutoValue_CollectorConfigurationSnippet(snippetId, backend, name, snippet);
}
示例9: create
import org.mongojack.ObjectId; //导入依赖的package包/类
@JsonCreator
public static CollectorOutput create(@JsonProperty("output_id") String outputId,
@JsonProperty("backend") String backend,
@JsonProperty("type") String type,
@JsonProperty("name") String name,
@JsonProperty("properties") Map<String, Object> properties) {
if (outputId == null) {
outputId = org.bson.types.ObjectId.get().toString();
}
return new AutoValue_CollectorOutput(outputId, backend, type, name, properties);
}
示例10: create
import org.mongojack.ObjectId; //导入依赖的package包/类
@JsonCreator
public static CollectorActions create(@JsonProperty("id") @Id @ObjectId String id,
@JsonProperty("collector_id") String collectorId,
@JsonProperty("created") DateTime created,
@JsonProperty("action") List<CollectorAction> action) {
return new AutoValue_CollectorActions(id, collectorId, created, action);
}
示例11: OrderItemToBePreparedViewModel
import org.mongojack.ObjectId; //导入依赖的package包/类
@JsonCreator
public OrderItemToBePreparedViewModel(
@ObjectId @JsonProperty("_id") String id,
@JsonProperty("orderId") AggregateId orderId,
@JsonProperty("deliveryDateTime") LocalDateTime deliveryDateTime,
@JsonProperty("description") String description) {
this.id = id;
this.orderId = orderId;
this.deliveryDateTime = deliveryDateTime;
this.description = description;
}
示例12: CondimentUnlockedEvent
import org.mongojack.ObjectId; //导入依赖的package包/类
@JsonCreator
public CondimentUnlockedEvent(@ObjectId @JsonProperty("_id") org.bson.types.ObjectId id,
@JsonProperty("timestamp") Date timestamp,
@JsonProperty("condiment") Condiment condiment) {
super(id, timestamp);
this.condiment = condiment;
}
示例13: CondimentExcludeEvent
import org.mongojack.ObjectId; //导入依赖的package包/类
@JsonCreator
public CondimentExcludeEvent(@ObjectId @JsonProperty("_id") org.bson.types.ObjectId id,
@JsonProperty("timestamp") Date timestamp,
@JsonProperty("condiment") Condiment condiment) {
super(id, timestamp);
this.condiment = condiment;
}
示例14: Condiment
import org.mongojack.ObjectId; //导入依赖的package包/类
@JsonCreator
public Condiment(
@ObjectId @JsonProperty("_id") String id,
@JsonProperty("name") String name,
@JsonProperty("price") double price,
@JsonProperty("image") String image,
@JsonProperty("imageType") String imageType) {
this.id = id;
this.name = name;
this.price = price;
this.image = image;
this.imageType = imageType;
}
示例15: CondimentLockedEvent
import org.mongojack.ObjectId; //导入依赖的package包/类
@JsonCreator
public CondimentLockedEvent(@ObjectId @JsonProperty("_id") org.bson.types.ObjectId id,
@JsonProperty("timestamp") Date timestamp,
@JsonProperty("condiment") Condiment condiment) {
super(id, timestamp);
this.condiment = condiment;
}