01: /*
02: * Copyright 2004 (C) TJDO.
03: * All rights reserved.
04: *
05: * This software is distributed under the terms of the TJDO License version 1.0.
06: * See the terms of the TJDO License in the documentation provided with this software.
07: *
08: * $Id: ClassTable.java,v 1.4 2004/01/18 03:01:06 jackknifebarber Exp $
09: */
10:
11: package com.triactive.jdo.store;
12:
13: import com.triactive.jdo.PersistenceManager;
14: import com.triactive.jdo.model.ClassMetaData;
15: import javax.jdo.Extent;
16:
17: /**
18: * A database table that serves as backing for a persistence-capable Java class.
19: *
20: * @author <a href="mailto:mmartin5@austin.rr.com">Mike Martin</a>
21: * @version $Revision: 1.4 $
22: */
23:
24: public interface ClassTable extends JDOTable {
25: Class getType();
26:
27: ClassMetaData getClassMetaData();
28:
29: Extent newExtent(PersistenceManager pm, boolean subclasses);
30:
31: boolean isFieldPersistent(int fieldNumber);
32:
33: Mapping getFieldMapping(int fieldNumber);
34:
35: Mapping getFieldMapping(String fieldName);
36: }
|