KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > versant > core > storagemanager > logging > SmFetchEventBase


1
2 /*
3  * Copyright (c) 1998 - 2005 Versant Corporation
4  * All rights reserved. This program and the accompanying materials
5  * are made available under the terms of the Eclipse Public License v1.0
6  * which accompanies this distribution, and is available at
7  * http://www.eclipse.org/legal/epl-v10.html
8  *
9  * Contributors:
10  * Versant Corporation - initial API and implementation
11  */

12 package com.versant.core.storagemanager.logging;
13
14 /**
15  * Base class for events logged for operations that return a state packet
16  * for a get state type call.
17  */

18 public class SmFetchEventBase extends SmStatesReturnedEvent {
19
20     protected String JavaDoc fieldName;
21     private String JavaDoc fetchGroup;
22
23     public SmFetchEventBase(int storageManagerId, int type, String JavaDoc fieldName,
24             String JavaDoc fetchGroup) {
25         super(storageManagerId, type);
26         this.fieldName = fieldName;
27         this.fetchGroup = fetchGroup;
28     }
29
30     /**
31      * If the data is being fetched in response to a missing field then this
32      * is the name of the field. It will be fully qualified if it is from
33      * a superclass of the requested class or belongs to a different class
34      * entirely (i.e. a reference field was navigated causing the fetch).
35      */

36     public String JavaDoc getFieldName() {
37         return fieldName;
38     }
39
40     public void setFieldName(String JavaDoc fieldName) {
41         this.fieldName = fieldName;
42     }
43
44     /**
45      * Get the fetch group requested. If there are lots of input OIDS then
46      * this must be common to all of the OIDs.
47      */

48     public String JavaDoc getFetchGroup() {
49         return fetchGroup;
50     }
51
52     public void setFetchGroup(String JavaDoc fetchGroup) {
53         this.fetchGroup = fetchGroup;
54     }
55
56 }
57
Popular Tags