public boolean triggersAreEnabled() { return ((MondrianProperties) this).EnableTriggers.get(); }
/** * Returns the default memory notification percentage. * * <p>This is the value of the Mondrian * {@link MondrianProperties#MemoryMonitorThreshold} property. * * @return the default threshold percentage. */ public int getDefaultThresholdPercentage() { return MondrianProperties.instance().MemoryMonitorThreshold.get(); }
protected static String getCatalogURLProperty() { return MondrianProperties.instance().CatalogURL.get(); } protected static String getJdbcDriversProperty() {
private DefaultRules(final DefaultDef.AggRules rules) { this.rules = rules; this.factToPattern = new HashMap<String, Recognizer.Matcher>(); this.foreignKeyMatcherMap = new HashMap<String, Recognizer.Matcher>(); this.tag = MondrianProperties.instance().AggregateRuleTag.getDefaultValue(); }
public static void reloadNullLiteral() { mdxNullLiteral = MondrianProperties.instance().NullMemberRepresentation.get(); }
/** * Returns whether the use of a <code>MemoryMonitor</code> is enabled. * * @return <code>true</code> if enabled and <code>false</code> otherwise. */ protected boolean enabled() { return MondrianProperties.instance().MemoryMonitor.get(); }
private static boolean isArgSizeSupported( RolapEvaluator evaluator, int argSize) { boolean argSizeNotSupported = false; // Note: arg size 0 is accepted as valid CJ argument // This is used to push down the "1 = 0" predicate // into the emerging CJ so that the entire CJ can // be natively evaluated. // First check that the member list will not result in a predicate // longer than the underlying DB could support. if (argSize > MondrianProperties.instance().MaxConstraints.get()) { argSizeNotSupported = true; } return !argSizeNotSupported; }
protected static String getConnectStringProperty() { return MondrianProperties.instance().TestConnectString.get(); } protected static String getJdbcURLProperty() {
/** * Creates a SqlQuery using a given dialect and inheriting the formatting * preferences from {@link MondrianProperties#GenerateFormattedSql} * property. * * @param dialect Dialect */ public SqlQuery(Dialect dialect) { this( dialect, MondrianProperties.instance().GenerateFormattedSql.get()); }
private static boolean isArgSizeSupported( RolapEvaluator evaluator, int argSize) { boolean argSizeNotSupported = false; // Note: arg size 0 is accepted as valid CJ argument // This is used to push down the "1 = 0" predicate // into the emerging CJ so that the entire CJ can // be natively evaluated. // First check that the member list will not result in a predicate // longer than the underlying DB could support. if (argSize > MondrianProperties.instance().MaxConstraints.get()) { argSizeNotSupported = true; } return !argSizeNotSupported; }
protected static String getJdbcPasswordProperty() { return MondrianProperties.instance().TestJdbcPassword.get(); } protected static String getCatalogURLProperty() {
boolean isCacheDisabled() { return MondrianProperties.instance().DisableCaching.get(); }
protected static String getJdbcDriversProperty() { return MondrianProperties.instance().JdbcDrivers.get(); }
public static void setNativeNonEmptyValue() { enabled = MondrianProperties.instance().EnableNativeNonEmpty.get(); }
protected static String getJdbcURLProperty() { return MondrianProperties.instance().FoodmartJdbcURL.get(); }
/** * Generates a normalized form of a name, for use as a key into a map. * Returns the upper case name if * {@link MondrianProperties#CaseSensitive} is true, the name unchanged * otherwise. */ public static String normalizeName(String s) { return MondrianProperties.instance().CaseSensitive.get() ? s : s.toUpperCase(); }
protected static String getJdbcUserProperty() { return MondrianProperties.instance().TestJdbcUser.get(); }
public boolean put(SegmentHeader header, SegmentBody body) { if (MondrianProperties.instance().DisableCaching.get()) { return true; } for (SegmentCacheWorker worker : workers) { worker.put(header, body); } return true; }
private void loadProperties() { String propFile = MondrianProperties.instance().LocalePropFile.get(); if (propFile != null) { populate(propFile); } }