| java.lang.Object org.mmbase.storage.Attributes
Attributes | final public class Attributes (Code) | | This class defines the attributes names used by the standard 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.6 2005/10/26 13:28:08 michiel Exp $ |
Field Summary | |
final public static String | DEFAULT_STORAGE_IDENTIFIER_PREFIX Attribute: default-storage-identifier-prefix . | final public static String | DISALLOWED_FIELD_CASE_SENSITIVE Option: disallowed-fields-case-sensitive . | final public static String | ENFORCE_DISALLOWED_FIELDS Option: enforce.disallowed.fields .
if true , the storage layer alwyas fails when encountering fieldnames that are reserved sql keywords,
and for which no alternate name is available.
If false , the layer will ignore the restriction and attempt to use the reserved word (leaving any
errors to the underlying implementation). | final public static String | GET_SURROGATOR This attribute can be used to specify a CharTransformer class of which an instance will be
used to filter strings which are fetched from the database. | final public static String | MAX_IDENTIFIER_LENGTH This attribute can be used to specify the maximum identifier length for
table names and key names. | final public static String | SET_SURROGATOR This attribute can be used to specify a CharTransformer class of which an instance will be
used to filter strings which are set into the database. | final public static String | STORAGE_IDENTIFIER_CASE Attribute: storage-identifier-case .
if set, the storage identifiers for builders and fieldnames are converted to lowercase (if the value is 'lower') or
uppercase (if the value is 'upper') before they are passed to the storage manager.
If you specify another value this attribute is ignored.
This ensures that field or builder names that differ only by case will return the same storage identifier
(and thus point to the same storage element).
You may need to set this value for some specific storage implementations. |
DEFAULT_STORAGE_IDENTIFIER_PREFIX | final public static String DEFAULT_STORAGE_IDENTIFIER_PREFIX(Code) | | Attribute: default-storage-identifier-prefix .
A default prefix to place in front of diallowed fieldnames to make them suitabel for use in a storage layer.
By default, this option is not set.
|
DISALLOWED_FIELD_CASE_SENSITIVE | final public static String DISALLOWED_FIELD_CASE_SENSITIVE(Code) | | Option: disallowed-fields-case-sensitive .
if true , matching MMBase fieldnames with the disallowed fieldnames list is case-sensitive.
By default, this option is false .
Note that you can specify this attribute seperately, but the "case-sensitive" attribute
of the "disallowedfields" tag overrides this attribute.
|
ENFORCE_DISALLOWED_FIELDS | final public static String ENFORCE_DISALLOWED_FIELDS(Code) | | Option: enforce.disallowed.fields .
if true , the storage layer alwyas fails when encountering fieldnames that are reserved sql keywords,
and for which no alternate name is available.
If false , the layer will ignore the restriction and attempt to use the reserved word (leaving any
errors to the underlying implementation).
By default, this option is false .
Note that you can specify this attribute seperately, but the "enforce" attribute
of the "disallowedfields" tag overrides this attribute.
|
GET_SURROGATOR | final public static String GET_SURROGATOR(Code) | | This attribute can be used to specify a CharTransformer class of which an instance will be
used to filter strings which are fetched from the database.
since: MMBase-1.7.4 |
MAX_IDENTIFIER_LENGTH | final public static String MAX_IDENTIFIER_LENGTH(Code) | | This attribute can be used to specify the maximum identifier length for
table names and key names.
since: MMBase-1.8.0 |
SET_SURROGATOR | final public static String SET_SURROGATOR(Code) | | This attribute can be used to specify a CharTransformer class of which an instance will be
used to filter strings which are set into the database.
since: MMBase-1.7.4 |
STORAGE_IDENTIFIER_CASE | final public static String STORAGE_IDENTIFIER_CASE(Code) | | Attribute: storage-identifier-case .
if set, the storage identifiers for builders and fieldnames are converted to lowercase (if the value is 'lower') or
uppercase (if the value is 'upper') before they are passed to the storage manager.
If you specify another value this attribute is ignored.
This ensures that field or builder names that differ only by case will return the same storage identifier
(and thus point to the same storage element).
You may need to set this value for some specific storage implementations. I.e. some databases expect table or fieldname to be
case sensitive, or expect them to be uppercase.
By default, this option is not set.
|
|
|