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