001: /*
002: * Copyright (c) 1998 - 2005 Versant Corporation
003: * All rights reserved. This program and the accompanying materials
004: * are made available under the terms of the Eclipse Public License v1.0
005: * which accompanies this distribution, and is available at
006: * http://www.eclipse.org/legal/epl-v10.html
007: *
008: * Contributors:
009: * Versant Corporation - initial API and implementation
010: */
011: package com.versant.core.server;
012:
013: import java.io.Serializable;
014:
015: /**
016: * Information about a datastore. Currently this is not public and this info
017: * is only used by the unit tests. When this class has been cleaned up a bit
018: * we can make this public.
019: */
020: public class DataStoreInfo implements Serializable {
021:
022: private String name;
023: private String dataStoreType;
024: private boolean autoIncSupported;
025: private boolean scrollableResultSetSupported;
026: private String selectForUpdate;
027: private boolean jdbc;
028: private int majorVersion;
029: private boolean preparedStatementPoolingOK;
030: private int inheritance;
031: private int defaultClassId;
032: private boolean dataSource;
033:
034: public DataStoreInfo() {
035: }
036:
037: public String getName() {
038: return name;
039: }
040:
041: public void setName(String name) {
042: this .name = name;
043: }
044:
045: /**
046: * Return the type of datastore (vds, oracle, informix, informixse etc.).
047: */
048: public String getDataStoreType() {
049: return dataStoreType;
050: }
051:
052: public void setDataStoreType(String dataStoreType) {
053: this .dataStoreType = dataStoreType;
054: }
055:
056: public boolean isAutoIncSupported() {
057: return autoIncSupported;
058: }
059:
060: public void setAutoIncSupported(boolean autoIncSupported) {
061: this .autoIncSupported = autoIncSupported;
062: }
063:
064: public boolean isScrollableResultSetSupported() {
065: return scrollableResultSetSupported;
066: }
067:
068: public void setScrollableResultSetSupported(
069: boolean scrollableResultSetSupported) {
070: this .scrollableResultSetSupported = scrollableResultSetSupported;
071: }
072:
073: public String getSelectForUpdate() {
074: return selectForUpdate;
075: }
076:
077: public void setSelectForUpdate(String selectForUpdate) {
078: this .selectForUpdate = selectForUpdate;
079: }
080:
081: public boolean isJdbc() {
082: return jdbc;
083: }
084:
085: public void setJdbc(boolean jdbc) {
086: this .jdbc = jdbc;
087: }
088:
089: public boolean isDataSource() {
090: return dataSource;
091: }
092:
093: public void setDataSource(boolean dataSource) {
094: this .dataSource = dataSource;
095: }
096:
097: public int getMajorVersion() {
098: return majorVersion;
099: }
100:
101: public void setMajorVersion(int majorVersion) {
102: this .majorVersion = majorVersion;
103: }
104:
105: public boolean isPreparedStatementPoolingOK() {
106: return preparedStatementPoolingOK;
107: }
108:
109: public void setPreparedStatementPoolingOK(
110: boolean preparedStatementPoolingOK) {
111: this .preparedStatementPoolingOK = preparedStatementPoolingOK;
112: }
113:
114: public int getInheritance() {
115: return inheritance;
116: }
117:
118: public void setInheritance(int inheritance) {
119: this .inheritance = inheritance;
120: }
121:
122: public int getDefaultClassId() {
123: return defaultClassId;
124: }
125:
126: public void setDefaultClassId(int defaultClassId) {
127: this.defaultClassId = defaultClassId;
128: }
129:
130: }
|