Eclipse Tips: Template for iterating ResultSet

Those who works with Eclipse and JDBC can take a gross benefit from this little template.

Simply add the template. I use as name: ‘while’, context: ‘Java statement’, description: ‘iterate ResultSet’. You can certainly change them.

while (${en:var(java.sql.ResultSet)}.next()) {
	${cursor}
}

Related posts:

  1. My top Eclipse keyboard shortcut
  2. Eclipse Tips: Mark Occurrence
  3. Eclipse Tips: Renaming field and its setter/getter (Galileo)
  4. Eclipse Tips: Auto generate ‘final’ on your variable, field, and parameter
  5. Java Tips: Optimizing your Map loop

0 Responses to “Eclipse Tips: Template for iterating ResultSet”


  • No Comments

Leave a Reply