2003-11-08 Ben Maurer <bmaurer@users.sourceforge.net>
[mono.git] / mcs / class / System.Web / System.Web.UI / DataSourceView.cs
1 //
2 // System.Web.UI.DataSourceView
3 //
4 // Authors:
5 //      Ben Maurer (bmaurer@users.sourceforge.net)
6 //
7 // (C) 2003 Ben Maurer
8 //
9
10 #if NET_1_2
11 using System.Collections;
12 using System.Collections.Specialized;
13 using System.Text;
14
15 namespace System.Web.UI {
16         public abstract class DataSourceView
17         {
18                 protected DataSourceView ()
19                 {
20                 }
21                 
22                 public virtual int Delete (IDictionary keys)
23                 {
24                         throw new NotSupportedException ();
25                 }
26                 
27                 public virtual int Insert (IDictionary values)
28                 {
29                         throw new NotSupportedException ();
30                 }
31                 
32                 public virtual int Update (IDictionary keys, IDictionary values)
33                 {
34                         throw new NotSupportedException ();
35                 }
36                 
37                 public abstract IEnumerable Select ();
38
39                 public virtual bool CanDelete { get { return false; } }
40                 public virtual bool CanInsert { get { return false; } }
41                 public virtual bool CanSort { get { return false; } }
42                 public virtual bool CanUpdate { get { return false; } }
43                 
44                 public virtual string Name { get { return ""; } }
45                 public virtual string SortExpression {
46                         get { throw new NotSupportedException (); }
47                         set { throw new NotSupportedException (); }
48                 }
49         }
50         
51 }
52 #endif
53