org.eclipse.persistence.internal.helper.Helper.hasLob()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(2.2k)|赞(0)|评价(0)|浏览(95)

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

Helper.hasLob介绍

暂无

代码示例

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

/**
 * INTERNAL:
 * Allow the mapping the do any further batch preparation.
 */
@Override
protected void postPrepareNestedBatchQuery(ReadQuery batchQuery, ObjectLevelReadQuery query) {
  super.postPrepareNestedBatchQuery(batchQuery, query);
  // Force a distinct to filter out m-1 duplicates.
  // Only set if really a m-1, not a 1-1
  if (!this.isOneToOneRelationship && ((ObjectLevelReadQuery)batchQuery).getBatchFetchPolicy().isJOIN()) {
    if (!((ObjectLevelReadQuery)batchQuery).isDistinctComputed() && (batchQuery.getSession().getPlatform().isLobCompatibleWithDistinct() || !Helper.hasLob(batchQuery.getDescriptor().getSelectionFields((ObjectLevelReadQuery)batchQuery)))) {
      ((ObjectLevelReadQuery)batchQuery).useDistinct();
    }
  }
  if (this.mechanism != null) {
    this.mechanism.postPrepareNestedBatchQuery(batchQuery, query);
  }
}

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

/**
 * INTERNAL:
 * Allow the mapping the do any further batch preparation.
 */
@Override
protected void postPrepareNestedBatchQuery(ReadQuery batchQuery, ObjectLevelReadQuery query) {
  super.postPrepareNestedBatchQuery(batchQuery, query);
  // Force a distinct to filter out m-1 duplicates.
  // Only set if really a m-1, not a 1-1
  if (!this.isOneToOneRelationship && ((ObjectLevelReadQuery)batchQuery).getBatchFetchPolicy().isJOIN()) {
    if (!((ObjectLevelReadQuery)batchQuery).isDistinctComputed() && (batchQuery.getSession().getPlatform().isLobCompatibleWithDistinct() || !Helper.hasLob(batchQuery.getDescriptor().getSelectionFields((ObjectLevelReadQuery)batchQuery)))) {
      ((ObjectLevelReadQuery)batchQuery).useDistinct();
    }
  }
  if (this.mechanism != null) {
    this.mechanism.postPrepareNestedBatchQuery(batchQuery, query);
  }
}

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

if (Helper.hasLob(((Expression)field).getSelectionFields(this.query))) {
  dontUseDistinct();
  break;

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

if (Helper.hasLob(((Expression)field).getSelectionFields(this.query))) {
  dontUseDistinct();
  break;

相关文章

Helper类方法