1 23 24 package org.objectweb.jorm.mapper.rdb.genclass; 25 26 import org.objectweb.jorm.genclass.api.FieldDesc; 27 import org.objectweb.jorm.type.api.PType; 28 29 34 35 public class RdbFieldDesc extends FieldDesc { 36 39 public String columnName; 40 41 44 public String columnType; 45 46 50 public boolean isRefExtField = false; 51 52 55 public RdbFieldDesc(String fn, String cfn, PType ft, String cn, String ct) { 56 super(fn, cfn, ft); 57 columnName = cn; 58 columnType = ct; 59 } 60 61 64 public RdbFieldDesc(String fn, String cfn, PType ft, String cn, String ct, int sz, int scale) { 65 super(fn, cfn, ft, sz, scale); 66 columnName = cn; 67 columnType = ct; 68 } 69 70 73 public RdbFieldDesc(String fn, String cfn, PType ft, String cn, String ct, boolean isRefExtField) { 74 this(fn, cfn, ft, cn, ct); 75 this.isRefExtField = isRefExtField; 76 } 77 78 81 public RdbFieldDesc(String fn, String cfn, PType ft, String cn, String ct, int sz, int scale, boolean isRefExtField) { 82 this(fn, cfn, ft, cn, ct, sz, scale); 83 this.isRefExtField = isRefExtField; 84 } 85 } 86 | Popular Tags |