/** * PUBLIC: * Cache all prepared statements, this requires full parameter binding as well. * @see #bindAllParameters() */ public void cacheAllStatements() { setShouldCacheAllStatements(true); }
/** * PUBLIC: * Cache all prepared statements, this requires full parameter binding as well. * @see #bindAllParameters() */ public void cacheAllStatements() { setShouldCacheAllStatements(true); }
/** * PUBLIC: * Do not cache all prepared statements. */ public void dontCacheAllStatements() { setShouldCacheAllStatements(false); }
/** * PUBLIC: * Do not cache all prepared statements. */ public void dontCacheAllStatements() { setShouldCacheAllStatements(false); }
/** * PUBLIC: * Cache all prepared statements, this requires full parameter binding as well. * @see #bindAllParameters() */ public void cacheAllStatements() { setShouldCacheAllStatements(true); }
/** * PUBLIC: * Do not cache all prepared statements. */ public void dontCacheAllStatements() { setShouldCacheAllStatements(false); }
/** * Method used to set if statements should be cached. Please note that Statements can not be cached when * using an external connection pool */ public void setShouldCacheAllStatements(boolean shouldCacheAllStatements) { if (!(getSession().getDatasourceLogin() instanceof DatabaseLogin)) { return; } ((DatabaseLogin)getSession().getDatasourceLogin()).setShouldCacheAllStatements(shouldCacheAllStatements); }
/** * Method used to set if statements should be cached. Please note that Statements can not be cached when * using an external connection pool */ public void setShouldCacheAllStatements(boolean shouldCacheAllStatements) { if (!(getSession().getDatasourceLogin() instanceof DatabaseLogin)) { return; } ((DatabaseLogin)getSession().getDatasourceLogin()).setShouldCacheAllStatements(shouldCacheAllStatements); }
/** * Method used to set if statements should be cached. Please note that Statements can not be cached when * using an external connection pool */ public void setShouldCacheAllStatements(boolean shouldCacheAllStatements) { if (!(getSession().getDatasourceLogin() instanceof DatabaseLogin)) { return; } ((DatabaseLogin)getSession().getDatasourceLogin()).setShouldCacheAllStatements(shouldCacheAllStatements); }
session.log(SessionLog.WARNING, SessionLog.PROPERTIES, "persistence_unit_ignores_statments_cache_setting", new Object[]{null}); } else { session.getProject().getLogin().setShouldCacheAllStatements(true); session.getProject().getLogin().setShouldCacheAllStatements(false); } else { session.handleException(ValidationException.invalidBooleanValueForEnableStatmentsCached(statmentsNeedBeCached));
databaseLogin.setShouldCacheAllStatements(databaseLoginConfig.getCacheAllStatements());
databaseLogin.setShouldCacheAllStatements(databaseLoginConfig.getCacheAllStatements());
databaseLogin.setShouldCacheAllStatements(databaseLoginConfig.getCacheAllStatements());