[Pride-users] Questions from a new user
Brought to you by:
jlessner
|
From: Anders P. <and...@op...> - 2005-08-07 15:31:51
|
Hi, I'm just starting to use PriDE, and have a few questions and comments. What is required to get support for Sybase ASA? What exactly does it mean that you support a specific database? I managed to get things working (what I've seen so far) by setting dbtype to SQLSERVER. (Sybase ASA has been meade largely compatible with ASE, and MS SQL Server is based on an early version of ASE.) One thing that could be improved in the documentation is how to set up the database connection. Explicitly stating which properties to set would help. I have it working so obviously it could be deduced from reading the docs and/or the code, but it can be made easier. For any new users raeding the list archices; these are my VM arguments: -Dpride.driver="com.sybase.jdbc2.jdbc.SybDriver" -Dpride.url="jdbc:sybase:Tds:qs01:2638?ServiceName=GenOLFData" -Dpride.user="dba" -Dpride.password="sql" -Dpride.dbtype="sqlserver" Code examples in the docs use pride.db instead of pride.url. I think "url" is a better name than "db", and since I had to write the code accessing that property myself anyway... Regarding the convenience classes DatabaseAdapter, DatabaseRecord, ObjectAdapter, MappedObject and ValueObjectAdapter as well as the eclipse plugin: 1) You're giving us too much convenience. ;-) 2) Most methods in DatabaseAdapter are declared "protected static". Isn't that an odd combination? Why not make them "public static" and reference them statically. 3) The eclipse plugin should generate classes with two "public static final" attributes called DESCRIPTOR and KEY_FIELDS. In the Database class I'm missing a method: fetchRecord(String[] dbkeyfields, Object obj, RecordDescriptor red) Having it would make that class more complete/consistent. Hope you don't think I'm complaining, and thanks for making PriDE open source. /Anders |