1 25 26 27 package org.objectweb.jonas_ejb.deployment.api; 28 29 35 37 public class FieldJdbcDesc extends FieldDesc { 38 39 40 protected String jdbcFieldName = null; 41 protected String sqlType = null; 42 43 47 public String getJdbcFieldName() { 48 return jdbcFieldName; 49 } 50 51 54 protected void setJdbcFieldName(String jdbcFieldName) { 55 this.jdbcFieldName = jdbcFieldName; 56 } 57 58 62 public boolean hasSqlType() { 63 return (sqlType != null); 64 } 65 66 70 public String getSqlType() { 71 return sqlType; 72 } 73 74 77 protected void setSqlType(String st) { 78 sqlType = st; 79 } 80 81 85 public String toString() { 86 StringBuffer ret = new StringBuffer (); 87 ret.append(super.toString()); 88 ret.append("\ngetJdbcFieldName()=" + getJdbcFieldName()); 89 if (hasSqlType()) { 90 ret.append("\ngetSqlType()=" + getSqlType()); 91 } 92 return ret.toString(); 93 } 94 95 } 96 | Popular Tags |