|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.mmbase.storage.implementation.database.Attributes
This class defines the attributes names used by the default database storage manager classes. Specific storage managers may ignore or add their own attributes.
| 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 |
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. |
static java.lang.String |
TRANSACTION_ISOLATION_LEVEL
Attribute: database-transaction-isolation-level. |
static java.lang.String |
TRIM_STRINGS
Option: trim-strings. |
| Constructor Summary | |
Attributes()
|
|
| 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
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).
public static final java.lang.String SUPPORTS_TRANSACTIONS
database-supports-transactions.
When true, the database supports transactions.
The default is determined form the database, but you can override it.
public static final java.lang.String STORES_BINARY_AS_FILE
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
public static final java.lang.String BINARY_FILE_PATH
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.
public static final java.lang.String FORCE_ENCODE_TEXT
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
public static final java.lang.String SUPPORTS_BLOB
database-supports-blob.
When true, the driver/database used supports the JDBC getBlob() method.
The default is false
public static final java.lang.String SUPPORTS_COMPOSITE_INDEX
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
public static final java.lang.String TRANSACTION_ISOLATION_LEVEL
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.
public static final java.lang.String SUPPORTS_DATA_DEFINITION
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
public static final java.lang.String REMOVE_EMPTY_DEFINITIONS
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 table2CREATE TABLE table1 UNDER table2false
public static final java.lang.String SEQUENCE_BUFFER_SIZE
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.
public static final java.lang.String TRIM_STRINGS
trim-strings.
Some text fields for some databases need to be trimmed.
The default is false
| Constructor Detail |
public Attributes()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||