org.mapdb
Class SerializerPojo.ClassInfo

java.lang.Object
  extended by org.mapdb.SerializerPojo.ClassInfo
Enclosing class:
SerializerPojo

protected static final class SerializerPojo.ClassInfo
extends Object

Stores info about single class stored in MapDB. Roughly corresponds to 'java.io.ObjectStreamClass'


Field Summary
protected  List<SerializerPojo.FieldInfo> fields
           
protected  boolean isEnum
           
protected  String name
           
protected  Map<String,Integer> name2fieldId
           
protected  Map<String,SerializerPojo.FieldInfo> name2fieldInfo
           
protected  ObjectStreamField[] objectStreamFields
           
protected  boolean useObjectStream
           
 
Constructor Summary
SerializerPojo.ClassInfo(String name, SerializerPojo.FieldInfo[] fields, boolean isEnum, boolean isExternalizable)
           
 
Method Summary
 int addFieldInfo(SerializerPojo.FieldInfo field)
           
 int getFieldId(String name)
           
 ObjectStreamField[] getObjectStreamFields()
           
 void setObjectStreamFields(ObjectStreamField[] objectStreamFields)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

protected final String name

fields

protected final List<SerializerPojo.FieldInfo> fields

name2fieldInfo

protected final Map<String,SerializerPojo.FieldInfo> name2fieldInfo

name2fieldId

protected final Map<String,Integer> name2fieldId

objectStreamFields

protected ObjectStreamField[] objectStreamFields

isEnum

protected final boolean isEnum

useObjectStream

protected final boolean useObjectStream
Constructor Detail

SerializerPojo.ClassInfo

public SerializerPojo.ClassInfo(String name,
                                SerializerPojo.FieldInfo[] fields,
                                boolean isEnum,
                                boolean isExternalizable)
Method Detail

getFieldId

public int getFieldId(String name)

addFieldInfo

public int addFieldInfo(SerializerPojo.FieldInfo field)

getObjectStreamFields

public ObjectStreamField[] getObjectStreamFields()

setObjectStreamFields

public void setObjectStreamFields(ObjectStreamField[] objectStreamFields)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2014. All Rights Reserved.