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.4KB

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