01: package org.enhydra.util;
02:
03: /**
04: * <p>Title: </p>
05: * <p>Description: </p>
06: * <p>Copyright: Copyright (c) 2004</p>
07: * <p>Company: </p>
08: * @author not attributable
09: * @version 1.0
10: */
11:
12: public class DOTable {
13: private String dBName;
14: private String tableName;
15: private Class cls;
16:
17: private DOTable() {
18: };
19:
20: public DOTable(String dBName, Class cls) {
21: this .dBName = dBName;
22: this .cls = cls;
23: tableName = cls.getName();
24: int j = tableName.lastIndexOf(".") + 1;
25: if (j < 0) {
26: j = 0;
27: }
28: tableName = tableName.substring(j);
29: tableName = tableName.substring(0, tableName.length() - 2);
30: }
31:
32: public String getDBName() {
33: return dBName;
34: }
35:
36: public String getTableName() {
37: return tableName;
38: }
39:
40: public Class getCls() {
41: return cls;
42: }
43:
44: }
|