12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- package com.rthoni.intellij.codefromds.dbo.template;
-
- import org.apache.commons.lang.StringEscapeUtils;
-
- /**
- * Created by robin on 11/18/16.
- */
- public class ColumnDataSourceDbo {
-
- private String _name;
-
- private boolean _isPrimary;
-
- private boolean _isSelected;
-
- private String _type;
-
- private boolean _notNull;
-
- private boolean _typeNotNull;
-
- private String _defaultValue;
-
- public String getName() {
- return _name;
- }
-
- public void setName(String name) {
- _name = name;
- }
-
- public boolean isPrimary() {
- return _isPrimary;
- }
-
- public void setPrimary(boolean primary) {
- _isPrimary = primary;
- }
-
- public boolean isSelected() {
- return _isSelected;
- }
-
- public void setSelected(boolean selected) {
- _isSelected = selected;
- }
-
- public String getType() {
- return _type;
- }
-
- public void setType(String type) {
- _type = type;
- }
-
- public boolean isNotNull() {
- return _notNull;
- }
-
- public void setNotNull(boolean notNull) {
- _notNull = notNull;
- }
-
- public boolean isTypeNotNull() {
- return _typeNotNull;
- }
-
- public void setTypeNotNull(boolean typeNotNull) {
- _typeNotNull = typeNotNull;
- }
-
- public String getDefaultValue() {
- return _defaultValue;
- }
-
- public String getDefaultValueEscaped() {
- return StringEscapeUtils.escapeJava(_defaultValue);
- }
-
- public boolean hasDefaultValue()
- {
- return _defaultValue != null && !_defaultValue.equals("");
- }
-
- public void setDefaultValue(String defaultValue) {
- _defaultValue = defaultValue;
- }
- }
|