예제 #1
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: public org.neo4j.storageengine.api.schema.SchemaRule loadSingleSchemaRule(long ruleId) throws org.neo4j.internal.kernel.api.exceptions.schema.MalformedSchemaRuleException
        public override SchemaRule LoadSingleSchemaRule(long ruleId)
        {
            ICollection <DynamicRecord> records;

            try
            {
                records = _schemaStore.getRecords(ruleId, RecordLoad.NORMAL);
            }
            catch (Exception e)
            {
                throw new MalformedSchemaRuleException(e.Message, e);
            }
            return(SchemaStore.ReadSchemaRule(ruleId, records, NewRecordBuffer()));
        }
예제 #2
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: public java.util.List<R> getRecords(long firstId, org.neo4j.kernel.impl.store.record.RecordLoad mode) throws InvalidRecordException
        public override IList <R> GetRecords(long firstId, RecordLoad mode)
        {
            return(Actual.getRecords(firstId, mode));
        }