public class StoreFactory extends Object
Constructor and Description |
---|
StoreFactory() |
Modifier and Type | Method and Description |
---|---|
static Store |
create(LayoutType layout,
DatabaseType dbType)
Create a store, based on the store description.
|
static Store |
create(SDBConnection sdb,
LayoutType layout,
DatabaseType dbType)
Create a store, based on connection, layout type and database type.
|
static Store |
create(StoreDesc desc)
Create a store, based on the store description.
|
static Store |
create(StoreDesc desc,
SDBConnection sdb)
Create a store, based on the store description and connection.
|
static Store |
create(String filename)
Create a store, based on the store description and
connection information read from the file.
|
static void |
register(DatabaseType dbType,
LayoutType layoutType,
StoreMaker factory)
Register a new store maker for a given database/layout pair.
|
public static Store create(String filename)
filename
- public static Store create(SDBConnection sdb, LayoutType layout, DatabaseType dbType)
sdb
- layout
- dbType
- public static Store create(LayoutType layout, DatabaseType dbType)
public static Store create(StoreDesc desc)
public static Store create(StoreDesc desc, SDBConnection sdb)
public static void register(DatabaseType dbType, LayoutType layoutType, StoreMaker factory)
Licenced under the Apache License, Version 2.0