Interface EntityImportDataSource<T extends PersistenceEntity>
-
- Type Parameters:
T- entity type
- All Known Implementing Classes:
EntityFileDataSource,FileUploadDataSource
public interface EntityImportDataSource<T extends PersistenceEntity>EntityImportDataSource: data source for entity import.- Since:
- 3.7
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanexists()Does the dataSource exist and have data to import?java.lang.Class<T>getEntityType()Get the type of entities to importjava.io.InputStreamgetInputStream()Get the input stream for reading the dataSourcejava.lang.StringgetModule()Get the module that imports entities from this dataSourcejava.lang.StringgetName()Get dataSource name for displayvoidsetModule(java.lang.String module)Set the module that imports entities from the dataSource
-
-
-
Method Detail
-
getName
java.lang.String getName()
Get dataSource name for display- Returns:
- localized name
-
getModule
java.lang.String getModule()
Get the module that imports entities from this dataSource- Returns:
- module name
-
setModule
void setModule(java.lang.String module)
Set the module that imports entities from the dataSource- Parameters:
module- module name
-
getEntityType
java.lang.Class<T> getEntityType()
Get the type of entities to import- Returns:
- entity type
- Since:
- 5.13
-
getInputStream
java.io.InputStream getInputStream() throws java.io.IOExceptionGet the input stream for reading the dataSource- Returns:
- input stream
- Throws:
java.io.IOException- throw if an I/O error occurs
-
exists
boolean exists()
Does the dataSource exist and have data to import?- Returns:
- true if it exists, false otherwise
- Since:
- 5.4
-
-