Skip to content
Snippets Groups Projects
Commit c214b398 authored by Raphael GIRARDOT's avatar Raphael GIRARDOT
Browse files

- some code refactoring

- respect java standards
- No more use of DbData.splitDbData: directly return the expected data array at extraction (TANGOARCH-715)
parent b71b397e
No related branches found
No related tags found
No related merge requests found
<?xml version="1.0" encoding="UTF-8"?>
<project
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
......
/* Synchrotron Soleil
/*
* Synchrotron Soleil
*
* File : IConverter.java
*
......@@ -27,6 +28,7 @@ package fr.soleil.archiving.snap.api.extractor.convert;
import fr.esrf.Tango.DevFailed;
import fr.soleil.archiving.common.api.tools.DbData;
import fr.soleil.archiving.snap.api.tools.SnapAttributeExtract;
import fr.soleil.database.DBExtractionConst;
/**
* Converts data from the format returned by the Database API to a format usable
......@@ -34,14 +36,15 @@ import fr.soleil.archiving.snap.api.tools.SnapAttributeExtract;
*
* @author CLAISSE
*/
public interface IConverter {
public interface IConverter extends DBExtractionConst {
/**
* @param currentExtract
* The data in its Database API format
* @return The data in its usable format
* @throws DevFailed
*/
public DbData convert(SnapAttributeExtract currentExtract) throws DevFailed;
public DbData[] convert(SnapAttributeExtract currentExtract) throws DevFailed;
/**
* Converts raw array input to a more palatable String[] output
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment