Re: Split build dataset/session/examples
Franck Routier <[email protected]>
| Newsgroups | gmane.comp.java.orm.simpleorm |
|---|---|
| Message-ID | <1216998763.5544.37.camel@franck-laptop> |
Hi Anthony,
the last thing that puzzles me is I'd rather have a better decoupling
between SSession and SSessionDatabase.
Ideally, SSession should be persistence-agnostic, and SSessionDatabase
provide the logic to do jdbc.
Put it other way, maybe we could make ISSession an interface, put here
the methods any SSession should implement, and let SSession(Database) be
the jdbc implementation.
Or maybe we could rename simpleorm.session to simpleorm.database (or
jdbc).
This would give a ground for future extensions, like offline dataset
queries and so on.
I'm not saying we should implement any of these now. I adhere to the
objective of having a working Sorm3 soon. But breaking the API must be
the occasion the prepare the future...
I think this would only mean making the API contract clear by specifying
what is in the ISSession interface and what is not.
For example:
public Connection getJdbcConnection() { return jdbcConnection;}
is convinient for benchmarks, but we should make clear it is not in the
interface. Same for getDriver(), and maybe others ?
What do you think ? Should we clearly state what is in the contract of a
session, and what is not ? And let user know simpleorm.session.SSession
is actualy a jdbc implementation of a session, so rename it or rename
the whole package to simpeorm.database ?
I hope this makes sense.
Franck
Le jeudi 24 juillet 2008 à 17:49 +1000, Anthony Berglas a écrit :
> I have (finally) split the build into three separate compiles. This
> means that any reference from dataset to session will simply not
> compile.
>
> I had to move SGenerator* to SSession, and introduce
> SGeneratorMode. SGenerator could be reexamined in general.
>
> Moved a lot of files around with svn. There are now three top level
> source folders: dataset, session and examples.
>
> Two jars are built, simpleorm-dataset.jar and simpleorm-session.jar.
>
> There are still some foggy public methods in dataset. But it is
> looking quite good.
>
> Opinions welcome.
>
> Anthony
>
> Dr Anthony Berglas, [email protected] Mobile: +61 4 4838 8874
> Just because it is possible to push twigs along the ground with ones
> nose
> does not necessarily mean that is the best way to collect firewood.
>
>
>
>
>
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/SimpleORM/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/SimpleORM/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[email protected]
mailto:[email protected]
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/