Class Attributes


public final class Attributes
extends java.lang.Object

This class defines the attributes names used by the default database storage manager classes. Specific storage managers may ignore or add their own attributes.

$Id:,v 2005/02/03 09:20:40 michiel Exp $
Pierre van Rooden

Field Summary
static java.lang.String BINARY_FILE_PATH
          Attribute: database-binary-file-path.
static java.lang.String DATA_SOURCE
          Attribute: database-data-source.
static java.lang.String FORCE_ENCODE_TEXT
          Option: database-force-encode-text.
static java.lang.String LIE_CP1252
          If the database is ISO-8859-1, then you can switch this option to true, to store CP1252 in it.
static java.lang.String REMOVE_EMPTY_DEFINITIONS
          Option: database-remove-empty-definitions.
static java.lang.String SEQUENCE_BUFFER_SIZE
          Option: sequence-buffer-size.
static java.lang.String STORES_BINARY_AS_FILE
          Option: database-stores-binary-as-file.
static java.lang.String SUPPORTS_BLOB
          Option: database-supports-blob.
static java.lang.String SUPPORTS_COMPOSITE_INDEX
          Option: database-supports-composite-index.
static java.lang.String SUPPORTS_DATA_DEFINITION
          Option: database-supports-data-definition.
static java.lang.String SUPPORTS_TRANSACTIONS
          Option: database-supports-transactions.
          Attribute: database-transaction-isolation-level.
static java.lang.String TRIM_STRINGS
          Option: trim-strings.
Constructor Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail


public static final java.lang.String DATA_SOURCE
Attribute: database-data-source. The data source object used by the storage layer. This attribute is set by the storagelayer and returns a javax.sql.DataSource object. You should not set or configure this attribute (but you can retrieve it).

See Also:
Constant Field Values


public static final java.lang.String SUPPORTS_TRANSACTIONS
Option: database-supports-transactions. When true, the database supports transactions. The default is determined form the database, but you can override it.

See Also:
Constant Field Values


public static final java.lang.String STORES_BINARY_AS_FILE
Option: database-stores-binary-as-file. When true, binary data is stored on disk, rather than in the database. If you set this option ou should also set the attribute BINARY_FILE_PATH The default is false

See Also:
Constant Field Values


public static final java.lang.String BINARY_FILE_PATH
Attribute: database-binary-file-path. The path to the directyory where binary files are to be stored if STORES_BINARY_AS_FILE is true. The default is the WEB-INF/data directory of the mmbase web application. Note that if you specify a relative url, it is taken from the web application's webroot.

See Also:
Constant Field Values


public static final java.lang.String FORCE_ENCODE_TEXT
Option: database-force-encode-text. If true, the database layer will explicitly decode/encode strings using the MMBase encoding when storing and retrieving text from the database. The default is false

See Also:
Constant Field Values


public static final java.lang.String LIE_CP1252
If the database is ISO-8859-1, then you can switch this option to true, to store CP1252 in it.

See Also:
Constant Field Values


public static final java.lang.String SUPPORTS_BLOB
Option: database-supports-blob. When true, the driver/database used supports the JDBC getBlob() method. The default is false

See Also:
Constant Field Values


public static final java.lang.String SUPPORTS_COMPOSITE_INDEX
Option: database-supports-composite-index. When true, the database uses composite indices for 'key' fields. When false, it uses single indices (a separate index for each field) The default is true

See Also:
Constant Field Values


public static final java.lang.String TRANSACTION_ISOLATION_LEVEL
Attribute: database-transaction-isolation-level. The transaction isolation level used for connections to the database. This determines the level of transaction support. The default is determined from the database metadata.

See Also:
Constant Field Values


public static final java.lang.String SUPPORTS_DATA_DEFINITION
Option: database-supports-data-definition. If true, the data definiton (table structure) can be changed using ALTER TABLE statements. Some databses (such as Informix) may have trouble with ALTER TABLE statements on OO-tables. Turn this option false for tehse databses. The default is true

See Also:
Constant Field Values


public static final java.lang.String REMOVE_EMPTY_DEFINITIONS
Option: database-remove-empty-definitions. If this option is true, empty parenthesis in a table definition are removed. When you create a new table that extends form another table, but which doesn't add fields, you may get a statement that looks like:
CREATE TABLE table1 () UNDER table2
This statement will fail udner a database such as Informix, which does not accept empty parenthesis, but instead expects:
CREATE TABLE table1 UNDER table2
On the other hand, a database such as Postgresql DOES expect the parenthesis (and fails if they are ommitted.) The default is false

See Also:
Constant Field Values


public static final java.lang.String SEQUENCE_BUFFER_SIZE
Option: sequence-buffer-size. The sequence buffer size is the number of keys that MMBase caches in the storage layer. You can use this to minimize the nr of times MMBase accesses the database to generate a new object number. When not set, the value is assumed to be 1.

See Also:
Constant Field Values


public static final java.lang.String TRIM_STRINGS
Option: trim-strings. Some text fields for some databases need to be trimmed. The default is false

See Also:
Constant Field Values
Constructor Detail


public Attributes()

MMBase build