All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.querydsl.sql.ddl.ColumnData Maven / Gradle / Ivy

There is a newer version: 6.9
Show newest version
/*
 * Copyright (c) 2010 Mysema Ltd.
 * All rights reserved.
 *
 */
package com.querydsl.sql.ddl;

/**
 * @author tiwe
 */
public class ColumnData {

  private final String name;

  private final String type;

  private boolean nullAllowed = true;

  private boolean autoIncrement;

  private Integer size;

  public ColumnData(String name, String type) {
    this.name = name;
    this.type = type;
  }

  public String getName() {
    return name;
  }

  public String getType() {
    return type;
  }

  public boolean isNullAllowed() {
    return nullAllowed;
  }

  public void setNullAllowed(boolean nullAllowed) {
    this.nullAllowed = nullAllowed;
  }

  public void setSize(Integer size) {
    this.size = size;
  }

  public Integer getSize() {
    return size;
  }

  public boolean isAutoIncrement() {
    return autoIncrement;
  }

  public void setAutoIncrement(boolean autoIncrement) {
    this.autoIncrement = autoIncrement;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy