Class FoodmartHsqldb
- java.lang.Object
-
- net.hydromatic.foodmart.data.hsqldb.FoodmartHsqldb
-
public class FoodmartHsqldb extends Object
Foodmart data set in hsqldb format.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceFoodmartHsqldb.TableConsumerConsumer interface for processing table metadata.
-
Constructor Summary
Constructors Constructor Description FoodmartHsqldb()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidforEachTable(FoodmartHsqldb.TableConsumer consumer)Invokes the consumer for each table in the Foodmart schema.static Iterable<String>generateInserts()Returns the INSERT statements for all Foodmart schema data.static List<String>tableNames()Returns the list of table names in the Foodmart schema.static StringtableUri(String tableName)Converts a table name to a CSV file URI relative to the jar file root.
-
-
-
Field Detail
-
URI
public static final String URI
URI of the hsqldb database.- See Also:
- Constant Field Values
-
USER
public static final String USER
- See Also:
- Constant Field Values
-
PASSWORD
public static final String PASSWORD
- See Also:
- Constant Field Values
-
-
Method Detail
-
forEachTable
public static void forEachTable(FoodmartHsqldb.TableConsumer consumer)
Invokes the consumer for each table in the Foodmart schema.- Parameters:
consumer- Consumer to invoke for each table with its name and quoted column names
-
tableNames
public static List<String> tableNames()
Returns the list of table names in the Foodmart schema.
-
tableUri
public static String tableUri(String tableName)
Converts a table name to a CSV file URI relative to the jar file root.For example,
tableUri("customer")returns"/csv/customer.csv".
-
-