01: /*
02: * Copyright (c) 1998 - 2005 Versant Corporation
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * Versant Corporation - initial API and implementation
10: */
11: package com.versant.core.storagemanager.logging;
12:
13: /**
14: * Base class for events logged for operations that return a state packet
15: * for a get state type call.
16: */
17: public class SmFetchEventBase extends SmStatesReturnedEvent {
18:
19: protected String fieldName;
20: private String fetchGroup;
21:
22: public SmFetchEventBase(int storageManagerId, int type,
23: String fieldName, String fetchGroup) {
24: super (storageManagerId, type);
25: this .fieldName = fieldName;
26: this .fetchGroup = fetchGroup;
27: }
28:
29: /**
30: * If the data is being fetched in response to a missing field then this
31: * is the name of the field. It will be fully qualified if it is from
32: * a superclass of the requested class or belongs to a different class
33: * entirely (i.e. a reference field was navigated causing the fetch).
34: */
35: public String getFieldName() {
36: return fieldName;
37: }
38:
39: public void setFieldName(String fieldName) {
40: this .fieldName = fieldName;
41: }
42:
43: /**
44: * Get the fetch group requested. If there are lots of input OIDS then
45: * this must be common to all of the OIDs.
46: */
47: public String getFetchGroup() {
48: return fetchGroup;
49: }
50:
51: public void setFetchGroup(String fetchGroup) {
52: this.fetchGroup = fetchGroup;
53: }
54:
55: }
|