class DatabaseStyleRepository extends java.lang.Object implements StyleRepository
A StyleRepository that stores styles in a database table called layer_styles. H2, Postgres and SQLite are supported.
Type Params | Return Type | Name and description |
---|---|---|
|
void |
delete(java.lang.String layerName, java.lang.String styleName) |
|
static DatabaseStyleRepository |
forH2(Sql sql) |
|
static DatabaseStyleRepository |
forPostgres(Sql sql) |
|
static DatabaseStyleRepository |
forSqlite(Sql sql) |
|
java.util.List<java.util.Map<java.lang.String, java.lang.String>> |
getAll() |
|
java.lang.String |
getDefaultForLayer(java.lang.String layerName) |
|
java.lang.String |
getForLayer(java.lang.String layerName, java.lang.String styleName) |
|
java.util.List<java.util.Map<java.lang.String, java.lang.String>> |
getForLayer(java.lang.String layerName) |
|
void |
save(java.lang.String layerName, java.lang.String styleName, java.lang.String style, Map options) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |