本文整理了Java中org.molgenis.data.Entity.getLocalDate()
方法的一些代码示例,展示了Entity.getLocalDate()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Entity.getLocalDate()
方法的具体详情如下:
包路径:org.molgenis.data.Entity
类名称:Entity
方法名:getLocalDate
暂无
代码示例来源:origin: org.molgenis/molgenis-settings
@Override
public LocalDate getLocalDate(String attributeName) {
return getEntity().getLocalDate(attributeName);
}
代码示例来源:origin: org.molgenis/molgenis-data-validation
private static ConstraintViolation checkDate(
Entity entity, Attribute attribute, EntityType entityType) {
try {
entity.getLocalDate(attribute.getName());
return null;
} catch (Exception e) {
return createConstraintViolation(entity, attribute, entityType);
}
}
代码示例来源:origin: org.molgenis/molgenis-data-cache
break;
case DATE:
value = entity.getLocalDate(name);
break;
case DATE_TIME:
代码示例来源:origin: org.molgenis/molgenis-web
break;
case DATE:
LocalDate localDateValue = entity.getLocalDate(attributeName);
result.add(attributeName, context.serialize(localDateValue));
break;
代码示例来源:origin: org.molgenis/molgenis-data-rest
LocalDate date = entity.getLocalDate(attrName);
entityMap.put(attrName, date != null ? date.toString() : null);
} else if (attrType == DATE_TIME) {
代码示例来源:origin: org.molgenis/molgenis-data-rest
throw new RuntimeException("Invalid data type [" + dataType + "]");
case DATE:
LocalDate dateValue = entity.getLocalDate(attrName);
responseData.put(attrName, dateValue != null ? dateValue.toString() : null);
break;
代码示例来源:origin: org.molgenis/molgenis-js
break;
case DATE:
LocalDate localDate = entity.getLocalDate(attrName);
if (localDate != null) {
value = localDate.atStartOfDay(ZoneId.systemDefault()).toInstant().toEpochMilli();
代码示例来源:origin: org.molgenis/molgenis-data-validation
switch (attribute.getDataType()) {
case DATE:
return entity.getLocalDate(attributeName);
case DATE_TIME:
return entity.getInstant(attributeName);
代码示例来源:origin: org.molgenis/molgenis-data-postgresql
.collect(toList());
case DATE:
return entity.getLocalDate(attrName);
case DATE_TIME:
代码示例来源:origin: org.molgenis/molgenis-fair
case DATE:
XMLGregorianCalendar calendar =
DATATYPE_FACTORY.newXMLGregorianCalendar(objectEntity.getLocalDate(name).toString());
model.add(subject, predicate, valueFactory.createLiteral(calendar));
break;
内容来源于网络,如有侵权,请联系作者删除!