public class ExtractionModel
extends java.lang.Object
RestrictionModel
of an extraction.Modifier and Type | Class and Description |
---|---|
static class |
ExtractionModel.AdditionalSubject
Additional Subject.
|
static class |
ExtractionModel.IncompatibleModelException |
Modifier and Type | Field and Description |
---|---|
java.util.List<ExtractionModel.AdditionalSubject> |
additionalSubjects
Additional Subjects.
|
DataModel |
dataModel
The restricted data-model to be used for extraction.
|
Table |
subject
The table to read from.
|
SubjectLimitDefinition |
subjectLimitDefinition
Subject Limit Definition
|
int[] |
version
Version.
|
Constructor and Description |
---|
ExtractionModel(DataModel dataModel,
ExecutionContext executionContext)
Constructor for empty restriction models.
|
ExtractionModel(java.lang.String fileName,
java.util.Map<java.lang.String,java.lang.String> sourceSchemaMapping,
java.util.Map<java.lang.String,java.lang.String> parameters,
ExecutionContext executionContext)
Constructor.
|
ExtractionModel(java.net.URL modelURL,
java.util.Map<java.lang.String,java.lang.String> sourceSchemaMapping,
java.util.Map<java.lang.String,java.lang.String> parameters,
ExecutionContext executionContext,
boolean failOnMissingSubject)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCondition() |
java.lang.String |
getSubjectTableName() |
static java.lang.String |
loadDatamodelFolder(java.lang.String fileName,
ExecutionContext executionContext) |
public final Table subject
public SubjectLimitDefinition subjectLimitDefinition
public java.util.List<ExtractionModel.AdditionalSubject> additionalSubjects
public final DataModel dataModel
public final int[] version
public ExtractionModel(DataModel dataModel, ExecutionContext executionContext)
dataModel
- the data model to restrictpublic ExtractionModel(java.lang.String fileName, java.util.Map<java.lang.String,java.lang.String> sourceSchemaMapping, java.util.Map<java.lang.String,java.lang.String> parameters, ExecutionContext executionContext) throws java.io.IOException
fileName
- the name of the model-fileparameters
- apply this parameter-value mapping to all restriction conditions, XML templates and filtersjava.io.IOException
public ExtractionModel(java.net.URL modelURL, java.util.Map<java.lang.String,java.lang.String> sourceSchemaMapping, java.util.Map<java.lang.String,java.lang.String> parameters, ExecutionContext executionContext, boolean failOnMissingSubject) throws java.io.IOException
modelURL
- the URL of the model-fileparameters
- apply this parameter-value mapping to all restriction conditions, XML templates and filtersjava.io.IOException
public static java.lang.String loadDatamodelFolder(java.lang.String fileName, ExecutionContext executionContext) throws java.io.IOException
java.io.IOException
public java.lang.String getCondition()
public java.lang.String getSubjectTableName()