1 29 30 package com.caucho.amber.cfg; 31 32 import javax.persistence.DiscriminatorType; 33 34 35 38 public class DiscriminatorColumnConfig { 39 40 private String _name = "DTYPE"; 42 private DiscriminatorType _discriminatorType = DiscriminatorType.STRING; 43 private String _columnDefinition; 44 private int _length = 31; 45 46 49 public String getName() 50 { 51 return _name; 52 } 53 54 57 public void setName(String name) 58 { 59 _name = name; 60 } 61 62 65 public DiscriminatorType getDiscriminatorType() 66 { 67 return _discriminatorType; 68 } 69 70 73 public void setDiscriminatorType(String discriminatorType) 74 { 75 _discriminatorType = DiscriminatorType.valueOf(discriminatorType); 76 } 77 78 81 public String getColumnDefinition() 82 { 83 return _columnDefinition; 84 } 85 86 89 public void setColumnDefinition(String columnDefinition) 90 { 91 _columnDefinition = columnDefinition; 92 } 93 94 97 public int getLength() 98 { 99 return _length; 100 } 101 102 105 public void setLength(int length) 106 { 107 _length = length; 108 } 109 } 110 | Popular Tags |