code: public static void importShapefileThroughVirtualTable( final ASpatialDb db, final String tableName, final String shpPath,
              final String encoding, final int srid, final ESpatialiteGeometryType geometryType ) throws Exception {
  
          HMTransactionExecuter transactionExecuter = new HMTransactionExecuter(db){
              @Override
              public void executeInTransaction(IHMConnection conn) {
                  try {
                      ImportExportUtils.executeShapefileImportQueries(db, tableName, shpPath, encoding, srid, geometryType);
                  } catch (Exception e) {
                      e.printStackTrace();
                  }
              }
          };
          transactionExecuter.execute();
      }
docs: Import a shapefile into the database using a temporary virtual table.
  
  @param db the database.
  @param tableName the name for the new table.
  @param shpPath the shp to import.
  @param encoding the encoding. If <code>null</code>, UTF-8 is used.
  @param srid the epsg code for the file.
  @param geometryType the geometry type of the file.
  @throws Exception