本文整理了Java中javax.persistence.Query.getFlushMode
方法的一些代码示例,展示了Query.getFlushMode
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.getFlushMode
方法的具体详情如下:
包路径:javax.persistence.Query
类名称:Query
方法名:getFlushMode
[英]Get the flush mode in effect for the query execution. If a flush mode has not been set for the query object, returns the flush mode in effect for the entity manager.
[中]获取查询执行的有效刷新模式。如果尚未为查询对象设置刷新模式,则返回对实体管理器有效的刷新模式。
代码示例来源:origin: Impetus/Kundera
@Override
public FlushModeType getFlushMode()
{
return query.getFlushMode();
}
代码示例来源:origin: de.mhus.lib/mhu-lib-persistence
/** {@inheritDoc} */
@Override
public FlushModeType getFlushMode() {
return query.getFlushMode();
}
代码示例来源:origin: kumuluz/kumuluzee
@Override
public FlushModeType getFlushMode() {
return query.getFlushMode();
}
代码示例来源:origin: org.evolvis.bsi/kolab-ws
@Override
public FlushModeType
getFlushMode()
{
return delegate.getFlushMode();
}
代码示例来源:origin: com.kumuluz.ee/kumuluzee-jpa-common
@Override
public FlushModeType getFlushMode() {
return query.getFlushMode();
}
代码示例来源:origin: Blazebit/blaze-persistence
@Override
public FlushModeType getFlushMode() {
return delegate.getFlushMode();
}
代码示例来源:origin: org.jboss.eap/wildfly-jpa
@Override
public FlushModeType getFlushMode() {
return underlyingQuery.getFlushMode();
}
代码示例来源:origin: org.wildfly/wildfly-jpa
@Override
public FlushModeType getFlushMode() {
return underlyingQuery.getFlushMode();
}
代码示例来源:origin: Blazebit/blaze-persistence
@Override
public FlushModeType getFlushMode() {
return delegate.getFlushMode();
}
代码示例来源:origin: org.apache.geronimo.modules/geronimo-persistence-jpa20
@Override
public FlushModeType getFlushMode() {
return query.getFlushMode();
}
代码示例来源:origin: org.apache.tomee/openejb-core
public FlushModeType getFlushMode() {
return query.getFlushMode();
}
代码示例来源:origin: org.apache.openejb/openejb-core
public FlushModeType getFlushMode() {
return query.getFlushMode();
}
代码示例来源:origin: org.apache.geronimo.ext.openejb/openejb-core
public FlushModeType getFlushMode() {
return query.getFlushMode();
}
代码示例来源:origin: net.sf.tsl2nano/tsl2.nano.serviceaccess
/**
* helper to log a query with its parameters
*
* @param query query to analyse
* @return informations of given query
*/
public static String formatQuery(Query query) {
final StringBuilder buf = new StringBuilder("\nQuery: ");
buf.append("hints = " + query.getHints() + ", ");
buf.append("lockmode = " + query.getLockMode() + ", ");
buf.append("flushmode = " + query.getFlushMode() + ", ");
buf.append("maxresults = " + query.getMaxResults()/* + ", "*/);
//there is a illegalaccess problem on the parameters
// buf.append("\nparameter:\n");
// Set<Parameter<?>> parameters = query.getParameters();
// for (Parameter<?> parameter : parameters) {
// buf.append(" " + new Bean(parameter) + "\n");
// }
return buf.toString();
}
代码示例来源:origin: org.glassfish.main.common/container-common
public FlushModeType getFlushMode() {
try {
if(callFlowAgent.isEnabled()) {
callFlowAgent.entityManagerQueryStart(EntityManagerQueryMethod.GET_FLUSH_MODE);
}
return queryDelegate.getFlushMode();
} finally {
if(callFlowAgent.isEnabled()) {
callFlowAgent.entityManagerQueryEnd();
}
}
}
代码示例来源:origin: org.glassfish.common/container-common
public FlushModeType getFlushMode() {
try {
if(callFlowAgent.isEnabled()) {
callFlowAgent.entityManagerQueryStart(EntityManagerQueryMethod.GET_FLUSH_MODE);
}
Query delegate = getQueryDelegate();
return delegate.getFlushMode();
} finally {
if(callFlowAgent.isEnabled()) {
callFlowAgent.entityManagerQueryEnd();
}
}
}
内容来源于网络,如有侵权,请联系作者删除!