0

Copied over mysql adapter

This commit is contained in:
Pepich
2017-02-01 22:01:30 +01:00
parent ca61e9d418
commit 721acca534
35 changed files with 989 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
package com.redstoner.misc.mysql.elements;
import com.redstoner.misc.mysql.types.MysqlType;
public class MysqlField {
private String name;
private MysqlType type;
private boolean canBeNull;
public MysqlField(String name, MysqlType type, boolean canBeNull) {
this.name = name;
this.type = type;
this.canBeNull = canBeNull;
}
public MysqlField(String name, String type, boolean canBeNull) {
this.name = name;
this.type = MysqlType.getTypeFromString(type);
this.canBeNull = canBeNull;
}
public String getName() {
return name;
}
public MysqlType getType() {
return type;
}
public boolean canBeNull() {
return canBeNull;
}
}