2
* See the file LICENSE for redistribution information.
4
* Copyright (c) 2009, 2010 Oracle and/or its affiliates. All rights reserved.
8
using System.Collections.Generic;
10
using BerkeleyDB.Internal;
12
namespace BerkeleyDB {
14
/// A class representing the supported Berkeley DB access methods.
16
public class DatabaseType {
18
/// BTree access method
20
public static readonly DatabaseType BTREE
21
= new DatabaseType(DBTYPE.DB_BTREE);
23
/// Hash access method
25
public static readonly DatabaseType HASH
26
= new DatabaseType(DBTYPE.DB_HASH);
28
/// Recno access method
30
public static readonly DatabaseType RECNO
31
= new DatabaseType(DBTYPE.DB_RECNO);
33
/// Queue access method
35
public static readonly DatabaseType QUEUE
36
= new DatabaseType(DBTYPE.DB_QUEUE);
38
/// Unknown access method
40
public static readonly DatabaseType UNKNOWN
41
= new DatabaseType(DBTYPE.DB_UNKNOWN);
43
private BerkeleyDB.Internal.DBTYPE dbtype;
45
private DatabaseType(BerkeleyDB.Internal.DBTYPE type) {
49
internal BerkeleyDB.Internal.DBTYPE getDBTYPE() {
54
/// Convert this instance of DatabaseType to its string representation.
56
/// <returns>A string representation of this instance.</returns>
57
public override string ToString() {
b'\\ No newline at end of file'