Example #1
0
 /// <summary>
 /// Creates a new instance of VertexType.
 /// </summary>
 /// <param name="myVertexTypeVertex">An IVertex that represents the vertex type.</param>
 internal VertexType(IVertex myVertexTypeVertex, BaseGraphStorageManager myBaseStorageManager)
     : base(myVertexTypeVertex, myBaseStorageManager)
 {
     _hasOwnUniques = HasOutgoingEdge(AttributeDefinitions.VertexTypeDotUniquenessDefinitions);
     _hasOwnIndices = HasIncomingVertices(BaseTypes.Index, AttributeDefinitions.IndexDotDefiningVertexType);
     _hasChilds     = HasIncomingVertices(BaseTypes.VertexType, AttributeDefinitions.VertexTypeDotParent);
 }
Example #2
0
 /// <summary>
 /// Creates a new meta manager
 /// </summary>
 /// <param name="myVertexStore">The vertex store on which all other manager rely on</param>
 /// <param name="myPlugins">The plugin definitions</param>
 /// <param name="myPluginManager">Used to load pluginable manager</param>
 /// <param name="myApplicationSettings">The current application settings</param>
 private MetaManager(IVertexStore myVertexStore,
                     IDManager myIDManager,
                     GraphDBPluginManager myPluginManager,
                     GraphDBPlugins myPlugins,
                     GraphApplicationSettings myApplicationSettings)
 {
     _vertexStore             = myVertexStore;
     _vertexTypeManager       = new VertexTypeManager(myIDManager);
     _vertexManager           = new VertexManager(myIDManager);
     _edgeTypeManager         = new EdgeTypeManager(myIDManager);
     _queryPlanManager        = new QueryPlanManager();
     _indexManager            = new IndexManager(myIDManager, myPluginManager, myApplicationSettings, myPlugins.IndexPlugins);
     _baseTypeManager         = new BaseTypeManager();
     _baseGraphStorageManager = new BaseGraphStorageManager();
     _pluginManager           = myPluginManager;
 }
Example #3
0
        protected BaseType(IVertex myBaseTypeVertex, BaseGraphStorageManager myStorageManager)
        {
            #region checks

            myBaseTypeVertex.CheckNull("myVertex");
            myStorageManager.CheckNull("myStorageManager");

            #endregion

            #region assignment

            Vertex = myBaseTypeVertex;
            _id = Vertex.VertexID;
            _name = GetProperty<String>(AttributeDefinitions.BaseTypeDotName);
            _isSealed = GetProperty<bool>(AttributeDefinitions.BaseTypeDotIsSealed);
            _isAbstract = GetProperty<bool>(AttributeDefinitions.BaseTypeDotIsAbstract);
            _isUserDefined = GetProperty<bool>(AttributeDefinitions.BaseTypeDotIsUserDefined);
            _baseStorageManager = myStorageManager;

            #endregion
        }
Example #4
0
 public void Initialize(IMetaManager myMetaManager)
 {
     _vertexTypeManager  = myMetaManager.VertexTypeManager;
     _vertexStore        = myMetaManager.VertexStore;
     _baseStorageManager = myMetaManager.BaseGraphStorageManager;
 }
Example #5
0
 public EdgeType(IVertex myVertex, BaseGraphStorageManager myBaseStorageManager)
     : base(myVertex, myBaseStorageManager)
 {
     _hasChilds = HasIncomingVertices(BaseTypes.EdgeType, AttributeDefinitions.EdgeTypeDotParent);
 }
Example #6
0
 /// <summary>
 /// Creates a new instance of DBCreationManager.
 /// </summary>
 /// <param name="mySecurityToken">The root security token... can be left out</param>
 /// <param name="myTransactionToken">The root transaction token... can be left out</param>
 public DBCreationManager(SecurityToken mySecurityToken, Int64 myTransactionToken, BaseGraphStorageManager myStorageManager)
 {
     _security       = mySecurityToken;
     _transaction    = myTransactionToken;
     _storageManager = myStorageManager;
 }