1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- 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 SqlTypeDbo _sqlType;
-
- 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 SqlTypeDbo getSqlType() {
- return _sqlType;
- }
-
- public void setSqlType(SqlTypeDbo sqlType) {
- _sqlType = sqlType;
- }
-
- 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;
- }
- }
|