org.neodatis.odb
Interface ClassRepresentation
-
- All Superinterfaces:
- java.io.Serializable
- All Known Implementing Classes:
- DefaultClassRepresentation
public interface ClassRepresentation extends java.io.SerializableA class abstraction to give access to class level configuration like adding an index, checking if index exists, rebuilding an index,...
-
-
Method Summary
All Methods Instance Methods Abstract 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)voidremoveFullInstantiationHelper()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
-
-
-
Method Detail
-
addUniqueIndexOn
void addUniqueIndexOn(java.lang.String name, java.lang.String[] indexFields, boolean verbose)- 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- Throws:
java.io.IOExceptionjava.lang.Exception
-
addIndexOn
void addIndexOn(java.lang.String name, java.lang.String[] indexFields, boolean verbose)- 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- -
- Throws:
java.io.IOExceptionjava.lang.Exception
-
addParameterHelper
void addParameterHelper(ParameterHelper parameterHelper)
Adds an helper to tell ODB how to create an instance when no default constructor is available
-
removeParameterHelper
void removeParameterHelper()
Remove the parameter helper for this class, if exists
-
addInstantiationHelper
void addInstantiationHelper(InstantiationHelper instantiationHelper)
Adds an helper to tell ODB what class to call to create an instance
-
removeInstantiationHelper
void removeInstantiationHelper()
Remove the instantiation helper of this class, if exists
-
addFullInstantiationHelper
void addFullInstantiationHelper(FullInstantiationHelper instantiationHelper)
Adds an helper to tell ODB what class to call to create an instance
-
removeFullInstantiationHelper
void removeFullInstantiationHelper()
Remove the instantiation helper of this class, if exists
-
existIndex
boolean existIndex(java.lang.String indexName)
To check if an index exist- Parameters:
indexName-- Returns:
-
rebuildIndex
void rebuildIndex(java.lang.String indexName, boolean verbose)- Parameters:
className-indexName-verbose-
-
deleteIndex
void deleteIndex(java.lang.String indexName, boolean verbose)- Parameters:
className-indexName-verbose-
-
getIndexDescriptions
java.util.List<java.lang.String> getIndexDescriptions()
-
persistAttribute
void persistAttribute(java.lang.String attributeName)
-
doNotPersistAttribute
void doNotPersistAttribute(java.lang.String attributeName)
-
-
DataMelt 3.0 © DataMelt by jWork.ORG