Enum Class RolapConnectionProperties
- All Implemented Interfaces:
Serializable
,Comparable<RolapConnectionProperties>
,Constable
RolapConnectionProperties
enumerates the allowable values of
keywords in a Mondrian connect string.
Note to developers: If you add or modify a connection-string property, you must also modify the Configuration Specification.
- Author:
- jhyde, Mar 18, 2003
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe "AggregateScanCatalog" property is the name of the database catalog to scan when looking for aggregate tables.The "AggregateScanSchema" property is the name of the database schema to scan when looking for aggregate tables.The "Catalog" property is the URL of the catalog, an XML file which describes the schema: cubes, hierarchies, and so forth.The "CatalogContent" property is an XML string representing the schema: cubes, hierarchies, and so forth.The "CatalogName" property is not used.The "DataSource" property is the name of a data source class.The name of a class implementing theDataSourceChangeListener
interface.The name of a class implementing theDynamicSchemaProcessor
interface.The "Ignore" property is a boolean value.The "Instance" property is the unique identifier of a mondrian server running in the current JVM.The "Jdbc" property is the URL of the JDBC database where the data is stored.The "JdbcConnectionUuid" property is the unique identifier for the underlying JDBC connection.The "JdbcDrivers" property is a comma-separated list of JDBC driver classes, for example,"sun.jdbc.odbc.JdbcOdbcDriver,oracle.jdbc.OracleDriver"
.The "JdbcPassword" property is the password to log on to the JDBC database.The "JdbcUser" property is the name of the user to log on to the JDBC database.The "Locale" property is the requested Locale for the LocalizingDynamicSchemaProcessor.The "PinSchemaTimeout" defines how much time must Mondrian keep a hard reference to schema objects within the pool of schemas.The "PoolNeeded" property tells Mondrian whether to add a layer of connection pooling.The "Provider" property must have the value"Mondrian"
.The "Role" property is the name of therole
to adopt.Allows to work with dynamically changing schema.The "UseSchemaPool" property disables the schema cache. -
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Any property beginning with this value will be added to the JDBC connection properties, after removing this prefix. -
Method Summary
Modifier and TypeMethodDescriptionstatic RolapConnectionProperties
Returns the enum constant of this class with the specified name.static RolapConnectionProperties[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Provider
The "Provider" property must have the value"Mondrian"
. -
Jdbc
The "Jdbc" property is the URL of the JDBC database where the data is stored. You must specify eitherDataSource
or#Jdbc
. -
JdbcDrivers
The "JdbcDrivers" property is a comma-separated list of JDBC driver classes, for example,"sun.jdbc.odbc.JdbcOdbcDriver,oracle.jdbc.OracleDriver"
. -
JdbcUser
The "JdbcUser" property is the name of the user to log on to the JDBC database. (You don't need to specify this parameter if it is already specified in the JDBC URL.) -
JdbcPassword
The "JdbcPassword" property is the password to log on to the JDBC database. (You don't need to specify this parameter if it is already specified in the JDBC URL.) -
Catalog
The "Catalog" property is the URL of the catalog, an XML file which describes the schema: cubes, hierarchies, and so forth. Catalogs are described in the Schema Guide. See alsoCatalogContent
. -
CatalogContent
The "CatalogContent" property is an XML string representing the schema: cubes, hierarchies, and so forth. Catalogs are described in the Schema Guide.When using this property, quote its value with either single or double quotes, then escape all occurrences of that character within the catalog content by using double single/double quotes. ie:
CatalogContent="<Schema name=""My Schema""/>"
See also
Catalog
. -
CatalogName
The "CatalogName" property is not used. If, in future, we support multiple catalogs, this property will specify which catalog to use. See alsoCatalog
. -
DataSource
The "DataSource" property is the name of a data source class. It must implement theDataSource
interface. You must specify eitherDataSource
orJdbc
. -
PoolNeeded
The "PoolNeeded" property tells Mondrian whether to add a layer of connection pooling.If no value is specified, we assume that:
- connections created via the
Jdbc
property are not pooled, and therefore need to be pooled, - connections created via the
DataSource
are already pooled.
- connections created via the
-
Role
The "Role" property is the name of therole
to adopt. If not specified, the connection uses a role which has access to every object in the schema. -
UseContentChecksum
Allows to work with dynamically changing schema. If this property is set totrue
and schema content has changed (previous checksum doesn't equal with current), schema would be reloaded. Could be used in combination withDynamicSchemaProcessor
property -
UseSchemaPool
The "UseSchemaPool" property disables the schema cache. If false, the schema is not shared with connections which have a textually identical schema. Default is "true". -
DynamicSchemaProcessor
The name of a class implementing theDynamicSchemaProcessor
interface. A dynamic schema processor is called at runtime in order to modify the schema content. -
Locale
The "Locale" property is the requested Locale for the LocalizingDynamicSchemaProcessor. Example values are "en", "en_US", "hu". If Locale is not specified, then the name of system's default will be used, as perLocale.getDefault()
. -
DataSourceChangeListener
The name of a class implementing theDataSourceChangeListener
interface. A data source change listener is used to flush the cache of mondrian every time the datasource is changed. -
Ignore
The "Ignore" property is a boolean value. If true, mondrian ignores warnings and non-fatal errors while loading the schema. The resulting errors can be obtained by callingSchema.getWarnings()
. -
Instance
The "Instance" property is the unique identifier of a mondrian server running in the current JVM. If there are multiple mondrian servers, it ensures that the connection belongs to the correct one. -
JdbcConnectionUuid
The "JdbcConnectionUuid" property is the unique identifier for the underlying JDBC connection. If defined, Mondrian will assume that two connections bearing the same JdbcConnectionUuid point to identical databases without looking at any other properties. -
PinSchemaTimeout
The "PinSchemaTimeout" defines how much time must Mondrian keep a hard reference to schema objects within the pool of schemas.After the timeout is reached, the hard reference will be cleared and the schema will be made a candidate for garbage collection. If the timeout wasn't reached yet and a second query requires the same schema, the timeout will be re-computed from the time of the second access and a new hard reference is established until the new timer reaches its end.
If the timeout is equal to zero, the schema will get pinned permanently. It is inadvisable to use this mode when using a DynamicSchemaProcessor at the risk of filling up the memory.
If the timeout is a negative value, the reference will behave the same as a
SoftReference
. This is the default behavior.The timeout value must be provided as a String representing both the time value and the time unit. For example, 1 second is represented as "1s". Valid time units are [d, h, m, s, ms], representing respectively days, hours, minutes, seconds and milliseconds.
Defaults to "-1s".
-
AggregateScanSchema
The "AggregateScanSchema" property is the name of the database schema to scan when looking for aggregate tables. If defined, Mondrian will only look for aggregate tables within this schema. This means that all aggregate tables, including explicitly defined tables must be in this schema. If not defined, Mondrian will scan every schema that the database connection has access to when looking for aggregate tables. -
AggregateScanCatalog
The "AggregateScanCatalog" property is the name of the database catalog to scan when looking for aggregate tables. If defined, Mondrian will only look for aggregate tables within this catalog. This means that all aggregate tables, including explicitly defined tables must be in this catalog. If not defined, Mondrian will scan every catalog the database connection has access to when looking for aggregate tables.
-
-
Field Details
-
JdbcPropertyPrefix
Any property beginning with this value will be added to the JDBC connection properties, after removing this prefix. This allows you to specify connection properties without a URL.- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-