KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > triactive > jdo > store > ClassTable


1 /*
2  * Copyright 2004 (C) TJDO.
3  * All rights reserved.
4  *
5  * This software is distributed under the terms of the TJDO License version 1.0.
6  * See the terms of the TJDO License in the documentation provided with this software.
7  *
8  * $Id: ClassTable.java,v 1.4 2004/01/18 03:01:06 jackknifebarber Exp $
9  */

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 /**
19  * A database table that serves as backing for a persistence-capable Java class.
20  *
21  * @author <a HREF="mailto:mmartin5@austin.rr.com">Mike Martin</a>
22  * @version $Revision: 1.4 $
23  */

24
25 public interface ClassTable extends JDOTable
26 {
27     Class JavaDoc getType();
28
29     ClassMetaData getClassMetaData();
30
31     Extent newExtent(PersistenceManager pm, boolean subclasses);
32
33     boolean isFieldPersistent(int fieldNumber);
34
35     Mapping getFieldMapping(int fieldNumber);
36
37     Mapping getFieldMapping(String JavaDoc fieldName);
38 }
39
Popular Tags