Пример #1
0
        public override void select(string statement, object parameter, RowBounds rowBounds, ResultHandler handler)
        {
            long start = DateTimeHelper.CurrentUnixTimeMillis();

            base.select(statement, parameter, rowBounds, handler);

            long duration = DateTimeHelper.CurrentUnixTimeMillis() - start;

            logStatement(SqlStatementType.SELECT, parameter, statement, duration);
        }
Пример #2
0
        public override IList <E> selectList <E>(string statement, object parameter, RowBounds rowBounds)
        {
            long start = DateTimeHelper.CurrentUnixTimeMillis();

            IList <E> result = base.selectList(statement, parameter, rowBounds);

            long duration = DateTimeHelper.CurrentUnixTimeMillis() - start;

            logStatement(SqlStatementType.SELECT_LIST, parameter, statement, duration);

            return(result);
        }
Пример #3
0
 public override Cursor <T> selectCursor <T>(string s, object o, RowBounds rowBounds)
 {
     return(wrappedSession.selectCursor(s, o, rowBounds));
 }
Пример #4
0
 public virtual IDictionary <K, V> selectMap <K, V>(string statement, object parameter, string mapKey, RowBounds rowBounds)
 {
     return(wrappedSession.selectMap(statement, parameter, mapKey, rowBounds));
 }
Пример #5
0
 public virtual IList <E> selectList <E>(string statement, object parameter, RowBounds rowBounds)
 {
     return(wrappedSession.selectList(statement, parameter, rowBounds));
 }
Пример #6
0
 public virtual void select(string statement, object parameter, RowBounds rowBounds, ResultHandler handler)
 {
     wrappedSession.select(statement, parameter, rowBounds, handler);
 }
Пример #7
0
        public override IDictionary <K, V> selectMap <K, V>(string statement, object parameter, string mapKey, RowBounds rowBounds)
        {
            long start = DateTimeHelper.CurrentUnixTimeMillis();

            IDictionary <K, V> result = base.selectMap(statement, parameter, mapKey, rowBounds);

            long duration = DateTimeHelper.CurrentUnixTimeMillis() - start;

            logStatement(SqlStatementType.SELECT_MAP, parameter, statement, duration);

            return(result);
        }