| Modifier and Type | Field and Description |
|---|---|
static String |
IGNORE
"ignore the association" - restriction.
|
| Constructor and Description |
|---|
RestrictionModel(DataModel dataModel,
ExecutionContext executionContext)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addRestriction(Table source,
Association association,
String condition,
String location,
boolean removePreviousRestriction,
Map<String,String> parameters)
Adds a restriction to a association.
|
void |
addRestriction(Table source,
Association association,
String condition,
String location,
Map<String,String> parameters)
Adds a restriction to a association.
|
void |
addRestrictionDefinition(URL extractionModelURL,
Map<String,String> parameters)
Adds restrictions defined in a restriction-file.
|
String |
getRestriction(Association association)
Gets the restriction (in SQL) for an association.
|
boolean |
isTransposed()
Is the restriction-model transposed?
|
String |
toString()
Stringifies the restriction model.
|
void |
transpose()
Transposes the restriction-model.
|
public static final String IGNORE
public RestrictionModel(DataModel dataModel, ExecutionContext executionContext)
dataModel - the data-modelpublic void transpose()
public boolean isTransposed()
public String getRestriction(Association association)
association - the associationnull if association is not restricted.
IGNORE if association must be ignored.public void addRestrictionDefinition(URL extractionModelURL, Map<String,String> parameters) throws Exception
parameters - apply this parameter-value mapping to all restriction conditionsExceptionpublic void addRestriction(Table source, Association association, String condition, String location, Map<String,String> parameters)
association - the associationcondition - the restriction-conditionparameters - apply this parameter-value mapping to all restriction conditionslocation - location in CSV-filepublic void addRestriction(Table source, Association association, String condition, String location, boolean removePreviousRestriction, Map<String,String> parameters)
association - the associationcondition - the restriction-conditionlocation - location in CSV-fileparameters - apply this parameter-value mapping to all restriction conditionsremovePreviousRestriction - if true, remove any restriction on the association before adding the new one