
| Modifier and Type | Field and Description |
|---|---|
int |
version |
| Constructor and Description |
|---|
OImmutableSchema(OSchemaShared schemaShared,
ODatabaseDocumentInternal database) |
public OImmutableSchema(OSchemaShared schemaShared, ODatabaseDocumentInternal database)
public OImmutableSchema makeSnapshot()
makeSnapshot in interface OSchemapublic int countClasses()
countClasses in interface OSchemapublic int countViews()
countViews in interface OSchemapublic OClass createClass(String iClassName)
createClass in interface OSchemapublic OClass createClass(String iClassName, OClass iSuperClass)
createClass in interface OSchemapublic OClass createClass(String iClassName, OClass... superClasses)
createClass in interface OSchemapublic OClass createClass(String iClassName, OClass iSuperClass, int[] iClusterIds)
createClass in interface OSchemapublic OClass createClass(String className, int clusters, OClass... superClasses)
createClass in interface OSchemapublic OClass createClass(String className, int[] clusterIds, OClass... superClasses)
createClass in interface OSchemapublic OClass createAbstractClass(String iClassName)
createAbstractClass in interface OSchemapublic OClass createAbstractClass(String iClassName, OClass iSuperClass)
createAbstractClass in interface OSchemapublic OClass createAbstractClass(String iClassName, OClass... superClasses)
createAbstractClass in interface OSchemapublic boolean existsClass(String iClassName)
existsClass in interface OSchemapublic OClass getClass(String iClassName)
OSchemaIf 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.
public OClass getOrCreateClass(String iClassName)
getOrCreateClass in interface OSchemapublic OClass getOrCreateClass(String iClassName, OClass iSuperClass)
getOrCreateClass in interface OSchemapublic OClass getOrCreateClass(String iClassName, OClass... superClasses)
getOrCreateClass in interface OSchemapublic Collection<OClass> getClasses()
getClasses in interface OSchemapublic Collection<OView> getViews()
public int getVersion()
getVersion in interface OSchemapublic ORID getIdentity()
getIdentity in interface OSchemapublic Set<OClass> getClassesRelyOnCluster(String clusterName)
OSchemagetClassesRelyOnCluster in interface OSchemaclusterName - Cluster namepublic OClass getClassByClusterId(int clusterId)
getClassByClusterId in interface OSchemapublic OView getViewByClusterId(int clusterId)
getViewByClusterId in interface OSchemapublic OGlobalProperty getGlobalPropertyById(int id)
getGlobalPropertyById in interface OSchemapublic List<OGlobalProperty> getGlobalProperties()
getGlobalProperties in interface OSchemapublic OGlobalProperty createGlobalProperty(String name, OType type, Integer id)
createGlobalProperty in interface OSchemapublic OClusterSelectionFactory getClusterSelectionFactory()
getClusterSelectionFactory in interface OSchemapublic OView createView(String viewName, String statement)
createView in interface OSchemapublic OView createView(ODatabaseDocumentInternal database, String viewName, String statement, Map<String,Object> metadata)
createView in interface OSchemapublic OView createView(OViewConfig config)
createView in interface OSchemapublic OView createView(OViewConfig config, ViewCreationListener listener)
createView in interface OSchemapublic boolean existsView(String name)
existsView in interface OSchemaCopyright © 2009–2025 OrientDB. All rights reserved.