-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Submitting the current version: additional implementations of Oracle …
…classes (empty)
- Loading branch information
1 parent
2077eae
commit 2d8383a
Showing
33 changed files
with
340 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#Sat Apr 01 20:46:15 MSK 2017 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#Mon Mar 27 14:28:08 MSK 2017 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#Fri Mar 24 14:21:21 MSK 2017 | ||
gradle.version=3.4.1 |
2 changes: 2 additions & 0 deletions
2
build/resources/main/.gradle/buildOutputCleanup/cache.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#Tue Mar 28 13:08:49 MSK 2017 | ||
gradle.version=3.4.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# names of input tables | ||
input.files=test-input.xls,test-input1.xls | ||
|
||
# db implementation classes | ||
|
||
# postgres section | ||
# dbConnectionImplenentation=excel2db.service.impl.DBConnectionPostgresImpl | ||
# oracle section | ||
dbConnectionImplenentation=excel2db.service.impl.DBConnectionOracleImpl | ||
|
||
# postgres connection parameters | ||
db.server=localhost | ||
db.database=excel2db | ||
db.port=5433 | ||
db.user=postgres | ||
db.password=postgres | ||
|
3 changes: 0 additions & 3 deletions
3
common/src/main/java/com/ge/mdm/tools/common/ApplicationException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package excel2db; | ||
|
||
import org.springframework.beans.BeansException; | ||
import org.springframework.context.ApplicationContext; | ||
import org.springframework.context.ApplicationContextAware; | ||
|
||
public class ApplicationContextUtils implements ApplicationContextAware { | ||
|
||
private static ApplicationContext ctx; | ||
|
||
@Override | ||
public void setApplicationContext(ApplicationContext appContext) | ||
throws BeansException { | ||
ctx = appContext; | ||
|
||
} | ||
|
||
public static ApplicationContext getApplicationContext() { | ||
return ctx; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package excel2db; | ||
|
||
/** | ||
* Created by Andrey on 5/26/2017. | ||
*/ | ||
|
||
public class ApplicationException extends Exception { | ||
static final long serialVersionUID = 1L; | ||
|
||
public ApplicationException() { | ||
super(); | ||
} | ||
|
||
public ApplicationException(String message) { | ||
super(message); | ||
} | ||
|
||
public ApplicationException(String message, Throwable cause) { | ||
super(message, cause); | ||
} | ||
|
||
public ApplicationException(Throwable cause) { | ||
super(cause); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
src/main/java/excel2db/service/impl/CreateTableOracleImpl.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package excel2db.service.impl; | ||
|
||
import java.sql.SQLException; | ||
import excel2db.service.CreateTable; | ||
import org.apache.poi.ss.usermodel.Sheet; | ||
import org.slf4j.Logger; | ||
import org.slf4j.LoggerFactory; | ||
|
||
public class CreateTableOracleImpl implements CreateTable { | ||
|
||
public static final Logger logger = LoggerFactory.getLogger(CreateTableOracleImpl.class); | ||
|
||
public void createTable(Sheet sheet, String tableName) throws SQLException { | ||
|
||
logger.info("Create table method : Oracle implementation is not covered yet"); | ||
|
||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.