Class OSessionSchema
java.lang.Object
com.orientechnologies.orient.core.db.record.OProxedResource<OSchemaShared>
com.orientechnologies.orient.core.metadata.schema.OSessionSchema
- All Implemented Interfaces:
OSchema
Proxy class to use the shared OSchemaShared instance. Before to delegate each operations it sets
the current database in the thread local.
- Author:
- Luca
-
Field Summary
Fields inherited from class com.orientechnologies.orient.core.db.record.OProxedResource
database, delegate -
Constructor Summary
ConstructorsConstructorDescriptionOSessionSchema(OSchemaShared iDelegate, ODatabaseDocumentInternal iDatabase) -
Method Summary
Modifier and TypeMethodDescriptionintaddBlobCluster(int clusterId) intintcreateAbstractClass(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 className, 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 iClusterName) 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()voidremoveBlobCluster(String clusterName) toString()
-
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
-
getOrCreateClass
- Specified by:
getOrCreateClassin interfaceOSchema
-
getOrCreateClass
- Specified by:
getOrCreateClassin interfaceOSchema
-
getOrCreateClass
- Specified by:
getOrCreateClassin interfaceOSchema
-
createClass
- Specified by:
createClassin interfaceOSchema
-
createClass
- Specified by:
createClassin interfaceOSchema
-
createClass
- Specified by:
createClassin interfaceOSchema
-
createClass
- Specified by:
createClassin interfaceOSchema
-
createAbstractClass
- Specified by:
createAbstractClassin interfaceOSchema
-
createAbstractClass
- Specified by:
createAbstractClassin interfaceOSchema
-
createAbstractClass
- Specified by:
createAbstractClassin interfaceOSchema
-
dropClass
-
existsClass
- Specified by:
existsClassin interfaceOSchema
-
existsView
- Specified by:
existsViewin interfaceOSchema
-
dropView
-
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.
-
getClasses
- Specified by:
getClassesin interfaceOSchema
-
getViews
-
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
-
reload
-
getVersion
public int getVersion()- Specified by:
getVersionin interfaceOSchema
-
getIdentity
- Specified by:
getIdentityin interfaceOSchema
-
toString
-
getClassesRelyOnCluster
Description copied from interface:OSchemaReturns all the classes that rely on a cluster- Specified by:
getClassesRelyOnClusterin interfaceOSchema- Parameters:
iClusterName- Cluster name
-
createClass
- Specified by:
createClassin interfaceOSchema
-
createClassIfNotExists
- Specified by:
createClassIfNotExistsin interfaceOSchema
-
createClassIfNotExists
- Specified by:
createClassIfNotExistsin interfaceOSchema
-
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
-
addBlobCluster
public int addBlobCluster(int clusterId) -
removeBlobCluster
-