diff options
author | Jeff Ames | 2008-06-26 20:20:30 +0000 |
---|---|---|
committer | Jeff Ames | 2008-06-26 20:20:30 +0000 |
commit | d96caaa14e9e869e85eecc6b760221ad0579f68e (patch) | |
tree | ccb720f2b7df128d9db0285c58ee6cc63a291ba8 /OpenSim/Data/Base/BaseRowMapper.cs | |
parent | Apply patch from bug #1605 -- Documentation for Data/SQLite. Thanks kerunix_... (diff) | |
download | opensim-SC-d96caaa14e9e869e85eecc6b760221ad0579f68e.zip opensim-SC-d96caaa14e9e869e85eecc6b760221ad0579f68e.tar.gz opensim-SC-d96caaa14e9e869e85eecc6b760221ad0579f68e.tar.bz2 opensim-SC-d96caaa14e9e869e85eecc6b760221ad0579f68e.tar.xz |
Apply patch from bug #1606 -- Documentation for Data/Null, Data/Base. Thanks kerunix_Flan!
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Data/Base/BaseRowMapper.cs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/OpenSim/Data/Base/BaseRowMapper.cs b/OpenSim/Data/Base/BaseRowMapper.cs index a61ce49d..d07f9b3 100644 --- a/OpenSim/Data/Base/BaseRowMapper.cs +++ b/OpenSim/Data/Base/BaseRowMapper.cs | |||
@@ -27,27 +27,46 @@ | |||
27 | 27 | ||
28 | namespace OpenSim.Data.Base | 28 | namespace OpenSim.Data.Base |
29 | { | 29 | { |
30 | /// <summary> | ||
31 | /// | ||
32 | /// </summary> | ||
30 | public abstract class BaseRowMapper | 33 | public abstract class BaseRowMapper |
31 | { | 34 | { |
32 | public abstract void FillObject(BaseDataReader reader); | 35 | public abstract void FillObject(BaseDataReader reader); |
33 | } | 36 | } |
34 | 37 | ||
38 | /// <summary> | ||
39 | /// | ||
40 | /// </summary> | ||
41 | /// <typeparam name="TObj"></typeparam> | ||
35 | public class BaseRowMapper<TObj> : BaseRowMapper | 42 | public class BaseRowMapper<TObj> : BaseRowMapper |
36 | { | 43 | { |
37 | private readonly BaseSchema m_schema; | 44 | private readonly BaseSchema m_schema; |
38 | private readonly TObj m_obj; | 45 | private readonly TObj m_obj; |
39 | 46 | ||
47 | /// <summary> | ||
48 | /// | ||
49 | /// </summary> | ||
40 | public TObj Object | 50 | public TObj Object |
41 | { | 51 | { |
42 | get { return m_obj; } | 52 | get { return m_obj; } |
43 | } | 53 | } |
44 | 54 | ||
55 | /// <summary> | ||
56 | /// | ||
57 | /// </summary> | ||
58 | /// <param name="schema"></param> | ||
59 | /// <param name="obj"></param> | ||
45 | public BaseRowMapper(BaseSchema schema, TObj obj) | 60 | public BaseRowMapper(BaseSchema schema, TObj obj) |
46 | { | 61 | { |
47 | m_schema = schema; | 62 | m_schema = schema; |
48 | m_obj = obj; | 63 | m_obj = obj; |
49 | } | 64 | } |
50 | 65 | ||
66 | /// <summary> | ||
67 | /// | ||
68 | /// </summary> | ||
69 | /// <param name="reader"></param> | ||
51 | public override void FillObject(BaseDataReader reader) | 70 | public override void FillObject(BaseDataReader reader) |
52 | { | 71 | { |
53 | foreach (BaseFieldMapper fieldMapper in m_schema.Fields.Values) | 72 | foreach (BaseFieldMapper fieldMapper in m_schema.Fields.Values) |