You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ColumnDataSourceDbo.java 1.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. package com.rthoni.intellij.codefromds.dbo.template;
  2. import org.apache.commons.lang.StringEscapeUtils;
  3. /**
  4. * Created by robin on 11/18/16.
  5. */
  6. public class ColumnDataSourceDbo {
  7. private String _name;
  8. private boolean _isPrimary;
  9. private boolean _isSelected;
  10. private String _type;
  11. private boolean _notNull;
  12. private boolean _typeNotNull;
  13. private String _defaultValue;
  14. public String getName() {
  15. return _name;
  16. }
  17. public void setName(String name) {
  18. _name = name;
  19. }
  20. public boolean isPrimary() {
  21. return _isPrimary;
  22. }
  23. public void setPrimary(boolean primary) {
  24. _isPrimary = primary;
  25. }
  26. public boolean isSelected() {
  27. return _isSelected;
  28. }
  29. public void setSelected(boolean selected) {
  30. _isSelected = selected;
  31. }
  32. public String getType() {
  33. return _type;
  34. }
  35. public void setType(String type) {
  36. _type = type;
  37. }
  38. public boolean isNotNull() {
  39. return _notNull;
  40. }
  41. public void setNotNull(boolean notNull) {
  42. _notNull = notNull;
  43. }
  44. public boolean isTypeNotNull() {
  45. return _typeNotNull;
  46. }
  47. public void setTypeNotNull(boolean typeNotNull) {
  48. _typeNotNull = typeNotNull;
  49. }
  50. public String getDefaultValue() {
  51. return _defaultValue;
  52. }
  53. public String getDefaultValueEscaped() {
  54. return StringEscapeUtils.escapeJava(_defaultValue);
  55. }
  56. public boolean hasDefaultValue()
  57. {
  58. return _defaultValue != null && !_defaultValue.equals("");
  59. }
  60. public void setDefaultValue(String defaultValue) {
  61. _defaultValue = defaultValue;
  62. }
  63. }