0
This repository has been archived on 2024-08-27. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
ModuleLoader/src/com/redstoner/misc/mysql/elements/MysqlField.java
2017-02-01 22:01:30 +01:00

34 lines
663 B
Java

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;
}
}