-
-
Save siritori/59d809a29a01b2873e1a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
public class ProductMain { | |
public boolean executeMain(ResourceHolder resourceholder) { | |
Log log = BCLogFactory.getLog(ProductMain.class); | |
CommonPrinter commonPrinter = null; | |
Statement statement = null; | |
ResultSet resultSet = null; | |
try { | |
String outputileName = resourceHolder.getOutputFileName(); | |
commonPrinter = new CommonPrinter(outputFileName, "UTF-8"); | |
Connection connection = resourceHolder.getConnection(); | |
statement = connection.createStatement(); | |
resultSet = statement.executeQuery("Select SYA_NM From syainjhsample "); | |
while(resultSet.next()){ | |
String syaNm = resultSet.getString(1); | |
commonPrinter.writeLine(syaNm); | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment