12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- package com.rthoni.intellij.codefromds.dbo.template;
-
- /**
- * Created by robin on 11/18/16.
- */
- public class ColumnDataSourceDbo {
-
- private String _name;
-
- private boolean _isPrimary;
-
- private boolean _isSelected;
-
- private SqlTypeDbo _type;
-
- private boolean _notNull;
-
- 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 SqlTypeDbo getType() {
- return _type;
- }
-
- public void setType(SqlTypeDbo type) {
- _type = type;
- }
-
- public boolean isNotNull() {
- return _notNull;
- }
-
- public void setNotNull(boolean notNull) {
- _notNull = notNull;
- }
-
- public boolean isTypeNotNull() {
- return _type != null && _type.isLanguageTypeNotNull();
- }
-
- public String getDefaultValue() {
- return _defaultValue;
- }
-
- public boolean hasDefaultValue()
- {
- return _defaultValue != null && !_defaultValue.equals("");
- }
-
- public void setDefaultValue(String defaultValue) {
- _defaultValue = defaultValue;
- }
- }
|