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.
26 lines
684 B
26 lines
684 B
6 years ago
|
package xyz.wbsite.dbtool.javafx.po;
|
||
|
|
||
|
import xyz.wbsite.dbtool.javafx.enumeration.DataBase;
|
||
|
import xyz.wbsite.dbtool.javafx.enumeration.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,int lenght);
|
||
|
public abstract String getDataBaseType(FieldType type);
|
||
|
abstract String getFieldSql(Field field);
|
||
|
public abstract FieldType getType(String type, int lenght, int precision, int scale);
|
||
|
}
|