Exemple #1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @SuppressWarnings("unchecked") private java.util.List<java.util.Map<String,Object>> getMembers(org.neo4j.kernel.impl.factory.GraphDatabaseFacade db) throws org.neo4j.internal.kernel.api.exceptions.TransactionFailureException, org.neo4j.internal.kernel.api.exceptions.ProcedureException
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
        private IList <IDictionary <string, object> > GetMembers(GraphDatabaseFacade db)
        {
            Kernel kernel = Db.DependencyResolver.resolveDependency(typeof(Kernel));

            using (Transaction tx = kernel.BeginTransaction(Transaction_Type.@implicit, AnonymousContext.read()))
            {
                // when
                IList <object[]> currentMembers = new IList <object[]> {
                    tx.Procedures().procedureCallRead(procedureName(GET_SERVERS_V1.fullyQualifiedProcedureName()), new object[0], ProcedureCallContext.EMPTY)
                };

                return((IList <IDictionary <string, object> >)currentMembers[0][1]);
            }
        }
Exemple #2
0
 private void InitializeInstanceFields()
 {
     _procedureSignature = ProcedureSignature.procedureSignature(GET_SERVERS_V1.fullyQualifiedProcedureName()).@out(TTL.parameterName(), Neo4jTypes.NTInteger).@out(SERVERS.parameterName(), Neo4jTypes.NTList(Neo4jTypes.NTMap)).description(_description).build();
 }