public interface Layer extends Comparable<Layer>
Modifier and Type | Field and Description |
---|---|
static String[] |
JDBC_PARAMETERS
JDBC parameters used in the database layer.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Removes all layer parameters.
|
Layer |
getLayerByClassName(String className)
Return the layer from type
className . |
Layer |
getLayerById(String id)
Return the layer with the given
id see Layer.getId() . |
Object[] |
getLayerIds()
Return an array of all available layer ids in the system (array elements are of type
java.lang.String ). |
String |
getName()
Returns the name of the database layer.
|
String |
getParameter(String name)
Returns the value of a specific parameter.
|
List<String> |
getParameterNames()
Returns a list of the layer parameter names.
|
Map<String,String> |
getParameters()
Returns a map of all layer parameters.
|
String |
getSchema()
Return the database schema name defined for this layer.
|
boolean |
isDbaLayer()
A DBA (database administration) layer is a layer which creates a db-schema in the database for each
FirstSpirit schema . |
void |
removeParameter(String name)
Removes the specified layer parameter.
|
void |
setParameter(String name,
String value)
Setter for layer parameter.
|
compareTo
static final String[] JDBC_PARAMETERS
String getName()
List<String> getParameterNames()
String getParameter(String name)
name
- the name of the parameter to get the value from.void setParameter(String name, String value)
name
- the name of the new parameter.value
- the value of the new parameter.void clear()
void removeParameter(String name)
name
- the name of the parameter to remove.Map<String,String> getParameters()
Layer getLayerByClassName(String className)
className
.Object[] getLayerIds()
java.lang.String
).@Nullable String getSchema()
DBA layer
has no database
schema name asseigned.isDbaLayer()
boolean isDbaLayer()
FirstSpirit schema
.
A layer which is no DBA layer could be used only once in write mode - violations are configuration
failures and can lead to unexpected behaviour.true
if this schema is a database administration layer.getSchema()
Copyright © 2021 e-Spirit AG. All Rights Reserved. Build 5.2.210210