JDBC Row Count

Development/Java 2008. 11. 28. 10:45

출처: http://java.sun.com/products/jdbc/reference/faqs/index.html

18. There is a method getColumnCount in the JDBC API. Is there a similar method to find the number of rows in a result set?

No, but it is easy to find the number of rows. If you are using a scrollable result set, rs, you can call the methods rs.last and then rs.getRow to find out how many rows rs has. If the result is not scrollable, you can either count the rows by iterating through the result set or get the number of rows by submitting a query with a COUNT column in the SELECT clause.

Posted by zennken

Eclipse에서는 Data Tools 1.6.1을 설치하기 위한 requirements를 Eclipse 3.3.2 SDK, EMF 2.2.2 (EMF + SDO) and GEF 3.3 가지로 규정하고 있다.

근데, 아무리 설치해도 Preference에서 Data Management 메뉴와 Connectivity, SQL Development view가 안 뜬다...--;;

2% 부족한 부분은 Graphical Modeling Framework (GMF)였다. GMF Runtim과 SDK를 설치해주니까 제대로 뜬다...
Posted by zennken

Application의 About을 눌렀을 때 aboutText 대신 %aboutText가 나타날 때

1. xxx.product 파일의 Branding-About Dialog-Text에 %aboutText가 써 있는가?
2. plugin.properties파일이 프로젝트의 root에 존재하고 내용은  aboutText=xxxx로 시작하는가?
3. Run As-Open Run Dialog-Configuration에서 Clear configurtion area before lauching이 체크 되어 있는가?
3. plugin.xml의 MANIFEST.MF에 Bundle-Localization: plugin이 존재하는가?
Posted by zennken

zennken

달력