Class ORecordFactoryManager
java.lang.Object
com.orientechnologies.orient.core.record.ORecordFactoryManager
Record factory. To use your own record implementation use the declareRecordType() method. Example
of registration of the record MyRecord:
declareRecordType('m', "myrecord", MyRecord.class);
- Author:
- Sylvain Spinelli, Luca Garulli (l.garulli--(at)--orientdb.com)
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ORecordFactoryManager.ORecordFactory[]protected final String[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeclareRecordType(byte iByte, String iName, Class<? extends ORecord> iClass, ORecordFactoryManager.ORecordFactory iFactory) protected ORecordFactoryManager.ORecordFactorygetFactory(byte iRecordType) getRecordTypeClass(byte iRecordType) getRecordTypeName(byte iRecordType) newInstance(byte iRecordType, int cluster, ODatabaseDocumentInternal database) newInstance(int cluster, ODatabaseDocumentInternal database)
-
Field Details
-
recordTypeNames
-
recordTypes
-
recordFactories
-
-
Constructor Details
-
ORecordFactoryManager
public ORecordFactoryManager()
-
-
Method Details
-
getRecordTypeName
-
getRecordTypeClass
-
newInstance
-
newInstance
-
declareRecordType
public void declareRecordType(byte iByte, String iName, Class<? extends ORecord> iClass, ORecordFactoryManager.ORecordFactory iFactory) -
getFactory
-