1 package org.enhydra.util; 2 3 11 12 public class DOTable { 13 private String dBName; 14 private String tableName; 15 private Class cls; 16 private DOTable() {}; 17 public DOTable(String dBName, Class cls) { 18 this.dBName = dBName; 19 this.cls = cls; 20 tableName = cls.getName(); 21 int j = tableName.lastIndexOf(".") + 1; 22 if (j < 0) { 23 j = 0; 24 } 25 tableName = tableName.substring(j); 26 tableName = tableName.substring(0, tableName.length() - 2); 27 } 28 29 public String getDBName() { 30 return dBName; 31 } 32 33 public String getTableName() { 34 return tableName; 35 } 36 37 public Class getCls() { 38 return cls; 39 } 40 41 } | Popular Tags |