@@ -793,7 +793,7 @@ public virtual void QueryWithRowCallbackDelegate(CommandType cmdType, string sql
793
793
794
794
}
795
795
796
- public void QueryWithRowCallbackDelegate ( CommandType cmdType , string sql , RowCallbackDelegate rowCallbackDelegate , IDbParameters parameters )
796
+ public virtual void QueryWithRowCallbackDelegate ( CommandType cmdType , string sql , RowCallbackDelegate rowCallbackDelegate , IDbParameters parameters )
797
797
{
798
798
classicAdoTemplate . QueryWithRowCallbackDelegate ( cmdType , sql , rowCallbackDelegate , parameters ) ;
799
799
@@ -803,28 +803,28 @@ public void QueryWithRowCallbackDelegate(CommandType cmdType, string sql, RowCal
803
803
804
804
#region Queries with RowMapper<T>
805
805
806
- public IList < T > QueryWithRowMapper < T > ( CommandType cmdType , string cmdText , IRowMapper < T > rowMapper )
806
+ public virtual IList < T > QueryWithRowMapper < T > ( CommandType cmdType , string cmdText , IRowMapper < T > rowMapper )
807
807
{
808
808
return QueryWithResultSetExtractor ( cmdType , cmdText , new RowMapperResultSetExtractor < T > ( rowMapper ) ) ;
809
809
810
810
}
811
811
812
812
813
- public IList < T > QueryWithRowMapper < T > ( CommandType cmdType , String cmdText , IRowMapper < T > rowMapper ,
813
+ public virtual IList < T > QueryWithRowMapper < T > ( CommandType cmdType , String cmdText , IRowMapper < T > rowMapper ,
814
814
ICommandSetter commandSetter )
815
815
{
816
816
return QueryWithResultSetExtractor ( cmdType , cmdText , new RowMapperResultSetExtractor < T > ( rowMapper ) , commandSetter ) ;
817
817
818
818
}
819
819
820
- public IList < T > QueryWithRowMapper < T > ( CommandType cmdType , string cmdText , IRowMapper < T > rowMapper ,
820
+ public virtual IList < T > QueryWithRowMapper < T > ( CommandType cmdType , string cmdText , IRowMapper < T > rowMapper ,
821
821
string parameterName , Enum dbType , int size , object parameterValue )
822
822
{
823
823
return QueryWithResultSetExtractor ( cmdType , cmdText , new RowMapperResultSetExtractor < T > ( rowMapper ) , parameterName , dbType , size , parameterValue ) ;
824
824
825
825
}
826
826
827
- public IList < T > QueryWithRowMapper < T > ( CommandType cmdType , string cmdText , IRowMapper < T > rowMapper , IDbParameters parameters )
827
+ public virtual IList < T > QueryWithRowMapper < T > ( CommandType cmdType , string cmdText , IRowMapper < T > rowMapper , IDbParameters parameters )
828
828
{
829
829
return QueryWithResultSetExtractor ( cmdType , cmdText , new RowMapperResultSetExtractor < T > ( rowMapper ) , parameters ) ;
830
830
@@ -836,27 +836,27 @@ public IList<T> QueryWithRowMapper<T>(CommandType cmdType, string cmdText, IRowM
836
836
837
837
#region Queries with RowMapperDelegate<T>
838
838
839
- public IList < T > QueryWithRowMapperDelegate < T > ( CommandType cmdType , string cmdText , RowMapperDelegate < T > rowMapperDelegate )
839
+ public virtual IList < T > QueryWithRowMapperDelegate < T > ( CommandType cmdType , string cmdText , RowMapperDelegate < T > rowMapperDelegate )
840
840
{
841
841
return QueryWithResultSetExtractor ( cmdType , cmdText , new RowMapperResultSetExtractor < T > ( rowMapperDelegate ) ) ;
842
842
843
843
}
844
844
845
- public IList < T > QueryWithRowMapperDelegate < T > ( CommandType cmdType , string cmdText , RowMapperDelegate < T > rowMapperDelegate ,
845
+ public virtual IList < T > QueryWithRowMapperDelegate < T > ( CommandType cmdType , string cmdText , RowMapperDelegate < T > rowMapperDelegate ,
846
846
ICommandSetter commandSetter )
847
847
{
848
848
return QueryWithResultSetExtractor ( cmdType , cmdText , new RowMapperResultSetExtractor < T > ( rowMapperDelegate ) ,
849
849
commandSetter ) ;
850
850
}
851
851
852
- public IList < T > QueryWithRowMapperDelegate < T > ( CommandType cmdType , string cmdText , RowMapperDelegate < T > rowMapperDelegate ,
852
+ public virtual IList < T > QueryWithRowMapperDelegate < T > ( CommandType cmdType , string cmdText , RowMapperDelegate < T > rowMapperDelegate ,
853
853
string parameterName , Enum dbType , int size , object parameterValue )
854
854
{
855
855
return QueryWithResultSetExtractor ( cmdType , cmdText , new RowMapperResultSetExtractor < T > ( rowMapperDelegate ) ,
856
856
parameterName , dbType , size , parameterValue ) ;
857
857
}
858
858
859
- public IList < T > QueryWithRowMapperDelegate < T > ( CommandType cmdType , string cmdText , RowMapperDelegate < T > rowMapperDelegate ,
859
+ public virtual IList < T > QueryWithRowMapperDelegate < T > ( CommandType cmdType , string cmdText , RowMapperDelegate < T > rowMapperDelegate ,
860
860
IDbParameters parameters )
861
861
{
862
862
return QueryWithResultSetExtractor ( cmdType , cmdText , new RowMapperResultSetExtractor < T > ( rowMapperDelegate ) ,
@@ -866,7 +866,7 @@ public IList<T> QueryWithRowMapperDelegate<T>(CommandType cmdType, string cmdTex
866
866
867
867
#region Queries with ResultSetExtractor<T>
868
868
869
- public T QueryWithResultSetExtractor < T > ( CommandType cmdType ,
869
+ public virtual T QueryWithResultSetExtractor < T > ( CommandType cmdType ,
870
870
string cmdText ,
871
871
IResultSetExtractor < T > resultSetExtractor )
872
872
{
@@ -878,23 +878,23 @@ public T QueryWithResultSetExtractor<T>(CommandType cmdType,
878
878
return Execute < T > ( new QueryCallback < T > ( this , cmdType , cmdText , resultSetExtractor , null ) ) ;
879
879
}
880
880
881
- public T QueryWithResultSetExtractor < T > ( CommandType commandType , string cmdText , IResultSetExtractor < T > resultSetExtractor ,
881
+ public virtual T QueryWithResultSetExtractor < T > ( CommandType commandType , string cmdText , IResultSetExtractor < T > resultSetExtractor ,
882
882
string name , Enum dbType , int size , object parameterValue )
883
883
{
884
884
AssertUtils . ArgumentNotNull ( resultSetExtractor , "resultSetExtractor" , "Result Set Extractor must not be null" ) ;
885
885
return Execute < T > ( new QueryCallback < T > ( this , commandType , cmdText , resultSetExtractor ,
886
886
CreateDbParameters ( name , dbType , size , parameterValue ) ) ) ;
887
887
}
888
888
889
- public T QueryWithResultSetExtractor < T > ( CommandType commandType , string cmdText ,
889
+ public virtual T QueryWithResultSetExtractor < T > ( CommandType commandType , string cmdText ,
890
890
IResultSetExtractor < T > resultSetExtractor ,
891
891
IDbParameters parameters )
892
892
{
893
893
AssertUtils . ArgumentNotNull ( resultSetExtractor , "resultSetExtractor" , "Result Set Extractor must not be null" ) ;
894
894
return Execute < T > ( new QueryCallback < T > ( this , commandType , cmdText , resultSetExtractor , parameters ) ) ;
895
895
}
896
896
897
- public T QueryWithResultSetExtractor < T > ( CommandType cmdType , string cmdText ,
897
+ public virtual T QueryWithResultSetExtractor < T > ( CommandType cmdType , string cmdText ,
898
898
IResultSetExtractor < T > resultSetExtractor ,
899
899
ICommandSetter commandSetter )
900
900
{
@@ -904,7 +904,7 @@ public T QueryWithResultSetExtractor<T>(CommandType cmdType, string cmdText,
904
904
commandSetter ) ) ;
905
905
}
906
906
907
- public T QueryWithResultSetExtractor < T > ( CommandType cmdType , string cmdText ,
907
+ public virtual T QueryWithResultSetExtractor < T > ( CommandType cmdType , string cmdText ,
908
908
IResultSetExtractor < T > resultSetExtractor ,
909
909
CommandSetterDelegate commandSetterDelegate )
910
910
{
@@ -919,7 +919,7 @@ public T QueryWithResultSetExtractor<T>(CommandType cmdType, string cmdText,
919
919
920
920
#region Queries with ResultSetExtractorDelegate<T>
921
921
922
- public T QueryWithResultSetExtractorDelegate < T > ( CommandType cmdType ,
922
+ public virtual T QueryWithResultSetExtractorDelegate < T > ( CommandType cmdType ,
923
923
string cmdText ,
924
924
ResultSetExtractorDelegate < T > resultSetExtractorDelegate )
925
925
{
@@ -933,7 +933,7 @@ public T QueryWithResultSetExtractorDelegate<T>(CommandType cmdType,
933
933
return Execute < T > ( new QueryCallback < T > ( this , cmdType , cmdText , resultSetExtractorDelegate , null ) ) ;
934
934
}
935
935
936
- public T QueryWithResultSetExtractorDelegate < T > ( CommandType commandType , string cmdText , ResultSetExtractorDelegate < T > resultSetExtractorDelegate ,
936
+ public virtual T QueryWithResultSetExtractorDelegate < T > ( CommandType commandType , string cmdText , ResultSetExtractorDelegate < T > resultSetExtractorDelegate ,
937
937
string paramenterName , Enum dbType , int size , object parameterValue )
938
938
{
939
939
AssertUtils . ArgumentNotNull ( cmdText , "cmdText" , "CommandText must not be null" ) ;
@@ -942,15 +942,15 @@ public T QueryWithResultSetExtractorDelegate<T>(CommandType commandType, string
942
942
CreateDbParameters ( paramenterName , dbType , size , parameterValue ) ) ) ;
943
943
}
944
944
945
- public T QueryWithResultSetExtractorDelegate < T > ( CommandType commandType , string cmdText , ResultSetExtractorDelegate < T > resultSetExtractorDelegate ,
945
+ public virtual T QueryWithResultSetExtractorDelegate < T > ( CommandType commandType , string cmdText , ResultSetExtractorDelegate < T > resultSetExtractorDelegate ,
946
946
IDbParameters parameters )
947
947
{
948
948
AssertUtils . ArgumentNotNull ( cmdText , "cmdText" , "CommandText must not be null" ) ;
949
949
AssertUtils . ArgumentNotNull ( resultSetExtractorDelegate , "resultSetExtractorDelegate" , "Result set extractor delegate must not be null" ) ;
950
950
return Execute < T > ( new QueryCallback < T > ( this , commandType , cmdText , resultSetExtractorDelegate , parameters ) ) ;
951
951
}
952
952
953
- public T QueryWithResultSetExtractorDelegate < T > ( CommandType cmdType , string cmdText , ResultSetExtractorDelegate < T > resultSetExtractorDelegate ,
953
+ public virtual T QueryWithResultSetExtractorDelegate < T > ( CommandType cmdType , string cmdText , ResultSetExtractorDelegate < T > resultSetExtractorDelegate ,
954
954
ICommandSetter commandSetter )
955
955
{
956
956
AssertUtils . ArgumentNotNull ( cmdText , "cmdText" , "CommandText must not be null" ) ;
@@ -960,7 +960,7 @@ public T QueryWithResultSetExtractorDelegate<T>(CommandType cmdType, string cmdT
960
960
commandSetter ) ) ;
961
961
}
962
962
963
- public T QueryWithResultSetExtractorDelegate < T > ( CommandType cmdType , string cmdText , ResultSetExtractorDelegate < T > resultSetExtractorDelegate ,
963
+ public virtual T QueryWithResultSetExtractorDelegate < T > ( CommandType cmdType , string cmdText , ResultSetExtractorDelegate < T > resultSetExtractorDelegate ,
964
964
CommandSetterDelegate commandSetterDelegate )
965
965
{
966
966
AssertUtils . ArgumentNotNull ( resultSetExtractorDelegate , "resultSetExtractorDelegate" , "Result set extractor delegate must not be null" ) ;
@@ -973,26 +973,26 @@ public T QueryWithResultSetExtractorDelegate<T>(CommandType cmdType, string cmdT
973
973
974
974
#region Query for Object<T>
975
975
976
- public T QueryForObject < T > ( CommandType cmdType , string cmdText , IRowMapper < T > rowMapper )
976
+ public virtual T QueryForObject < T > ( CommandType cmdType , string cmdText , IRowMapper < T > rowMapper )
977
977
{
978
978
IList < T > results = QueryWithRowMapper ( cmdType , cmdText , rowMapper ) ;
979
979
return DataAccessUtils . RequiredUniqueResultSet ( results ) ;
980
980
}
981
981
982
- public T QueryForObject < T > ( CommandType cmdType , string cmdText , IRowMapper < T > rowMapper , ICommandSetter commandSetter )
982
+ public virtual T QueryForObject < T > ( CommandType cmdType , string cmdText , IRowMapper < T > rowMapper , ICommandSetter commandSetter )
983
983
{
984
984
IList < T > results = QueryWithRowMapper ( cmdType , cmdText , rowMapper , commandSetter ) ;
985
985
return DataAccessUtils . RequiredUniqueResultSet ( results ) ;
986
986
}
987
987
988
- public T QueryForObject < T > ( CommandType cmdType , string cmdText , IRowMapper < T > rowMapper , IDbParameters parameters )
988
+ public virtual T QueryForObject < T > ( CommandType cmdType , string cmdText , IRowMapper < T > rowMapper , IDbParameters parameters )
989
989
{
990
990
IList < T > results = QueryWithRowMapper ( cmdType , cmdText , rowMapper , parameters ) ;
991
991
return DataAccessUtils . RequiredUniqueResultSet ( results ) ;
992
992
}
993
993
994
994
995
- public T QueryForObject < T > ( CommandType cmdType , string cmdText , IRowMapper < T > rowMapper ,
995
+ public virtual T QueryForObject < T > ( CommandType cmdType , string cmdText , IRowMapper < T > rowMapper ,
996
996
string parameterName , Enum dbType , int size , object parameterValue )
997
997
{
998
998
IList < T > results = QueryWithRowMapper ( cmdType , cmdText , rowMapper , parameterName , dbType , size , parameterValue ) ;
@@ -1002,26 +1002,26 @@ public T QueryForObject<T>(CommandType cmdType, string cmdText, IRowMapper<T> ro
1002
1002
1003
1003
#region Query for ObjectDelegate<T>
1004
1004
1005
- public T QueryForObjectDelegate < T > ( CommandType cmdType , string cmdText , RowMapperDelegate < T > rowMapperDelegate )
1005
+ public virtual T QueryForObjectDelegate < T > ( CommandType cmdType , string cmdText , RowMapperDelegate < T > rowMapperDelegate )
1006
1006
{
1007
1007
IList < T > results = QueryWithRowMapperDelegate ( cmdType , cmdText , rowMapperDelegate ) ;
1008
1008
return DataAccessUtils . RequiredUniqueResultSet ( results ) ;
1009
1009
}
1010
1010
1011
- public T QueryForObjectDelegate < T > ( CommandType cmdType , string cmdText , RowMapperDelegate < T > rowMapperDelegate , ICommandSetter commandSetter )
1011
+ public virtual T QueryForObjectDelegate < T > ( CommandType cmdType , string cmdText , RowMapperDelegate < T > rowMapperDelegate , ICommandSetter commandSetter )
1012
1012
{
1013
1013
IList < T > results = QueryWithRowMapperDelegate ( cmdType , cmdText , rowMapperDelegate , commandSetter ) ;
1014
1014
return DataAccessUtils . RequiredUniqueResultSet ( results ) ;
1015
1015
}
1016
1016
1017
- public T QueryForObjectDelegate < T > ( CommandType cmdType , string cmdText , RowMapperDelegate < T > rowMapperDelegate , IDbParameters parameters )
1017
+ public virtual T QueryForObjectDelegate < T > ( CommandType cmdType , string cmdText , RowMapperDelegate < T > rowMapperDelegate , IDbParameters parameters )
1018
1018
{
1019
1019
IList < T > results = QueryWithRowMapperDelegate ( cmdType , cmdText , rowMapperDelegate , parameters ) ;
1020
1020
return DataAccessUtils . RequiredUniqueResultSet ( results ) ;
1021
1021
}
1022
1022
1023
1023
1024
- public T QueryForObjectDelegate < T > ( CommandType cmdType , string cmdText , RowMapperDelegate < T > rowMapperDelegate ,
1024
+ public virtual T QueryForObjectDelegate < T > ( CommandType cmdType , string cmdText , RowMapperDelegate < T > rowMapperDelegate ,
1025
1025
string parameterName , Enum dbType , int size , object parameterValue )
1026
1026
{
1027
1027
IList < T > results = QueryWithRowMapperDelegate ( cmdType , cmdText , rowMapperDelegate , parameterName , dbType , size , parameterValue ) ;
@@ -1032,22 +1032,22 @@ public T QueryForObjectDelegate<T>(CommandType cmdType, string cmdText, RowMappe
1032
1032
1033
1033
#region Query with CommandCreator
1034
1034
1035
- public T QueryWithCommandCreator < T > ( IDbCommandCreator cc , IResultSetExtractor < T > rse )
1035
+ public virtual T QueryWithCommandCreator < T > ( IDbCommandCreator cc , IResultSetExtractor < T > rse )
1036
1036
{
1037
1037
return QueryWithCommandCreator < T > ( cc , rse , null ) ;
1038
1038
}
1039
1039
1040
- public void QueryWithCommandCreator ( IDbCommandCreator cc , IRowCallback rowCallback )
1040
+ public virtual void QueryWithCommandCreator ( IDbCommandCreator cc , IRowCallback rowCallback )
1041
1041
{
1042
1042
classicAdoTemplate . QueryWithCommandCreator ( cc , rowCallback , null ) ;
1043
1043
}
1044
1044
1045
- public IList < T > QueryWithCommandCreator < T > ( IDbCommandCreator cc , IRowMapper < T > rowMapper )
1045
+ public virtual IList < T > QueryWithCommandCreator < T > ( IDbCommandCreator cc , IRowMapper < T > rowMapper )
1046
1046
{
1047
1047
return QueryWithCommandCreator < T > ( cc , rowMapper , null ) ;
1048
1048
}
1049
1049
1050
- public T QueryWithCommandCreator < T > ( IDbCommandCreator cc , IResultSetExtractor < T > rse , IDictionary returnedParameters )
1050
+ public virtual T QueryWithCommandCreator < T > ( IDbCommandCreator cc , IResultSetExtractor < T > rse , IDictionary returnedParameters )
1051
1051
{
1052
1052
if ( rse == null )
1053
1053
{
@@ -1058,13 +1058,13 @@ public T QueryWithCommandCreator<T>(IDbCommandCreator cc, IResultSetExtractor<T>
1058
1058
}
1059
1059
1060
1060
1061
- public void QueryWithCommandCreator ( IDbCommandCreator cc , IRowCallback rowCallback , IDictionary returnedParameters )
1061
+ public virtual void QueryWithCommandCreator ( IDbCommandCreator cc , IRowCallback rowCallback , IDictionary returnedParameters )
1062
1062
{
1063
1063
classicAdoTemplate . QueryWithCommandCreator ( cc , rowCallback , returnedParameters ) ;
1064
1064
}
1065
1065
1066
1066
1067
- public IList < T > QueryWithCommandCreator < T > ( IDbCommandCreator cc , IRowMapper < T > rowMapper , IDictionary returnedParameters )
1067
+ public virtual IList < T > QueryWithCommandCreator < T > ( IDbCommandCreator cc , IRowMapper < T > rowMapper , IDictionary returnedParameters )
1068
1068
{
1069
1069
if ( rowMapper == null )
1070
1070
{
@@ -1075,13 +1075,13 @@ public IList<T> QueryWithCommandCreator<T>(IDbCommandCreator cc, IRowMapper<T> r
1075
1075
}
1076
1076
1077
1077
1078
- public IDictionary QueryWithCommandCreator < T > ( IDbCommandCreator cc , IList namedResultSetProcessors )
1078
+ public virtual IDictionary QueryWithCommandCreator < T > ( IDbCommandCreator cc , IList namedResultSetProcessors )
1079
1079
{
1080
1080
return classicAdoTemplate . Execute ( cc , new AdoResultProcessorsQueryCommandCallback < T > ( this , namedResultSetProcessors ) ) as IDictionary ;
1081
1081
}
1082
1082
1083
1083
1084
- public IDictionary QueryWithCommandCreator < T , U > ( IDbCommandCreator cc , IList namedResultSetProcessors )
1084
+ public virtual IDictionary QueryWithCommandCreator < T , U > ( IDbCommandCreator cc , IList namedResultSetProcessors )
1085
1085
{
1086
1086
return classicAdoTemplate . Execute ( cc , new AdoResultProcessorsQueryCommandCallback < T , U > ( this , namedResultSetProcessors ) ) as IDictionary ;
1087
1087
}
0 commit comments