public class ClassDefinitionImpl extends Object implements ClassDefinition
Modifier and Type | Field and Description |
---|---|
protected int |
classId |
protected int |
factoryId |
protected int |
version |
Constructor and Description |
---|
ClassDefinitionImpl() |
ClassDefinitionImpl(int factoryId,
int classId) |
Modifier and Type | Method and Description |
---|---|
void |
addClassDef(ClassDefinition cd) |
void |
addFieldDef(FieldDefinition fd) |
boolean |
equals(Object o) |
FieldDefinition |
get(int fieldIndex) |
FieldDefinition |
get(String name) |
byte[] |
getBinary() |
int |
getClassId() |
int |
getFactoryId() |
int |
getFieldClassId(String fieldName) |
int |
getFieldCount() |
Set<String> |
getFieldNames() |
FieldType |
getFieldType(String fieldName) |
Set<ClassDefinition> |
getNestedClassDefinitions() |
int |
getVersion() |
boolean |
hasField(String fieldName) |
int |
hashCode() |
void |
readData(com.hazelcast.nio.ObjectDataInput in) |
String |
toString() |
void |
writeData(com.hazelcast.nio.ObjectDataOutput out) |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getClassId, getFactoryId, getVersion
protected int factoryId
protected int classId
protected int version
public ClassDefinitionImpl()
public ClassDefinitionImpl(int factoryId, int classId)
public void addFieldDef(FieldDefinition fd)
public void addClassDef(ClassDefinition cd)
public FieldDefinition get(String name)
get
in interface ClassDefinition
public FieldDefinition get(int fieldIndex)
get
in interface ClassDefinition
public Set<ClassDefinition> getNestedClassDefinitions()
public boolean hasField(String fieldName)
hasField
in interface ClassDefinition
public Set<String> getFieldNames()
getFieldNames
in interface ClassDefinition
public FieldType getFieldType(String fieldName)
getFieldType
in interface ClassDefinition
public int getFieldClassId(String fieldName)
getFieldClassId
in interface ClassDefinition
public void writeData(com.hazelcast.nio.ObjectDataOutput out) throws IOException
writeData
in interface DataSerializable
IOException
public void readData(com.hazelcast.nio.ObjectDataInput in) throws IOException
readData
in interface DataSerializable
IOException
public int getFieldCount()
getFieldCount
in interface ClassDefinition
public final int getFactoryId()
getFactoryId
in interface ClassDefinition
public final int getClassId()
getClassId
in interface ClassDefinition
public final int getVersion()
getVersion
in interface ClassDefinition
public final byte[] getBinary()
Copyright © 2014 Hazelcast, Inc.. All Rights Reserved.