public class SortedEntrySerializer
extends java.lang.Object
implements jdbm.helper.Serializer
| Modifier and Type | Field and Description |
|---|---|
private static boolean |
IS_DEBUG
Speedup for logs
|
private static org.slf4j.Logger |
LOG
the logger for this class
|
private static org.apache.directory.api.ldap.model.schema.SchemaManager |
schemaManager
The schemaManager reference
|
private static long |
serialVersionUID
The serialVersionUID
|
| Constructor and Description |
|---|
SortedEntrySerializer()
Creates a new instance of ServerEntrySerializer.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
deserialize(byte[] serialized) |
byte[] |
serialize(org.apache.directory.api.ldap.model.entry.Entry entry)
This is the place where we serialize entries, and all theirs
elements.
|
byte[] |
serialize(java.lang.Object obj) |
static void |
setSchemaManager(org.apache.directory.api.ldap.model.schema.SchemaManager schemaManager) |
private static final long serialVersionUID
private static final org.slf4j.Logger LOG
private static final boolean IS_DEBUG
private static org.apache.directory.api.ldap.model.schema.SchemaManager schemaManager
public SortedEntrySerializer()
setSchemaManager(SchemaManager)public byte[] serialize(java.lang.Object obj)
throws java.io.IOException
serialize in interface jdbm.helper.Serializerjava.io.IOExceptionpublic java.lang.Object deserialize(byte[] serialized)
throws java.io.IOException
deserialize in interface jdbm.helper.Serializerjava.io.IOExceptionpublic byte[] serialize(org.apache.directory.api.ldap.model.entry.Entry entry)
This is the place where we serialize entries, and all theirs
elements. the reason why we don't call the underlying methods
(ServerAttribute.write(), Value.write()) is that we need
access to the registries to read back the values.
The structure used to store the entry is the following :
public static void setSchemaManager(org.apache.directory.api.ldap.model.schema.SchemaManager schemaManager)