org.eclipse.persistence.internal.expressions.QueryKeyExpression.selectIfOrderedBy()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(5.0k)|赞(0)|评价(0)|浏览(118)

本文整理了Java中org.eclipse.persistence.internal.expressions.QueryKeyExpression.selectIfOrderedBy方法的一些代码示例,展示了QueryKeyExpression.selectIfOrderedBy的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。QueryKeyExpression.selectIfOrderedBy方法的具体详情如下:
包路径:org.eclipse.persistence.internal.expressions.QueryKeyExpression
类名称:QueryKeyExpression
方法名:selectIfOrderedBy

QueryKeyExpression.selectIfOrderedBy介绍

暂无

代码示例

代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * INTERNAL:
 * A special version of rebuildOn where the newBase need not be a new
 * ExpressionBuilder but any expression.
 * <p>
 * For nested joined attributes, the joined attribute query must have
 * its joined attributes rebuilt relative to it.
 */
public Expression rebuildOn(Expression oldBase, Expression newBase) {
  if (this == oldBase) {
    return newBase;
  }
  Expression newLocalBase = ((QueryKeyExpression)this.baseExpression).rebuildOn(oldBase, newBase);
  QueryKeyExpression result = null;
  // For bug 3096634 rebuild outer joins correctly from the start.
  if (shouldUseOuterJoin) {
    result = (QueryKeyExpression)newLocalBase.getAllowingNull(getName());
  } else {
    result = (QueryKeyExpression)newLocalBase.get(getName());
  }
  if (shouldQueryToManyRelationship) {
    result.doQueryToManyRelationship();
  }
  result.setSelectIfOrderedBy(selectIfOrderedBy());
  return result;
}

代码示例来源:origin: com.haulmont.thirdparty/eclipselink

/**
 * INTERNAL:
 * A special version of rebuildOn where the newBase need not be a new
 * ExpressionBuilder but any expression.
 * <p>
 * For nested joined attributes, the joined attribute query must have
 * its joined attributes rebuilt relative to it.
 */
public Expression rebuildOn(Expression oldBase, Expression newBase) {
  if (this == oldBase) {
    return newBase;
  }
  Expression newLocalBase = ((QueryKeyExpression)this.baseExpression).rebuildOn(oldBase, newBase);
  QueryKeyExpression result = null;
  // For bug 3096634 rebuild outer joins correctly from the start.
  if (shouldUseOuterJoin) {
    result = (QueryKeyExpression)newLocalBase.getAllowingNull(getName());
  } else {
    result = (QueryKeyExpression)newLocalBase.get(getName());
  }
  if (shouldQueryToManyRelationship) {
    result.doQueryToManyRelationship();
  }
  result.setSelectIfOrderedBy(selectIfOrderedBy());
  return result;
}

代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * INTERNAL:
 * This expression is built on a different base than the one we want. Rebuild it and
 * return the root of the new tree
 */
public Expression rebuildOn(Expression newBase) {
  Expression newLocalBase = getBaseExpression().rebuildOn(newBase);
  QueryKeyExpression result = null;
  // For bug 3096634 rebuild outer joins correctly from the start.
  if (shouldUseOuterJoin) {
    result = (QueryKeyExpression)newLocalBase.getAllowingNull(getName());
  } else {
    result = (QueryKeyExpression)newLocalBase.get(getName());
  }
  if (shouldQueryToManyRelationship) {
    result.doQueryToManyRelationship();
  }
  result.setSelectIfOrderedBy(selectIfOrderedBy());
  return result;
}

代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * INTERNAL:
 * A special version of rebuildOn where the newBase need not be a new
 * ExpressionBuilder but any expression.
 * <p>
 * For nested joined attributes, the joined attribute query must have
 * its joined attributes rebuilt relative to it.
 */
public Expression rebuildOn(Expression oldBase, Expression newBase) {
  if (this == oldBase) {
    return newBase;
  }
  Expression newLocalBase = ((QueryKeyExpression)getBaseExpression()).rebuildOn(oldBase, newBase);
  QueryKeyExpression result = null;
  // For bug 3096634 rebuild outer joins correctly from the start.
  if (shouldUseOuterJoin) {
    result = (QueryKeyExpression)newLocalBase.getAllowingNull(getName());
  } else {
    result = (QueryKeyExpression)newLocalBase.get(getName());
  }
  if (shouldQueryToManyRelationship) {
    result.doQueryToManyRelationship();
  }
  result.setSelectIfOrderedBy(selectIfOrderedBy());
  return result;
}

代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * INTERNAL:
 * This expression is built on a different base than the one we want. Rebuild it and
 * return the root of the new tree
 */
@Override
public Expression rebuildOn(Expression newBase) {
  Expression newLocalBase = this.baseExpression.rebuildOn(newBase);
  QueryKeyExpression result = null;
  // For bug 3096634 rebuild outer joins correctly from the start.
  if (shouldUseOuterJoin) {
    result = (QueryKeyExpression)newLocalBase.getAllowingNull(getName());
  } else {
    result = (QueryKeyExpression)newLocalBase.get(getName());
  }
  if (shouldQueryToManyRelationship) {
    result.doQueryToManyRelationship();
  }
  result.setSelectIfOrderedBy(selectIfOrderedBy());
  if (castClass != null){
    result.setCastClass(castClass);
  }
  return result;
}

代码示例来源:origin: com.haulmont.thirdparty/eclipselink

/**
 * INTERNAL:
 * This expression is built on a different base than the one we want. Rebuild it and
 * return the root of the new tree
 */
@Override
public Expression rebuildOn(Expression newBase) {
  Expression newLocalBase = this.baseExpression.rebuildOn(newBase);
  QueryKeyExpression result = null;
  // For bug 3096634 rebuild outer joins correctly from the start.
  if (shouldUseOuterJoin) {
    result = (QueryKeyExpression)newLocalBase.getAllowingNull(getName());
  } else {
    result = (QueryKeyExpression)newLocalBase.get(getName());
  }
  if (shouldQueryToManyRelationship) {
    result.doQueryToManyRelationship();
  }
  result.setSelectIfOrderedBy(selectIfOrderedBy());
  if (castClass != null){
    result.setCastClass(castClass);
  }
  return result;
}

相关文章

微信公众号

最新文章

更多

QueryKeyExpression类方法