|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.mmbase.storage.Attributes
This class defines the attributes names used by the standard storage manager classes. Specific storage managers may ignore or add their own attributes.
| Field Summary | |
static java.lang.String |
DEFAULT_STORAGE_IDENTIFIER_PREFIX
Attribute: default-storage-identifier-prefix. |
static java.lang.String |
DISALLOWED_FIELD_CASE_SENSITIVE
Option: disallowed-fields-case-sensitive. |
static java.lang.String |
ENFORCE_DISALLOWED_FIELDS
Option: enforce.disallowed.fields. |
static java.lang.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. |
static java.lang.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. |
static java.lang.String |
STORAGE_IDENTIFIER_CASE
Attribute: storage-identifier-case. |
| 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 DISALLOWED_FIELD_CASE_SENSITIVE
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.
public static final java.lang.String ENFORCE_DISALLOWED_FIELDS
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). false.
Note that you can specify this attribute seperately, but the "enforce" attribute
of the "disallowedfields" tag overrides this attribute.
public static final java.lang.String STORAGE_IDENTIFIER_CASE
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.
public static final java.lang.String DEFAULT_STORAGE_IDENTIFIER_PREFIX
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.
public static final java.lang.String SET_SURROGATOR
public static final java.lang.String GET_SURROGATOR
| Constructor Detail |
public Attributes()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||