本文整理汇总了Java中com.redhat.lightblue.generator.Transient类的典型用法代码示例。如果您正苦于以下问题:Java Transient类的具体用法?Java Transient怎么用?Java Transient使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Transient类属于com.redhat.lightblue.generator包,在下文中一共展示了Transient类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: hasEntityDataForField
import com.redhat.lightblue.generator.Transient; //导入依赖的package包/类
@Transient
public boolean hasEntityDataForField(String fieldPath) {
for (PathAndValue pathAndValue : entityData) {
if (Objects.equals(fieldPath, pathAndValue.getPath())) {
return true;
}
}
return false;
}
示例2: getEntityDataForField
import com.redhat.lightblue.generator.Transient; //导入依赖的package包/类
@Transient
@Nullable
public String getEntityDataForField(String fieldPath) {
for (PathAndValue pathAndValue : entityData) {
if (Objects.equals(fieldPath, pathAndValue.getPath())) {
return pathAndValue.getValue();
}
}
throw new NoSuchElementException(fieldPath);
}
示例3: getFields
import com.redhat.lightblue.generator.Transient; //导入依赖的package包/类
@Override
public Collection<FieldMirror> getFields() {
try {
BeanInfo info = Introspector.getBeanInfo(bean, Object.class);
PropertyDescriptor[] properties = info.getPropertyDescriptors();
return Arrays.stream(properties)
.filter(p -> !p.getReadMethod().isAnnotationPresent(Transient.class))
.map(this::newFieldMirror)
.collect(Collectors.toList());
} catch (IntrospectionException e) {
throw new MirrorException(e);
}
}
示例4: getDocumentEventProcessingTimeout
import com.redhat.lightblue.generator.Transient; //导入依赖的package包/类
@Override
@Transient
public Duration getDocumentEventProcessingTimeout() {
return documentEventProcessingTimeoutSeconds == null
? null
: Duration.ofSeconds(documentEventProcessingTimeoutSeconds);
}
示例5: getDocumentEventExpireThreshold
import com.redhat.lightblue.generator.Transient; //导入依赖的package包/类
@Override
@Transient
public Duration getDocumentEventExpireThreshold() {
return documentEventExpireThresholdSeconds == null
? null
: Duration.ofSeconds(documentEventExpireThresholdSeconds);
}
示例6: getOptionalMaxDocumentEventsPerInsert
import com.redhat.lightblue.generator.Transient; //导入依赖的package包/类
@Override
@Transient
@JsonIgnore
// TODO(ahenning): When metadata generator supports optional, remove @Transient and combine
// with getMaxDocumentEventsPerInsert
public Optional<Integer> getOptionalMaxDocumentEventsPerInsert() {
return Optional.ofNullable(maxDocumentEventsPerInsert);
}
示例7: getNotificationProcessingTimeout
import com.redhat.lightblue.generator.Transient; //导入依赖的package包/类
@Override
@Transient
public Duration getNotificationProcessingTimeout() {
return notificationProcessingTimeoutSeconds == null
? null
: Duration.ofSeconds(notificationProcessingTimeoutSeconds);
}
示例8: getNotificationExpireThreshold
import com.redhat.lightblue.generator.Transient; //导入依赖的package包/类
@Override
@Transient
public Duration getNotificationExpireThreshold() {
return notificationExpireThresholdSeconds == null
? null
: Duration.ofSeconds(notificationExpireThresholdSeconds);
}
示例9: getParameterByKey
import com.redhat.lightblue.generator.Transient; //导入依赖的package包/类
@Transient
@Nullable
public String getParameterByKey(String key) {
for (KeyAndValue keyAndValue : parameters) {
if (Objects.equals(key, keyAndValue.getKey())) {
return keyAndValue.getValue();
}
}
throw new NoSuchElementException(key);
}