| java.lang.Object org.mmbase.storage.implementation.database.Attributes
Attributes | final public class Attributes (Code) | | This class defines the attributes names used by the default database storage manager classes.
Specific storage managers may ignore or add their own attributes.
author: Pierre van Rooden since: MMBase-1.7 version: $Id: Attributes.java,v 1.14 2005/02/03 09:21:38 michiel Exp $ |
BINARY_FILE_PATH | final public static String BINARY_FILE_PATH(Code) | | Attribute: database-binary-file-path .
The path to the directyory where binary files are to be stored if
Attributes.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.
|
DATA_SOURCE | final public static String DATA_SOURCE(Code) | | 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).
|
FORCE_ENCODE_TEXT | final public static String FORCE_ENCODE_TEXT(Code) | | 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
|
LIE_CP1252 | final public static String LIE_CP1252(Code) | | If the database is ISO-8859-1, then you can switch this option to true, to store CP1252 in it.
|
REMOVE_EMPTY_DEFINITIONS | final public static String REMOVE_EMPTY_DEFINITIONS(Code) | | 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
|
SEQUENCE_BUFFER_SIZE | final public static String SEQUENCE_BUFFER_SIZE(Code) | | 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.
|
STORES_BINARY_AS_FILE | final public static String STORES_BINARY_AS_FILE(Code) | | 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
Attributes.BINARY_FILE_PATH The default is false
|
SUPPORTS_BLOB | final public static String SUPPORTS_BLOB(Code) | | Option: database-supports-blob .
When true, the driver/database used supports the JDBC getBlob() method.
The default is false
|
SUPPORTS_COMPOSITE_INDEX | final public static String SUPPORTS_COMPOSITE_INDEX(Code) | | 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
|
SUPPORTS_DATA_DEFINITION | final public static String SUPPORTS_DATA_DEFINITION(Code) | | 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
|
SUPPORTS_TRANSACTIONS | final public static String SUPPORTS_TRANSACTIONS(Code) | | Option: database-supports-transactions .
When true, the database supports transactions.
The default is determined form the database, but you can override it.
|
TRANSACTION_ISOLATION_LEVEL | final public static String TRANSACTION_ISOLATION_LEVEL(Code) | | 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.
|
TRIM_STRINGS | final public static String TRIM_STRINGS(Code) | | Option: trim-strings .
Some text fields for some databases need to be trimmed.
The default is false
|
|
|