01: /*-
02: * See the file LICENSE for redistribution information.
03: *
04: * Copyright (c) 2002,2008 Oracle. All rights reserved.
05: *
06: * $Id: AbstractInput.java,v 1.3.2.2 2008/01/07 15:14:19 cwl Exp $
07: */
08:
09: package com.sleepycat.persist.impl;
10:
11: /**
12: * Base class for EntityInput implementations. RecordInput cannot use this
13: * base class because it extends TupleInput, so it repeats the code here.
14: *
15: * @author Mark Hayes
16: */
17: abstract class AbstractInput implements EntityInput {
18:
19: Catalog catalog;
20: boolean rawAccess;
21:
22: AbstractInput(Catalog catalog, boolean rawAccess) {
23: this .catalog = catalog;
24: this .rawAccess = rawAccess;
25: }
26:
27: public Catalog getCatalog() {
28: return catalog;
29: }
30:
31: public boolean isRawAccess() {
32: return rawAccess;
33: }
34:
35: public boolean setRawAccess(boolean rawAccessParam) {
36: boolean original = rawAccess;
37: rawAccess = rawAccessParam;
38: return original;
39: }
40: }
|