public class OSchemaEmbedded extends OSchemaShared
OSchemaShared.ClusterIdsAreEmptyException
classes, clustersToClasses, clustersToViews, CURRENT_VERSION_NUMBER, document, internalClasses, snapshot, VERSION_NUMBER_V4, VERSION_NUMBER_V5, views
Constructor and Description |
---|
OSchemaEmbedded(OSharedContext sharedContext) |
acquireSchemaReadLock, acquireSchemaWriteLock, addBlobCluster, addClusterClassMap, addClusterViewMap, checkClassNameIfValid, checkFieldNameIfValid, close, countClasses, countViews, create, createAbstractClass, createAbstractClass, createAbstractClass, createClass, createClass, createClass, createClass, createClusterIfNeeded, createGlobalProperty, executeThroughDistributedStorage, existsClass, existsView, findOrCreateGlobalProperty, forceSnapshot, fromStream, getBlobClusters, getClass, getClass, getClassByClusterId, getClasses, getClassesRelyOnCluster, getClusterId, getClusterSelectionFactory, getDocument, getGlobalProperties, getGlobalPropertyById, getIdentity, getOrCreateClass, getOrCreateClass, getVersion, getView, getViewByClusterId, getViews, getViewsRelyOnCluster, load, makeSnapshot, onPostIndexManagement, releaseSchemaReadLock, releaseSchemaWriteLock, releaseSchemaWriteLock, reload, removeBlobCluster, sendCommand, setDirty, toNetworkStream, toStream
public OSchemaEmbedded(OSharedContext sharedContext)
public OClass createClass(ODatabaseDocumentInternal database, String className, int[] clusterIds, OClass... superClasses)
createClass
in class OSchemaShared
public OClass createClass(ODatabaseDocumentInternal database, String className, int clusters, OClass... superClasses)
createClass
in class OSchemaShared
protected void doRealCreateClass(ODatabaseDocumentInternal database, String className, List<OClass> superClassesList, int[] clusterIds) throws OSchemaShared.ClusterIdsAreEmptyException
protected OClass createClassInternal(ODatabaseDocumentInternal database, String className, int[] clusterIdsToAdd, List<OClass> superClasses) throws OSchemaShared.ClusterIdsAreEmptyException
public OView createView(ODatabaseDocumentInternal database, String viewName, String statement, Map<String,Object> metadata)
createView
in class OSchemaShared
public OView createView(ODatabaseDocumentInternal database, OViewConfig cfg)
createView
in class OSchemaShared
public OView createView(ODatabaseDocumentInternal database, OViewConfig cfg, ViewCreationListener listener)
createView
in class OSchemaShared
protected void doRealCreateView(ODatabaseDocumentInternal database, OViewConfig config, int[] clusterIds) throws OSchemaShared.ClusterIdsAreEmptyException
protected OClass createViewInternal(ODatabaseDocumentInternal database, OViewConfig cfg, int[] clusterIdsToAdd) throws OSchemaShared.ClusterIdsAreEmptyException
protected OClassImpl createClassInstance(String className, int[] clusterIds)
protected OViewImpl createViewInstance(OViewConfig cfg, int[] clusterIds)
public OClass getOrCreateClass(ODatabaseDocumentInternal database, String iClassName, OClass... superClasses)
getOrCreateClass
in class OSchemaShared
protected OClass doCreateClass(ODatabaseDocumentInternal database, String className, int[] clusterIds, int retry, OClass... superClasses) throws OSchemaShared.ClusterIdsAreEmptyException
protected int[] createClusters(ODatabaseDocumentInternal database, String className, int minimumClusters)
protected void checkClustersAreAbsent(int[] iClusterIds)
public void dropClass(ODatabaseDocumentInternal database, String className)
dropClass
in class OSchemaShared
protected void doDropClass(ODatabaseDocumentInternal database, String className)
protected void dropClassInternal(ODatabaseDocumentInternal database, String className)
public void dropView(ODatabaseDocumentInternal database, String name)
dropView
in class OSchemaShared
protected void doDropView(ODatabaseDocumentInternal database, String name)
protected void dropViewInternal(ODatabaseDocumentInternal database, String view)
protected OClassImpl createClassInstance(ODocument c)
createClassInstance
in class OSchemaShared
protected OViewImpl createViewInstance(ODocument c)
createViewInstance
in class OSchemaShared
public void checkEmbedded()
checkEmbedded
in class OSchemaShared
protected boolean isRunLocal(ODatabaseDocumentInternal database)
Copyright © 2009–2020 OrientDB. All rights reserved.