Java 类javax.persistence.TemporalType 实例源码

项目:endpoint-health    文件:EndPointCheckDao.java   
public Collection<EndPointCheck> findByDateRange(final EndPoint endPoint, final Date startDate,
        final Date endDate) {
    final CriteriaBuilder criteriaBuilder = getEntityManager().getCriteriaBuilder();
    final CriteriaQuery<EndPointCheck> criteriaQuery = criteriaBuilder.createQuery(getEntityClass());
    final Root<EndPointCheck> root = criteriaQuery
            .from(getEntityManager().getMetamodel().entity(getEntityClass()));

    final ParameterExpression<EndPoint> endPointParameter = criteriaBuilder.parameter(EndPoint.class);
    final ParameterExpression<Date> startDateParameter = criteriaBuilder.parameter(Date.class);
    final ParameterExpression<Date> endDateParameter = criteriaBuilder.parameter(Date.class);

    final Predicate endPointIdPredicate = criteriaBuilder
            .equal(root.get("endPoint"), endPointParameter);

    final Path<Date> checkDatePath = root.<Date> get("checkDate");

    final Predicate startDatePredicate = criteriaBuilder
            .greaterThanOrEqualTo(checkDatePath, startDateParameter);

    final Predicate endDatePredicate = criteriaBuilder.lessThanOrEqualTo(
        checkDatePath,
        endDateParameter);

    criteriaQuery.where(criteriaBuilder.and(endPointIdPredicate, startDatePredicate, endDatePredicate));

    criteriaQuery.orderBy(Arrays.asList(criteriaBuilder.asc(checkDatePath)));

    return getEntityManager().createQuery(criteriaQuery)
            .setParameter(endPointParameter, endPoint)
            .setParameter(startDateParameter, startDate, TemporalType.DATE)
            .setParameter(endDateParameter, endDate, TemporalType.DATE)
            .getResultList();
}
项目:spring-data    文件:Profile.java   
@Temporal(TemporalType.DATE)
@Column(name = "created_date", length = 10)
public Date getCreatedDate() {
    return this.createdDate;
}
项目:lemon    文件:PurchaseInfo.java   
/** @return null. */
@Temporal(TemporalType.TIMESTAMP)
@Column(name = "CREATE_TIME", length = 26)
public Date getCreateTime() {
    return this.createTime;
}
项目:spring-data    文件:Profile.java   
@Temporal(TemporalType.DATE)
@Column(name = "last_request_failed_date", length = 10)
public Date getLastRequestFailedDate() {
    return this.lastRequestFailedDate;
}
项目:tap17-muggl-javaee    文件:MugglTypedQuery.java   
@Override
public TypedQuery<X> setParameter(String name, Calendar value,
        TemporalType temporalType) {
    // TODO Auto-generated method stub
    return null;
}
项目:OperatieBRP    文件:CustomCountQueryWrapper.java   
@Override
public TypedQuery<Long> setParameter(final Parameter<Calendar> param, final Calendar value, final TemporalType temporalType) {
    delegate.setParameter(param, value, temporalType);
    return this;
}
项目:oscm    文件:QueryStub.java   
@Override
public Query setParameter(int arg0, Date arg1, TemporalType arg2) {
    throw new UnsupportedOperationException();
}
项目:tap17-muggl-javaee    文件:MugglTypedQuery.java   
@Override
public TypedQuery<X> setParameter(Parameter<Date> param, Date value,
        TemporalType temporalType) {
    // TODO Auto-generated method stub
    return null;
}
项目:oscm    文件:QueryStub.java   
@Override
public Query setParameter(Parameter<Calendar> arg0, Calendar arg1,
        TemporalType arg2) {
    return null;
}
项目:borabeber-api    文件:Promocao.java   
@Temporal(TemporalType.TIMESTAMP)
@Column(name = "data_fim", nullable = false)
public Date getDataFim() {
    return dataFim;
}
项目:oscm    文件:QueryStub.java   
@Override
public Query setParameter(String arg0, Date arg1, TemporalType arg2) {
    return null;
}
项目:ponto-inteligente-api    文件:Lancamento.java   
@Temporal(TemporalType.TIMESTAMP)
@Column(name = "data", nullable = false)
public Date getData() {
    return data;
}
项目:oscm    文件:QueryStub.java   
@Override
public Query setParameter(int arg0, Date arg1, TemporalType arg2) {
    return null;
}
项目:lemon    文件:ActivityInfo.java   
/** @return null. */
@Temporal(TemporalType.TIMESTAMP)
@Column(name = "START_TIME", length = 26)
public Date getStartTime() {
    return this.startTime;
}
项目:oscm    文件:QueryStub.java   
@Override
public Query setParameter(Parameter<Calendar> arg0, Calendar arg1,
        TemporalType arg2) {

    return null;
}
项目:lemon    文件:ExpenseInfo.java   
/** @return null. */
@Temporal(TemporalType.TIMESTAMP)
@Column(name = "START_TIME", length = 26)
public Date getStartTime() {
    return this.startTime;
}
项目:sjk    文件:ComparableBaseApp.java   
@Temporal(TemporalType.TIMESTAMP)
@Column(name = "LastUpdateTime", length = 19)
public Date getLastUpdateTime() {
    return this.lastUpdateTime;
}
项目:lemon    文件:WhitelistPackage.java   
/** @return null. */
@Temporal(TemporalType.TIMESTAMP)
@Column(name = "CREATE_TIME", length = 26)
public Date getCreateTime() {
    return this.createTime;
}
项目:OperatieBRP    文件:CustomCountQueryWrapper.java   
@Override
public TypedQuery<Long> setParameter(final String name, final Date value, final TemporalType temporalType) {
    delegate.setParameter(name, value, temporalType);
    return this;
}
项目:lemon    文件:ContractInfo.java   
/** @return null. */
@Temporal(TemporalType.TIMESTAMP)
@Column(name = "START_TIME", length = 26)
public Date getStartTime() {
    return this.startTime;
}
项目:oscm    文件:QueryStub.java   
@Override
public Query setParameter(Parameter<Calendar> arg0, Calendar arg1,
        TemporalType arg2) {

    return null;
}
项目:sjk    文件:MonUserChannelApp.java   
@Temporal(TemporalType.TIMESTAMP)
@Column(name = "OptTime", nullable = false, length = 19)
public Date getOptTime() {
    return optTime;
}
项目:sjk    文件:Metro.java   
@Temporal(TemporalType.TIMESTAMP)
@Column(name = "OpTime", nullable = false, length = 19)
public Date getOpTime() {
    return this.opTime;
}
项目:oscm    文件:OrganizationData.java   
@Temporal(TemporalType.DATE)
public Long getDeregistrationDate() {
    return deregistrationDate;
}
项目:lemon    文件:PimTask.java   
/** @return null. */
@Temporal(TemporalType.TIMESTAMP)
@Column(name = "END_TIME", length = 26)
public Date getEndTime() {
    return this.endTime;
}
项目:lemon    文件:TicketInfo.java   
/** @return null. */
@Temporal(TemporalType.TIMESTAMP)
@Column(name = "CREATE_TIME", length = 26)
public Date getCreateTime() {
    return this.createTime;
}
项目:vertx-jpa    文件:QueryImpl.java   
@Override
public javax.persistence.Query setParameter(String name, Date value, TemporalType temporalType) {
  return _q.setParameter(name, value, temporalType);
}
项目:lemon    文件:TicketComment.java   
/** @return null. */
@Temporal(TemporalType.TIMESTAMP)
@Column(name = "CREATE_TIME", length = 26)
public Date getCreateTime() {
    return this.createTime;
}
项目:lemon    文件:BookInfo.java   
/** @return null. */
@Temporal(TemporalType.DATE)
@Column(name = "PUBLISH_DATE", length = 10)
public Date getPublishDate() {
    return this.publishDate;
}
项目:lemon    文件:CmsArticle.java   
/** @return null. */
@Temporal(TemporalType.TIMESTAMP)
@Column(name = "CLOSE_TIME", length = 26)
public Date getCloseTime() {
    return this.closeTime;
}
项目:tap17-muggl-javaee    文件:MugglTypedQuery.java   
@Override
public TypedQuery<X> setParameter(Parameter<Calendar> param, Calendar value,
        TemporalType temporalType) {
    // TODO Auto-generated method stub
    return null;
}
项目:lemon    文件:DelegateInfo.java   
/** @return null. */
@Temporal(TemporalType.TIMESTAMP)
@Column(name = "START_TIME", length = 26)
public Date getStartTime() {
    return this.startTime;
}
项目:lemon    文件:TaskLog.java   
/** @return 事件事件. */
@Temporal(TemporalType.TIMESTAMP)
@Column(name = "EVENT_TIME", length = 26)
public Date getEventTime() {
    return this.eventTime;
}
项目:borabeber-api    文件:Promocao.java   
@Temporal(TemporalType.TIMESTAMP)
@Column(name = "data_inicio", nullable = false)
public Date getDataInicio() {
    return dataInicio;
}
项目:sjk    文件:Metro.java   
@Temporal(TemporalType.DATE)
@Column(name = "Time", length = 10)
public Date getTime() {
    return this.time;
}
项目:sjk    文件:AppHistory4Index.java   
@Temporal(TemporalType.TIMESTAMP)
@Column(name = "LastOpTime", nullable = false, length = 19)
public Date getLastOpTime() {
    return this.lastOpTime;
}
项目:lemon    文件:CustomerInfo.java   
/** @return null. */
@Temporal(TemporalType.TIMESTAMP)
@Column(name = "CREATE_TIME", length = 26)
public Date getCreateTime() {
    return this.createTime;
}
项目:lemon    文件:FeedbackInfo.java   
/** @return null. */
@Temporal(TemporalType.TIMESTAMP)
@Column(name = "CREATE_TIME", length = 26)
public Date getCreateTime() {
    return this.createTime;
}
项目:sbc-qsystem    文件:QCustomer.java   
@Column(name = "welcome_time")
@Temporal(TemporalType.TIMESTAMP)
public Date getWelcomeTime() {
    return welcomeTime;
}
项目:lemon    文件:BpmSequence.java   
/** @return null. */
@Temporal(TemporalType.TIMESTAMP)
@Column(name = "CREATE_TIME", length = 26)
public Date getCreateTime() {
    return this.createTime;
}