public interface OSchema
int countClasses()
int countViews()
void dropClass(String iClassName)
OSchema reload()
boolean existsClass(String iClassName)
OClass getClass(String iClassName)
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.
iClassName
- Name of the class to retrieveCollection<OClass> getClasses()
Collection<OView> getViews()
OView createView(ODatabaseDocumentInternal database, String viewName, String statement, Map<String,Object> metadata)
OView createView(OViewConfig config)
OView createView(OViewConfig config, ViewCreationListener listener)
boolean existsView(String name)
void dropView(String name)
@Deprecated void create()
@Deprecated int getVersion()
ORID getIdentity()
Set<OClass> getClassesRelyOnCluster(String iClusterName)
iClusterName
- Cluster nameOClass getClassByClusterId(int clusterId)
OView getViewByClusterId(int clusterId)
OGlobalProperty getGlobalPropertyById(int id)
List<OGlobalProperty> getGlobalProperties()
OGlobalProperty createGlobalProperty(String name, OType type, Integer id)
OClusterSelectionFactory getClusterSelectionFactory()
OImmutableSchema makeSnapshot()
Copyright © 2009–2020 OrientDB. All rights reserved.