KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > mockobjects > sql > MockArray


1 package com.mockobjects.sql;
2
3 import com.mockobjects.MockObject;
4
5 import java.sql.*;
6 import java.util.*;
7
8 /**
9  * MockArray.java
10  *
11  * @author ggalli@e-tree.com
12  * @version $Revision: 1.1 $
13  */

14 public class MockArray extends MockObject implements Array{
15     private String JavaDoc myBaseTypeName;
16     private Object JavaDoc myArray;
17
18     public void setupBaseTypeName(String JavaDoc aBaseTypName){
19         myBaseTypeName = aBaseTypName;
20     }
21
22     public String JavaDoc getBaseTypeName(){
23         return myBaseTypeName;
24     }
25     
26     public int getBaseType(){
27         notImplemented();
28         return 0;
29     }
30     
31     public Object JavaDoc getArray(long l, int n) throws SQLException{
32         notImplemented();
33         return null;
34     }
35         
36     public Object JavaDoc getArray(Map map)throws SQLException{
37         notImplemented();
38         return null;
39     }
40
41     public Object JavaDoc getArray(long l, int n, Map map) throws SQLException{
42         notImplemented();
43         return null;
44     }
45
46     public void setupArray(Object JavaDoc anArray){
47         myArray = anArray;
48     }
49
50     public Object JavaDoc getArray() throws SQLException{
51         return myArray;
52     }
53     
54     public ResultSet getResultSet() throws SQLException{
55         notImplemented();
56         return null;
57     }
58     
59     public ResultSet getResultSet(long l, int n ) throws SQLException{
60         notImplemented();
61         return null;
62     }
63     
64     public ResultSet getResultSet(Map map) throws SQLException{
65         notImplemented();
66         return null;
67     }
68
69     public ResultSet getResultSet(long l, int n ,Map map) throws SQLException{
70         notImplemented();
71         return null;
72     }
73 }
74
Popular Tags