public class DatasourceInheritanceHelper extends Object
Constructor and Description |
---|
DatasourceInheritanceHelper() |
Modifier and Type | Method and Description |
---|---|
static String |
getAncestorId(String datasourceId)
returns the part of the datasource id of a datatsource for inheritance which indicates the id of the ancestor
datasource
|
static String |
getDescendantId(String datasourceId)
returns the part of the datasource id of a datatsource for inheritance which indicates the final id of the
descendant
|
static Datasource |
inherit(Datasource descendantDefinition,
Datasource ancestor,
MarshallService marshallService)
clones the ancestor datasource and adds or overrides id, title, parameter, fields, bean options, bean id, bind
class and linkpanel.
|
static boolean |
isInheriting(String datasourceId)
Returns
true if the id contains exactly one inheritance separator string "::" |
public static boolean isInheriting(String datasourceId)
true
if the id contains exactly one inheritance separator string "::"datasourceId
- true
if the id contains an inheritance separator stringpublic static String getDescendantId(String datasourceId)
datasourceId
- public static String getAncestorId(String datasourceId)
datasourceId
- public static Datasource inherit(Datasource descendantDefinition, Datasource ancestor, MarshallService marshallService)
descendantDefinition
- ancestor
- Datasource
Copyright © 2011–2023 aiticon GmbH. All rights reserved.