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 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 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 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[] 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 boolean existsView(String name)
existsView
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 Collection<OClass> getClasses()
getClasses
in interface OSchema
public Collection<OView> getViews()
@Deprecated public void load()
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 int getVersion()
getVersion
in interface OSchema
public ORID getIdentity()
getIdentity
in interface OSchema
@Deprecated public void close()
public Set<OClass> getClassesRelyOnCluster(String iClusterName)
OSchema
getClassesRelyOnCluster
in interface OSchema
iClusterName
- Cluster namepublic OClass createClass(String className, int clusters, OClass... superClasses)
createClass
in interface OSchema
public 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 int addBlobCluster(int clusterId)
public void removeBlobCluster(String clusterName)
Copyright © 2009–2020 OrientDB. All rights reserved.