32 lines
1,011 B
Java
32 lines
1,011 B
Java
import com.ablia.anag.AbiCab;
|
|
import com.ablia.db.ApplParm;
|
|
import com.ablia.db.ApplParmFull;
|
|
import com.ablia.db.ResParm;
|
|
import com.ablia.util.DbConsole;
|
|
|
|
public class AggAbiCab extends DbConsole {
|
|
public static void main(String[] args) {
|
|
AggAbiCab bean = new AggAbiCab();
|
|
bean.doImport();
|
|
System.exit(0);
|
|
}
|
|
|
|
public void doImport() {
|
|
String db = "ctexpress";
|
|
int i = 0;
|
|
int se1 = 10;
|
|
int se2 = 100;
|
|
String hostname = "localhost";
|
|
String temp = getCi().readLine("Hostname (" + hostname + "):");
|
|
if (!temp.isEmpty())
|
|
hostname = temp;
|
|
temp = getCi().readLine("Database name (" + db + "):");
|
|
if (!temp.isEmpty())
|
|
db = temp;
|
|
System.out.println("Db: " + db);
|
|
ApplParmFull apTarget = new ApplParmFull(new ApplParm(3, "//" + hostname + "/" + db, "root", "root", 1, 10, 300));
|
|
apTarget.setDebug(false);
|
|
ResParm rp = new AbiCab(apTarget).importAbiCab("/Users/acolzi/Downloads/banche.csv");
|
|
System.out.println(rp.getMsg());
|
|
}
|
|
}
|