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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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 _sqlType;
  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 String getType() {
  31. return _sqlType != null ? _sqlType.getLanguageType() : null;
  32. }
  33. public SqlTypeDbo getSqlType() {
  34. return _sqlType;
  35. }
  36. public void setSqlType(SqlTypeDbo sqlType) {
  37. _sqlType = sqlType;
  38. }
  39. public boolean isNotNull() {
  40. return _notNull;
  41. }
  42. public void setNotNull(boolean notNull) {
  43. _notNull = notNull;
  44. }
  45. public boolean isTypeNotNull() {
  46. return _sqlType != null && _sqlType.isLanguageTypeNotNull();
  47. }
  48. public String getDefaultValue() {
  49. return _defaultValue;
  50. }
  51. public boolean hasDefaultValue()
  52. {
  53. return _defaultValue != null && !_defaultValue.equals("");
  54. }
  55. public void setDefaultValue(String defaultValue) {
  56. _defaultValue = defaultValue;
  57. }
  58. }