
public class OSchemaProxy extends OProxedResource<OSchemaShared> implements OSchema
database, delegate| Constructor and Description |
|---|
OSchemaProxy(OSchemaShared iDelegate,
ODatabaseDocumentInternal iDatabase) |
public OSchemaProxy(OSchemaShared iDelegate, ODatabaseDocumentInternal iDatabase)
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 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 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[] 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 boolean existsView(String name)
existsView 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 Collection<OClass> getClasses()
getClasses in interface OSchemapublic Collection<OView> getViews()
@Deprecated public void load()
public 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 int getVersion()
getVersion in interface OSchemapublic ORID getIdentity()
getIdentity in interface OSchema@Deprecated public void close()
public Set<OClass> getClassesRelyOnCluster(String iClusterName)
OSchemagetClassesRelyOnCluster in interface OSchemaiClusterName - Cluster namepublic OClass createClass(String className, int clusters, OClass... superClasses)
createClass in interface OSchemapublic 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 int addBlobCluster(int clusterId)
public void removeBlobCluster(String clusterName)
Copyright © 2009–2025 OrientDB. All rights reserved.