Package com.groiss.fileimport
Class ImportContext
java.lang.Object
com.groiss.fileimport.ImportContext
Holds settings of the current import-process.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
-
Constructor Summary
ConstructorDescriptionImportContext
(int mode, StructuredFileSettings settings, Class<? extends Persistent> targetClass, String keyField) Constructor is called by file-importer. -
Method Summary
Modifier and TypeMethodDescriptiongetFile()
returns the file to be loadedint
returns the import-modereturns the keyfield used to check for duplicatesClass<? extends Persistent>
returns theClass
to be instantiated
-
Field Details
-
INSERT
public static final int INSERT- See Also:
-
PARSE
public static final int PARSE- See Also:
-
PARSE_AND_LOAD
public static final int PARSE_AND_LOAD- See Also:
-
-
Constructor Details
-
ImportContext
public ImportContext(int mode, StructuredFileSettings settings, Class<? extends Persistent> targetClass, String keyField) Constructor is called by file-importer.
-
-
Method Details
-
getImportMode
public int getImportMode()returns the import-mode- Returns:
- see
INSERT
,PARSE
,PARSE_AND_LOAD
-
getFile
returns the file to be loaded- Returns:
-
getTargetClass
returns theClass
to be instantiated- Returns:
-
getKeyField
returns the keyfield used to check for duplicates- Returns:
-