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

kz.greetgo.security.crypto.jdbc.create_table.CreatingField Maven / Gradle / Ivy

There is a newer version: 0.0.12
Show newest version
package kz.greetgo.security.crypto.jdbc.create_table;

public class CreatingField {
  public final String name;
  public FieldType type;
  public int length;
  public boolean primaryKey;
  public boolean notNull = false;

  public CreatingField(String name) {
    this.name = name;
  }

  public CreatingField typeString(int length) {
    type = FieldType.Str;
    this.length = length;
    return this;
  }

  public CreatingField primaryKey() {
    primaryKey = true;
    return this;
  }

  public CreatingField typeBlob() {
    type = FieldType.Blob;
    return this;
  }

  public CreatingField notNull() {
    notNull = true;
    return this;
  }

  public CreatingField setNotNull(boolean notNull) {
    this.notNull = notNull;
    return this;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy