当前位置: 首页>>代码示例>>Java>>正文


Java ObjectId类代码示例

本文整理汇总了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();
}
 
开发者ID:Graylog2,项目名称:graylog-plugin-pipeline-processor,代码行数:19,代码来源:PipelineSource.java

示例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();
}
 
开发者ID:Graylog2,项目名称:graylog-plugin-pipeline-processor,代码行数:17,代码来源:RuleSource.java

示例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();
}
 
开发者ID:Graylog2,项目名称:graylog-plugin-pipeline-processor,代码行数:17,代码来源:RuleDao.java

示例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();
}
 
开发者ID:Graylog2,项目名称:graylog-plugin-pipeline-processor,代码行数:17,代码来源:PipelineDao.java

示例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();
}
 
开发者ID:Graylog2,项目名称:graylog-plugin-collector,代码行数:17,代码来源:CollectorConfiguration.java

示例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();
}
 
开发者ID:Graylog2,项目名称:graylog-plugin-pipeline-processor,代码行数:11,代码来源:PipelineConnections.java

示例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);
}
 
开发者ID:Graylog2,项目名称:graylog-plugin-collector,代码行数:13,代码来源:CollectorInput.java

示例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);
}
 
开发者ID:Graylog2,项目名称:graylog-plugin-collector,代码行数:11,代码来源:CollectorConfigurationSnippet.java

示例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);
}
 
开发者ID:Graylog2,项目名称:graylog-plugin-collector,代码行数:12,代码来源:CollectorOutput.java

示例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);
}
 
开发者ID:Graylog2,项目名称:graylog-plugin-collector,代码行数:8,代码来源:CollectorActions.java

示例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;
}
 
开发者ID:SoftwareSandbox,项目名称:Fiazard,代码行数:12,代码来源:OrderItemToBePreparedViewModel.java

示例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;
}
 
开发者ID:SoftwareSandbox,项目名称:Fiazard,代码行数:8,代码来源:CondimentUnlockedEvent.java

示例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;
}
 
开发者ID:SoftwareSandbox,项目名称:Fiazard,代码行数:8,代码来源:CondimentExcludeEvent.java

示例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;
}
 
开发者ID:SoftwareSandbox,项目名称:Fiazard,代码行数:14,代码来源:Condiment.java

示例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;
}
 
开发者ID:SoftwareSandbox,项目名称:Fiazard,代码行数:8,代码来源:CondimentLockedEvent.java


注:本文中的org.mongojack.ObjectId类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。