/*******************************************************************************
* Copyright (c) 2015 hangum.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Lesser Public License v2.1
* which accompanies this distribution, and is available at
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
*
* Contributors:
* hangum - initial API and implementation
******************************************************************************/
package com.hangum.tadpole.rdb.core.dialog.table.mysql;
/**
* table column dao
*
* @author hangum
*
*/
public class TableColumnUpdateDAO implements Cloneable {
private String columnName;
private boolean primaryKey;
private boolean notNull;
private boolean autoIncrement;
private String dataType;
private String collation;
private String defaultValue;
private String comment;
public TableColumnUpdateDAO() {
}
/**
* @return the columnName
*/
public String getColumnName() {
return columnName;
}
/**
* @param columnName the columnName to set
*/
public void setColumnName(String columnName) {
this.columnName = columnName;
}
/**
* @return the primaryKey
*/
public boolean isPrimaryKey() {
return primaryKey;
}
/**
* @param primaryKey the primaryKey to set
*/
public void setPrimaryKey(boolean primaryKey) {
this.primaryKey = primaryKey;
}
/**
* @return the notNull
*/
public boolean isNotNull() {
return notNull;
}
/**
* @param notNull the notNull to set
*/
public void setNotNull(boolean notNull) {
this.notNull = notNull;
}
/**
* @return the autoIncrement
*/
public boolean isAutoIncrement() {
return autoIncrement;
}
/**
* @param autoIncrement the autoIncrement to set
*/
public void setAutoIncrement(boolean autoIncrement) {
this.autoIncrement = autoIncrement;
}
/**
* @return the dataType
*/
public String getDataType() {
return dataType;
}
/**
* @param dataType the dataType to set
*/
public void setDataType(String dataType) {
this.dataType = dataType;
}
/**
* @return the collation
*/
public String getCollation() {
return collation;
}
/**
* @param collation the collation to set
*/
public void setCollation(String collation) {
this.collation = collation;
}
/**
* @return the defaultValue
*/
public String getDefaultValue() {
return defaultValue;
}
/**
* @param defaultValue the defaultValue to set
*/
public void setDefaultValue(String defaultValue) {
this.defaultValue = defaultValue;
}
/**
* @return the comment
*/
public String getComment() {
return comment;
}
/**
* @param comment the comment to set
*/
public void setComment(String comment) {
this.comment = comment;
}
@Override
protected Object clone() throws CloneNotSupportedException {
return super.clone();
}
}