本文整理了Java中org.eclipse.persistence.internal.helper.Helper.hasLob()
方法的一些代码示例,展示了Helper.hasLob()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Helper.hasLob()
方法的具体详情如下:
包路径:org.eclipse.persistence.internal.helper.Helper
类名称: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;
内容来源于网络,如有侵权,请联系作者删除!