Debian Codegraph @

lang/java/src/com/sleepycat/persist/impl/AbstractInput.java

raw
1 /*-
2 * See the file LICENSE for redistribution information.
3 *
4 * Copyright (c) 2002, 2013 Oracle and/or its affiliates. All rights reserved.
5 *
6 */
7
8 package com.sleepycat.persist.impl;
9
10 /**
11 * Base class for EntityInput implementations. RecordInput cannot use this
12 * base class because it extends TupleInput, so it repeats the code here.
13 *
14 * @author Mark Hayes
15 */
16 abstract class AbstractInput implements EntityInput {
17
18 Catalog catalog;
19 boolean rawAccess;
20
21 AbstractInput(Catalog catalog, boolean rawAccess) {
22 this.catalog = catalog;
23 this.rawAccess = rawAccess;
24 }
25
26 public Catalog getCatalog() {
27 return catalog;
28 }
29
30 public boolean isRawAccess() {
31 return rawAccess;
32 }
33
34 public boolean setRawAccess(boolean rawAccessParam) {
35 boolean original = rawAccess;
36 rawAccess = rawAccessParam;
37 return original;
38 }
39 }