本文整理汇总了Java中org.mongojack.Id类的典型用法代码示例。如果您正苦于以下问题:Java Id类的具体用法?Java Id怎么用?Java Id使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Id类属于org.mongojack包,在下文中一共展示了Id类的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: create
import org.mongojack.Id; //导入依赖的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.Id; //导入依赖的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.Id; //导入依赖的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.Id; //导入依赖的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.Id; //导入依赖的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.Id; //导入依赖的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.Id; //导入依赖的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);
}
示例8: id
import org.mongojack.Id; //导入依赖的package包/类
@JsonProperty("id")
@Nullable
@Id
@ObjectId
public abstract String id();
示例9: id
import org.mongojack.Id; //导入依赖的package包/类
@JsonProperty("id")
@Id
@ObjectId
public abstract String id();
示例10: create
import org.mongojack.Id; //导入依赖的package包/类
@JsonCreator
public static CollectorConfigurationSummary create(@JsonProperty("id") @Id @ObjectId String id,
@JsonProperty("name") String name,
@JsonProperty("tags") List<String> tags) {
return new AutoValue_CollectorConfigurationSummary(id, name, tags);
}
示例11: getId
import org.mongojack.Id; //导入依赖的package包/类
@JsonProperty("id")
@Nullable
@Id
@ObjectId
public abstract String getId();
示例12: getName
import org.mongojack.Id; //导入依赖的package包/类
@Id
public String getName() {
return name;
}