DurchflusstabelleFactory - GroovyClassLoader-Demo





ranking Sort Sort   |   date Sort Sort   |   member Sort Sort
Syndication

« Previous 1 2 3 4 5 6 7 8 9 Next »
-9
Date Submitted Wed. Oct. 11th, 2006 6:57 AM
Revision 1
Beginner toriwells
Tags criptography | divertimento | Java
Comments 1 comments
Classe que donada una frase té com a sortida la mateixa frase però havent-li aplicat la xifra del cèsar (per defecte amb valor 3).
-8
Date Submitted Wed. Oct. 11th, 2006 7:04 AM
Revision 1
Beginner toriwells
Tags criptography | divertimento | Java
Comments 1 comments
Classe que pren una frase i una clau i obté com a sortida el missatge encriptat usant l'algorisme de Vigenère.
-5
Date Submitted Wed. May. 31st, 2006 3:19 AM
Revision 2
Beginner fazen
Tags Image | Java | servlet | Stream
Comments 1 comments
Servlet returning an image.
-3
Date Submitted Thu. Feb. 23rd, 2006 9:57 AM
Revision 3
Helper jpinkham
Tags Java | JDBC | lightweight | orm | SQL
Comments 1 comments
I actually like SQL. So, things like Hibernate with it's own query language don't quite fit my style. But, I don't want to code the same catch SQLException conn.close over and over either. So, I came up with this.

The idea is you extend SQLCommand (usually anonymously) override getSql(), and call execute() to get a list of whatever objects you are selecting - all the cleanup stuff is taken care of. It also handles nullable attributes more intuitively using ResultSetWrapper and PreparedStatementWrapper so that in your overridden getRow(ResultSetWrapper rs) method, you can call getInt on a nullable column and have it return null - what a concept! Also I like java.util.Date for my dates, so the wrappers convert to/from java.sql.Timestamp.

Right now I've only bothered with some basic types - it should be pretty clear how to add more if you need em.

See what ya'll think.

Oh, it uses JDK 1.5 Generics, but stripping that away would be pretty easy if you wanted 1.2 compliance.
1
Date Submitted Sun. Mar. 4th, 2007 12:53 PM
Revision 1
Helper BerndSchiffer
Tags dsl | groovy | properties
Comments 0 comments
This is an example from practice. The domain is a whater flow messure system. I wrote a blog entry where I fully described the evolution of this class - in german.
1
Date Submitted Fri. Apr. 13th, 2007 11:50 AM
Revision 1
Helper BerndSchiffer
Tags conway | groovy
Comments 0 comments
Conway's Game of Life - a solution for GroovyQuiz.com. You can download all of the sources and an executable jar.
1
Date Submitted Fri. Jan. 4th, 2008 4:47 PM
Revision 1
Helper BerndSchiffer
Tags groovy
Comments 0 comments
WeatherMunger Kata 1 (not DRY)
1
Date Submitted Fri. Jan. 4th, 2008 4:49 PM
Revision 1
Helper BerndSchiffer
Tags groovy
Comments 0 comments
WeatherMunger Kata 1 (not DRY)
1
Date Submitted Fri. Jan. 4th, 2008 5:15 PM
Revision 1
Helper BerndSchiffer
Tags groovy
Comments 0 comments
WeatherMunger Kata 2 (DRY)
1
Date Submitted Fri. Jan. 4th, 2008 5:16 PM
Revision 1
Helper BerndSchiffer
Tags groovy
Comments 0 comments
WeatherMunger Kata 3 (String.format-DRY)
« Previous 1 2 3 4 5 6 7 8 9 Next »