KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > versant > core > server > DataStoreInfo


1
2 /*
3  * Copyright (c) 1998 - 2005 Versant Corporation
4  * All rights reserved. This program and the accompanying materials
5  * are made available under the terms of the Eclipse Public License v1.0
6  * which accompanies this distribution, and is available at
7  * http://www.eclipse.org/legal/epl-v10.html
8  *
9  * Contributors:
10  * Versant Corporation - initial API and implementation
11  */

12 package com.versant.core.server;
13
14 import java.io.Serializable JavaDoc;
15
16 /**
17  * Information about a datastore. Currently this is not public and this info
18  * is only used by the unit tests. When this class has been cleaned up a bit
19  * we can make this public.
20  */

21 public class DataStoreInfo implements Serializable JavaDoc {
22
23     private String JavaDoc name;
24     private String JavaDoc dataStoreType;
25     private boolean autoIncSupported;
26     private boolean scrollableResultSetSupported;
27     private String JavaDoc selectForUpdate;
28     private boolean jdbc;
29     private int majorVersion;
30     private boolean preparedStatementPoolingOK;
31     private int inheritance;
32     private int defaultClassId;
33     private boolean dataSource;
34
35     public DataStoreInfo() {
36     }
37
38     public String JavaDoc getName() {
39         return name;
40     }
41
42     public void setName(String JavaDoc name) {
43         this.name = name;
44     }
45
46     /**
47      * Return the type of datastore (vds, oracle, informix, informixse etc.).
48      */

49     public String JavaDoc getDataStoreType() {
50         return dataStoreType;
51     }
52
53     public void setDataStoreType(String JavaDoc dataStoreType) {
54         this.dataStoreType = dataStoreType;
55     }
56
57     public boolean isAutoIncSupported() {
58         return autoIncSupported;
59     }
60
61     public void setAutoIncSupported(boolean autoIncSupported) {
62         this.autoIncSupported = autoIncSupported;
63     }
64
65     public boolean isScrollableResultSetSupported() {
66         return scrollableResultSetSupported;
67     }
68
69     public void setScrollableResultSetSupported(
70             boolean scrollableResultSetSupported) {
71         this.scrollableResultSetSupported = scrollableResultSetSupported;
72     }
73
74     public String JavaDoc getSelectForUpdate() {
75         return selectForUpdate;
76     }
77
78     public void setSelectForUpdate(String JavaDoc selectForUpdate) {
79         this.selectForUpdate = selectForUpdate;
80     }
81
82     public boolean isJdbc() {
83         return jdbc;
84     }
85
86     public void setJdbc(boolean jdbc) {
87         this.jdbc = jdbc;
88     }
89
90     public boolean isDataSource() {
91         return dataSource;
92     }
93
94     public void setDataSource(boolean dataSource) {
95         this.dataSource = dataSource;
96     }
97
98     public int getMajorVersion() {
99         return majorVersion;
100     }
101
102     public void setMajorVersion(int majorVersion) {
103         this.majorVersion = majorVersion;
104     }
105
106     public boolean isPreparedStatementPoolingOK() {
107         return preparedStatementPoolingOK;
108     }
109
110     public void setPreparedStatementPoolingOK(
111             boolean preparedStatementPoolingOK) {
112         this.preparedStatementPoolingOK = preparedStatementPoolingOK;
113     }
114
115     public int getInheritance() {
116         return inheritance;
117     }
118
119     public void setInheritance(int inheritance) {
120         this.inheritance = inheritance;
121     }
122
123     public int getDefaultClassId() {
124         return defaultClassId;
125     }
126
127     public void setDefaultClassId(int defaultClassId) {
128         this.defaultClassId = defaultClassId;
129     }
130
131 }
132
Popular Tags