params.put(PostgisDataStoreFactory.USER.key, user);
params.put(PostgisDataStoreFactory.PASSWD.key, passwd);
params.put(PostgisDataStoreFactory.DATABASE.key, database);
params.put(PostgisDataStoreFactory.SCHEMA.key, schema);
PostgisDataStoreFactory dsFactory = new PostgisDataStoreFactory();
DataStore ds = dsFactory.createDataStore(params);
return ds;
}
public static DataStore getDataStoreFromMySQL(String host, int port,
String user, String passwd, String database) throws Exception {