org.neodatis.odb.impl.main
Class DefaultClassRepresentation
- java.lang.Object
-
- org.neodatis.odb.impl.main.DefaultClassRepresentation
-
- All Implemented Interfaces:
- java.io.Serializable, ClassRepresentation
public class DefaultClassRepresentation extends java.lang.Object implements ClassRepresentation
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description DefaultClassRepresentation(IStorageEngine storageEngine, ClassInfo classInfo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidaddFullInstantiationHelper(FullInstantiationHelper instantiationHelper)Adds an helper to tell ODB what class to call to create an instancevoidaddIndexOn(java.lang.String name, java.lang.String[] indexFields, boolean verbose)voidaddInstantiationHelper(InstantiationHelper instantiationHelper)Adds an helper to tell ODB what class to call to create an instancevoidaddParameterHelper(ParameterHelper parameterHelper)Adds an helper to tell ODB how to create an instance when no default constructor is availablevoidaddUniqueIndexOn(java.lang.String name, java.lang.String[] indexFields, boolean verbose)voiddeleteIndex(java.lang.String indexName, boolean verbose)voiddoNotPersistAttribute(java.lang.String attributeName)booleanexistIndex(java.lang.String indexName)To check if an index existjava.util.List<java.lang.String>getIndexDescriptions()voidpersistAttribute(java.lang.String attributeName)voidrebuildIndex(java.lang.String indexName, boolean verbose)Used to rebuild an indexvoidremoveFullInstantiationHelper()Remove the instantiation helper of this class, if existsvoidremoveInstantiationHelper()Remove the instantiation helper of this class, if existsvoidremoveParameterHelper()Remove the parameter helper for this class, if exists
-
-
-
Constructor Detail
-
DefaultClassRepresentation
public DefaultClassRepresentation(IStorageEngine storageEngine, ClassInfo classInfo)
-
-
Method Detail
-
addUniqueIndexOn
public void addUniqueIndexOn(java.lang.String name, java.lang.String[] indexFields, boolean verbose)- Specified by:
addUniqueIndexOnin interfaceClassRepresentation- Parameters:
name- The name of the indexindexFields- The list of fields of the indexverbose- A boolean value to indicate of ODB must describe what it is doing
-
addIndexOn
public void addIndexOn(java.lang.String name, java.lang.String[] indexFields, boolean verbose)- Specified by:
addIndexOnin interfaceClassRepresentation- Parameters:
name- The name of the indexindexFields- The list of fields of the indexverbose- A boolean value to indicate of ODB must describe what it is doing
-
addInstantiationHelper
public void addInstantiationHelper(InstantiationHelper instantiationHelper)
Description copied from interface:ClassRepresentationAdds an helper to tell ODB what class to call to create an instance- Specified by:
addInstantiationHelperin interfaceClassRepresentation
-
addFullInstantiationHelper
public void addFullInstantiationHelper(FullInstantiationHelper instantiationHelper)
Description copied from interface:ClassRepresentationAdds an helper to tell ODB what class to call to create an instance- Specified by:
addFullInstantiationHelperin interfaceClassRepresentation
-
addParameterHelper
public void addParameterHelper(ParameterHelper parameterHelper)
Description copied from interface:ClassRepresentationAdds an helper to tell ODB how to create an instance when no default constructor is available- Specified by:
addParameterHelperin interfaceClassRepresentation
-
removeInstantiationHelper
public void removeInstantiationHelper()
Description copied from interface:ClassRepresentationRemove the instantiation helper of this class, if exists- Specified by:
removeInstantiationHelperin interfaceClassRepresentation
-
removeFullInstantiationHelper
public void removeFullInstantiationHelper()
Description copied from interface:ClassRepresentationRemove the instantiation helper of this class, if exists- Specified by:
removeFullInstantiationHelperin interfaceClassRepresentation
-
removeParameterHelper
public void removeParameterHelper()
Description copied from interface:ClassRepresentationRemove the parameter helper for this class, if exists- Specified by:
removeParameterHelperin interfaceClassRepresentation
-
existIndex
public boolean existIndex(java.lang.String indexName)
Description copied from interface:ClassRepresentationTo check if an index exist- Specified by:
existIndexin interfaceClassRepresentation- Returns:
-
rebuildIndex
public void rebuildIndex(java.lang.String indexName, boolean verbose)Used to rebuild an index- Specified by:
rebuildIndexin interfaceClassRepresentation
-
deleteIndex
public void deleteIndex(java.lang.String indexName, boolean verbose)- Specified by:
deleteIndexin interfaceClassRepresentation
-
getIndexDescriptions
public java.util.List<java.lang.String> getIndexDescriptions()
- Specified by:
getIndexDescriptionsin interfaceClassRepresentation
-
doNotPersistAttribute
public void doNotPersistAttribute(java.lang.String attributeName)
- Specified by:
doNotPersistAttributein interfaceClassRepresentation
-
persistAttribute
public void persistAttribute(java.lang.String attributeName)
- Specified by:
persistAttributein interfaceClassRepresentation
-
-
DataMelt 3.0 © DataMelt by jWork.ORG