01: /**********************************************************************
02: Copyright (c) 2002 Kelly Grizzle (TJDO) and others. All rights reserved.
03: Licensed under the Apache License, Version 2.0 (the "License");
04: you may not use this file except in compliance with the License.
05: You may obtain a copy of the License at
06:
07: http://www.apache.org/licenses/LICENSE-2.0
08:
09: Unless required by applicable law or agreed to in writing, software
10: distributed under the License is distributed on an "AS IS" BASIS,
11: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12: See the License for the specific language governing permissions and
13: limitations under the License.
14:
15:
16: Contributors:
17: 2002 Mike Martin (TJDO)
18: 2003 Andy Jefferson - coding standards
19: ...
20: **********************************************************************/package org.jpox.store;
21:
22: import org.jpox.FetchPlan;
23: import org.jpox.StateManager;
24:
25: /**
26: * Interface for field values.
27: *
28: * @version $Revision: 1.6 $
29: **/
30: public interface FieldValues {
31: /**
32: * Method to retrieve the fields and store them in the object managed by the passed StateManager.
33: * @param sm State Manager for the object
34: */
35: void fetchFields(StateManager sm);
36:
37: /**
38: * Method to retrieve the unloaded fields and store them in the object managed by the passed StateManager.
39: * @param sm State Manager for the object
40: */
41: void fetchNonLoadedFields(StateManager sm);
42:
43: /**
44: * Accessor for any FetchPlan to use when loading of fields (if any).
45: * @return The Fetch Plan
46: */
47: FetchPlan getFetchPlanForLoading();
48: }
|