Summary
Allows registering special TypeHandlers for customized marshalling
and customized comparisons.
- Assembly
- Db4objects
.Db4o-2010 .dll - Namespace
- Db4objects
.Db4o .Config - Containing Type
- ICommonConfiguration
Syntax
void RegisterTypeHandler(ITypeHandlerPredicate predicate, ITypeHandler4 typeHandler)
Remarks
Allows registering special TypeHandlers for customized marshalling
and customized comparisons.
This is only for adventurous people, since type handlers work a the lowest levels:
This is only for adventurous people, since type handlers work a the lowest levels:
- There is no versioning support: If you need to change the serialisation scheme of the type your are on your own.
- The typehandler-API is mostly undocumented and not as stable as other db4o APIs.
- Elaborate type handlers need deep knowledge of undocumented, internal implementation details of db4o.
- Mistakes in typehandlers can lead to cryptic error messages and database corruption.
Parameters
Name | Type | Description |
---|---|---|
predicate | I |
to specify for which classes and versions the TypeHandler is to be used. |
typeHandler | ITypeHandler4 | to be used for the classes that match the predicate. |
Return Value
Type | Description |
---|---|
void |