Class OImmutableSchema
java.lang.Object
com.orientechnologies.orient.core.metadata.schema.OImmutableSchema
- All Implemented Interfaces:
OSchema
- Since:
- 10/21/14
- Author:
- Andrey Lomakin (a.lomakin-at-orientdb.com)
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionOImmutableSchema(OSchemaShared schemaShared, ODatabaseDocumentInternal database) -
Method Summary
Modifier and TypeMethodDescriptionintintcreateAbstractClass(String iClassName) createAbstractClass(String iClassName, OClass iSuperClass) createAbstractClass(String iClassName, OClass... superClasses) createClass(String iClassName) createClass(String className, int[] clusterIds, OClass... superClasses) createClass(String className, int clusters, OClass... superClasses) createClass(String iClassName, OClass iSuperClass) createClass(String iClassName, OClass... superClasses) createClass(String iClassName, OClass iSuperClass, int[] iClusterIds) booleancreateClassIfNotExists(String className) booleancreateClassIfNotExists(String iClassName, OClass... superClasses) createGlobalProperty(String name, OType type, Integer id) createView(ODatabaseDocumentInternal database, String viewName, String statement, Map<String, Object> metadata) createView(OViewConfig config) createView(OViewConfig config, ViewCreationListener listener) createView(String viewName, String statement) voidvoidbooleanexistsClass(String iClassName) booleanexistsView(String name) Returns the OClass instance by class name.getClassByClusterId(int clusterId) getClassesRelyOnCluster(String clusterName) Returns all the classes that rely on a clustergetGlobalPropertyById(int id) getOrCreateClass(String iClassName) getOrCreateClass(String iClassName, OClass iSuperClass) getOrCreateClass(String iClassName, OClass... superClasses) intgetViewByClusterId(int clusterId) getViews()reload()
-
Field Details
-
version
public final int version
-
-
Constructor Details
-
Method Details
-
makeSnapshot
- Specified by:
makeSnapshotin interfaceOSchema
-
countClasses
public int countClasses()- Specified by:
countClassesin interfaceOSchema
-
countViews
public int countViews()- Specified by:
countViewsin interfaceOSchema
-
createClass
- Specified by:
createClassin interfaceOSchema
-
createClass
- Specified by:
createClassin interfaceOSchema
-
createClass
- Specified by:
createClassin interfaceOSchema
-
createClass
- Specified by:
createClassin interfaceOSchema
-
createClass
- Specified by:
createClassin interfaceOSchema
-
createClass
- Specified by:
createClassin interfaceOSchema
-
createClassIfNotExists
- Specified by:
createClassIfNotExistsin interfaceOSchema
-
createClassIfNotExists
- Specified by:
createClassIfNotExistsin interfaceOSchema
-
createAbstractClass
- Specified by:
createAbstractClassin interfaceOSchema
-
createAbstractClass
- Specified by:
createAbstractClassin interfaceOSchema
-
createAbstractClass
- Specified by:
createAbstractClassin interfaceOSchema
-
dropClass
-
reload
-
existsClass
- Specified by:
existsClassin interfaceOSchema
-
getClass
-
getClass
Description copied from interface:OSchemaReturns the OClass instance by class name.If the class is not configured and the database has an entity manager with the requested class as registered, then creates a schema class for it at the fly.
If the database nor the entity manager have not registered class with specified name, returns null.
-
getOrCreateClass
- Specified by:
getOrCreateClassin interfaceOSchema
-
getOrCreateClass
- Specified by:
getOrCreateClassin interfaceOSchema
-
getOrCreateClass
- Specified by:
getOrCreateClassin interfaceOSchema
-
getClasses
- Specified by:
getClassesin interfaceOSchema
-
getViews
-
getIdentity
- Specified by:
getIdentityin interfaceOSchema
-
getClassesRelyOnCluster
Description copied from interface:OSchemaReturns all the classes that rely on a cluster- Specified by:
getClassesRelyOnClusterin interfaceOSchema- Parameters:
clusterName- Cluster name
-
getClassByClusterId
- Specified by:
getClassByClusterIdin interfaceOSchema
-
getViewByClusterId
- Specified by:
getViewByClusterIdin interfaceOSchema
-
getGlobalPropertyById
- Specified by:
getGlobalPropertyByIdin interfaceOSchema
-
getGlobalProperties
- Specified by:
getGlobalPropertiesin interfaceOSchema
-
createGlobalProperty
- Specified by:
createGlobalPropertyin interfaceOSchema
-
getClusterSelectionFactory
- Specified by:
getClusterSelectionFactoryin interfaceOSchema
-
getBlobClusters
-
getView
-
createView
- Specified by:
createViewin interfaceOSchema
-
createView
public OView createView(ODatabaseDocumentInternal database, String viewName, String statement, Map<String, Object> metadata) - Specified by:
createViewin interfaceOSchema
-
createView
- Specified by:
createViewin interfaceOSchema
-
createView
- Specified by:
createViewin interfaceOSchema
-
existsView
- Specified by:
existsViewin interfaceOSchema
-
dropView
-
getVersion
public int getVersion()- Specified by:
getVersionin interfaceOSchema
-