소스 검색

add table debug methods


git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@89 f203690c-595d-4dc9-a70b-905162fa7fd2
tags/rel_1_1_6
James Ahlborn 18 년 전
부모
커밋
7bb505d7ea
1개의 변경된 파일17개의 추가작업 그리고 0개의 파일을 삭제
  1. 17
    0
      test/src/java/com/healthmarketscience/jackcess/DatabaseTest.java

+ 17
- 0
test/src/java/com/healthmarketscience/jackcess/DatabaseTest.java 파일 보기

@@ -491,5 +491,22 @@ public class DatabaseTest extends TestCase {
columns.add(col);
db.createTable("test", columns);
}

private static void dumpDatabase(Database mdb) throws Exception {
System.out.println("DATABASE:");

for(String tableName : mdb.getTableNames()) {
dumpTable(mdb.getTable(tableName));
}
}

private static void dumpTable(Table table) throws Exception {
System.out.println("TABLE: " + table.getName());
table.reset();
Object row = null;
while((row = table.getNextRow()) != null) {
System.out.println(row);
}
}
}

Loading…
취소
저장