public class InstallationPackageLoader extends DataLoader<InstallationPackage>
InstallationPackageLoader is DataLoader that creates and persists installation packages
from DSRecord data.createRows, createRowsTest, dataRows, deleteRows, deleteRowsTest, report, stopLoad, test, updateRows, updateRowsTest| Constructor and Description |
|---|
InstallationPackageLoader() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
areCableClassesValid(String cableClasses) |
protected Set<String> |
getCableClassesAsSet(String cableClasses) |
LoaderResult<InstallationPackage> |
load(InputStream stream,
boolean test)
Loads all the records from the stream and processes them.
|
void |
updateRecord(DSRecord record)
Processes the record.
|
getColumnLabel, getErrorMessage, getErrorMessage, load, updateRecordList, validateStringSizepublic LoaderResult<InstallationPackage> load(InputStream stream, boolean test)
DataLoaderload in class DataLoader<InstallationPackage>stream - the stream to read data fromtest - if true, only a test whether the load would succeed is performed, and no data is imported to the
database.public void updateRecord(DSRecord record)
DataLoaderupdateRecord in class DataLoader<InstallationPackage>record - the record to processprotected boolean areCableClassesValid(String cableClasses)
Copyright © 2025 European Spallation Source. All rights reserved.