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


Java Transient类代码示例

本文整理汇总了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;
}
 
开发者ID:esbtools,项目名称:lightblue-notification-hook,代码行数:10,代码来源:NotificationEntity.java

示例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);
}
 
开发者ID:esbtools,项目名称:lightblue-notification-hook,代码行数:11,代码来源:NotificationEntity.java

示例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);
  }
}
 
开发者ID:lightblue-platform,项目名称:lightblue-java-generator,代码行数:15,代码来源:JavaBeansBeanMirror.java

示例4: getDocumentEventProcessingTimeout

import com.redhat.lightblue.generator.Transient; //导入依赖的package包/类
@Override
@Transient
public Duration getDocumentEventProcessingTimeout() {
    return documentEventProcessingTimeoutSeconds == null
            ? null
            : Duration.ofSeconds(documentEventProcessingTimeoutSeconds);
}
 
开发者ID:esbtools,项目名称:event-handler,代码行数:8,代码来源:EventHandlerConfigEntity.java

示例5: getDocumentEventExpireThreshold

import com.redhat.lightblue.generator.Transient; //导入依赖的package包/类
@Override
@Transient
public Duration getDocumentEventExpireThreshold() {
    return documentEventExpireThresholdSeconds == null
            ? null
            : Duration.ofSeconds(documentEventExpireThresholdSeconds);
}
 
开发者ID:esbtools,项目名称:event-handler,代码行数:8,代码来源:EventHandlerConfigEntity.java

示例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);
}
 
开发者ID:esbtools,项目名称:event-handler,代码行数:9,代码来源:EventHandlerConfigEntity.java

示例7: getNotificationProcessingTimeout

import com.redhat.lightblue.generator.Transient; //导入依赖的package包/类
@Override
@Transient
public Duration getNotificationProcessingTimeout() {
    return notificationProcessingTimeoutSeconds == null
            ? null
            : Duration.ofSeconds(notificationProcessingTimeoutSeconds);
}
 
开发者ID:esbtools,项目名称:event-handler,代码行数:8,代码来源:EventHandlerConfigEntity.java

示例8: getNotificationExpireThreshold

import com.redhat.lightblue.generator.Transient; //导入依赖的package包/类
@Override
@Transient
public Duration getNotificationExpireThreshold() {
    return notificationExpireThresholdSeconds == null
            ? null
            : Duration.ofSeconds(notificationExpireThresholdSeconds);
}
 
开发者ID:esbtools,项目名称:event-handler,代码行数:8,代码来源:EventHandlerConfigEntity.java

示例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);
}
 
开发者ID:esbtools,项目名称:event-handler,代码行数:11,代码来源:DocumentEventEntity.java


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