String pass = "<PASSWORD>";
String sqlSchema = "shp_convert";
String sqlTablePrefix = "shptest";
Connection conn = SQLUtils.getConnection(SQLUtils.getConnectString(dbms, ip, port, database, user, pass));
GeometryStreamConverter converter = new GeometryStreamConverter(new SQLGeometryStreamDestination(conn, sqlSchema, sqlTablePrefix, true));
for (String file : files)
SHPGeometryStreamUtils.convertShapefile(converter, file, attributes);
converter.flushAndCommitAll();
}