KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > ws > jaxme > pm > generator > jdbc > CustomTableData


1 /*
2  * Copyright 2003, 2004 The Apache Software Foundation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15
16  */

17 package org.apache.ws.jaxme.pm.generator.jdbc;
18
19 import org.apache.ws.jaxme.generator.sg.ComplexTypeSG;
20 import org.apache.ws.jaxme.sqls.Table;
21
22 /**
23  * @author <a HREF="mailto:joe@ispsoft.de">Jochen Wiedmann</a>
24  */

25 public class CustomTableData {
26   private final Table table;
27   private final TableDetails tableDetails;
28   private final ComplexTypeSG typeSG;
29   /** Creates a new instance-
30    * @param pJdbcSG The source generator creating this instance.
31    * @param pTable The table, which is currently read by the source generator.
32    * @param pTypeSG The complex type being generated.
33    * @param pTableDetails The connection details.
34    */

35   public CustomTableData(JaxMeJdbcSG pJdbcSG, Table pTable, ComplexTypeSG pTypeSG, TableDetails pTableDetails) {
36     table = pTable;
37     typeSG = pTypeSG;
38     tableDetails = pTableDetails;
39   }
40   /** Returns the table, which is currently being read.
41    */

42   public Table getTable() { return table; }
43   /** Returns the type, which is being generated.
44    */

45   public ComplexTypeSG getTypeSG() { return typeSG; }
46   /** Returns the connection details.
47    */

48   public TableDetails getTableDetails() { return tableDetails; }
49 }
50
Popular Tags