Example #1
0
        public override IQueryResult Execute(IGraphDB myGraphDB,
                                             IGraphQL myGraphQL,
                                             GQLPluginManager myPluginManager,
                                             String myQuery,
                                             SecurityToken mySecurityToken,
                                             Int64 myTransactionToken)
        {
            _query = myQuery;

            IQueryResult result;

            try
            {
                result = myGraphDB.CreateEdgeTypes <IQueryResult>(
                    mySecurityToken,
                    myTransactionToken,
                    new RequestCreateEdgeTypes(_TypePredefinitions),
                    CreateQueryResult);
            }
            catch (ASonesException e)
            {
                result = new QueryResult(_query,
                                         SonesGQLConstants.GQL,
                                         0,
                                         ResultType.Failed,
                                         null,
                                         e);
            }

            return(result);
        }
Example #2
0
 public TResult CreateEdgeTypes <TResult>(sones.Library.Commons.Security.SecurityToken mySecurityToken, Int64 myTransactionToken, RequestCreateEdgeTypes myRequestCreateEdgeTypes, Converter.CreateEdgeTypesResultConverter <TResult> myOutputconverter)
 {
     return(_iGraphDB.CreateEdgeTypes <TResult>(
                mySecurityToken,
                myTransactionToken,
                myRequestCreateEdgeTypes,
                myOutputconverter));
 }
Example #3
0
        public override IQueryResult Execute(IGraphDB myGraphDB,
                                            IGraphQL myGraphQL,
                                            GQLPluginManager myPluginManager,
                                            String myQuery,
                                            SecurityToken mySecurityToken,
                                            Int64 myTransactionToken)
        {
            _query = myQuery;

            IQueryResult result;

            try
            {
                result = myGraphDB.CreateEdgeTypes<IQueryResult>(
                        mySecurityToken,
                        myTransactionToken,
                        new RequestCreateEdgeTypes(_TypePredefinitions),
                        CreateQueryResult);
            }
            catch (ASonesException e)
            {
                result = new QueryResult(_query,
                                            SonesGQLConstants.GQL,
                                            0,
                                            ResultType.Failed,
                                            null,
                                            e);
            }

            return result;
        }