KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > j2ee > persistence > entitygenerator > GeneratedTables


1 /*
2  * The contents of this file are subject to the terms of the Common Development
3  * and Distribution License (the License). You may not use this file except in
4  * compliance with the License.
5  *
6  * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
7  * or http://www.netbeans.org/cddl.txt.
8  *
9  * When distributing Covered Code, include this CDDL Header Notice in each file
10  * and include the License file at http://www.netbeans.org/cddl.txt.
11  * If applicable, add the following below the CDDL Header, with the fields
12  * enclosed by brackets [] replaced by your own identifying information:
13  * "Portions Copyrighted [year] [name of copyright owner]"
14  *
15  * The Original Software is NetBeans. The Initial Developer of the Original
16  * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
17  * Microsystems, Inc. All Rights Reserved.
18  */

19
20 package org.netbeans.modules.j2ee.persistence.entitygenerator;
21
22 import java.util.Set JavaDoc;
23 import org.openide.filesystems.FileObject;
24
25 /**
26  * This interface describes the tables used to generate
27  * classes and these classes. It contains a set of tables
28  * and the locations of the classes generated for these tables
29  * (the root folder, the package name and the class name).
30  *
31  * @author Andrei Badea
32  */

33 public interface GeneratedTables {
34
35     /**
36      * Returns the names of the tables which should be used to generate classes.
37      */

38     public Set JavaDoc<String JavaDoc> getTableNames();
39
40     /**
41      * Returns the root folder of the class which will be generated for
42      * the specified table.
43      */

44     public FileObject getRootFolder(String JavaDoc tableName);
45
46     /**
47      * Returns the package of the class which will be generated for
48      * the specified table.
49      */

50     public String JavaDoc getPackageName(String JavaDoc tableName);
51
52     /**
53      * Returns the name of the class to be generated for the specified table.
54      */

55     public String JavaDoc getClassName(String JavaDoc tableName);
56 }
57
Popular Tags