2018-04-01から1ヶ月間の記事一覧

<java>save pdf in postgres and get sample

package homeWork; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; imp…

normal way to save dbdata in files

package homeWork;import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement;import or…

dbunit + postgresql

package homeWorkTest;import static org.junit.Assert.*;import org.junit.Test; import java.io.FileOutputStream; import org.dbunit.JdbcDatabaseTester; import org.dbunit.database.DatabaseConfig; import org.dbunit.database.IDatabaseConnection; …

java : reduce stream of list of maps

package homeWork;import java.math.BigDecimal; import java.util.ArrayList; import java.util.Comparator; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.stream.Collectors;public class sumSample { publi…