Package com.almis.awe.tools.service
Class SqlExtractorService
java.lang.Object
com.almis.awe.config.ServiceConfig
com.almis.awe.tools.service.SqlExtractorService
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
Sql Extractor Engine service
-
Constructor Summary
ConstructorDescriptionSqlExtractorService
(DataListBuilder builder, DataSource dataSource) Autowired constructor -
Method Summary
Modifier and TypeMethodDescriptionCheck file existsDelete columns from gridextractData
(String select, String type) Extract dataGet existing select filesloadSelectSentence
(String fileName) Save select filesaveSelectFile
(String fileName, String selects) Save select fileMethods inherited from class com.almis.awe.config.ServiceConfig
containsBean, getApplicationContext, getBean, getBean, getElements, getLocale, getLocale, getProperty, getProperty, getRequest, getSession, setApplicationContext
-
Constructor Details
-
SqlExtractorService
Autowired constructor- Parameters:
builder
-dataSource
-
-
-
Method Details
-
extractData
Extract data- Parameters:
select
- Selecttype
- Data type- Returns:
- Extracted data
- Throws:
AWException
- Error in extraction
-
getSelectFile
Get existing select files- Returns:
- Selected file
- Throws:
AWException
- Error retrieving file
-
loadSelectSentence
Save select file- Parameters:
fileName
- File name- Returns:
- Selected sentence
- Throws:
AWException
- Error loading sentenceIOException
- Error retrieving file
-
saveSelectFile
Save select file- Parameters:
fileName
- File nameselects
- Select- Returns:
- Selected file
- Throws:
AWException
- Error storing file
-
checkFile
Check file exists- Parameters:
fileName
- File name- Returns:
- Check
-
deleteColumns
Delete columns from grid- Returns:
- clientActionList
-