You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
package xyz.wbsite.dbtool.javafx.po;
|
|
|
|
|
|
|
|
import xyz.wbsite.dbtool.javafx.enums.DataBase;
|
|
|
|
import xyz.wbsite.dbtool.javafx.enums.FieldType;
|
|
|
|
|
|
|
|
public abstract class AbstractDBmapper {
|
|
|
|
DataBase mDataBase = null;
|
|
|
|
|
|
|
|
private AbstractDBmapper(){
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
public AbstractDBmapper(DataBase mDataBase) {
|
|
|
|
this.mDataBase = mDataBase;
|
|
|
|
}
|
|
|
|
|
|
|
|
DataBase getDataBase(){
|
|
|
|
return mDataBase;
|
|
|
|
}
|
|
|
|
|
|
|
|
public abstract String getDataBaseType(FieldType type);
|
|
|
|
abstract String getFieldSql(Field field);
|
|
|
|
public abstract FieldType getType(String type, int lenght, int precision, int scale);
|
|
|
|
}
|