Greetings, Yes, I would like to know about this as well. I have even posted my source here, hoping it to be commited to the cvs, but there is no response and feedback. I am not asking for any permission to make the changes to the cvs. I just want to contribute my idea and source here, asking for some feedbacks to know where I can improve further. If my idea and source are agreed and accepted, then definitely I hope someone with the priviledge can assist in commiting the changes to the cvs for others' benefit.
Thanks. Chiu Yee Weay Systems Engineer Paradigm Systems Sdn Bhd Quoting vijaykumar kumar <[EMAIL PROTECTED]>: > Hi, > I need to add some funtionality to Criteria.java, > how can i add them and update in cvs..let me know > complete process. > > Thanks, > Vijay Kumar > > > > > --- [EMAIL PROTECTED] wrote: > > mpoeschl 2003/11/16 12:16:55 > > > > Modified: > > > src/generator/src/java/org/apache/torque/engine/platform > > PlatformPostgresqlImpl.java > > PlatformHypersonicImpl.java > > PlatformMysqlImpl.java > > PlatformAxionImpl.java > > PlatformMssqlImpl.java > > PlatformDb2Impl.java > > PlatformDefaultImpl.java > > Platform.java > > PlatformSapdbImpl.java > > PlatformInterbaseImpl.java > > PlatformOracleImpl.java > > PlatformCloudscapeImpl.java > > PlatformMsaccessImpl.java > > PlatformSybaseImpl.java > > PlatformDb2400Impl.java > > > > > src/generator/src/java/org/apache/torque/engine/database/model > > Domain.java Column.java > > > > > src/generator/src/test/org/apache/torque/engine/database/model > > DomainTest.java > > Added: > > > src/generator/src/test/org/apache/torque/engine/platform > > PlatformMysqlImplTest.java > > Log: > > extend Platform (add getDomainForSchemaType()) > > this will replace the db.props soon ... > > > > Revision Changes Path > > 1.2 +37 -1 > > > db-torque/src/generator/src/java/org/apache/torque/engine/platform/PlatformPostgresqlImpl.java > > > > Index: PlatformPostgresqlImpl.java > > > > > =================================================================== > > RCS file: > > > /home/cvs/db-torque/src/generator/src/java/org/apache/torque/engine/platform/PlatformPostgresqlImpl.java,v > > retrieving revision 1.1 > > retrieving revision 1.2 > > diff -u -r1.1 -r1.2 > > --- PlatformPostgresqlImpl.java 27 Sep 2003 > > 11:10:15 -0000 1.1 > > +++ PlatformPostgresqlImpl.java 16 Nov 2003 > > 20:16:53 -0000 1.2 > > @@ -54,12 +54,48 @@ > > * <http://www.apache.org/>. > > */ > > > > +import > > org.apache.torque.engine.database.model.Domain; > > +import > > org.apache.torque.engine.database.model.SchemaType; > > + > > /** > > + * Postgresql Platform implementation. > > + * > > * @author <a > > href="mailto:[EMAIL PROTECTED]">Martin Poeschl</a> > > * @version $Id$ > > */ > > public class PlatformPostgresqlImpl extends > > PlatformDefaultImpl > > { > > + /** > > + * Default constructor. > > + */ > > + public PlatformPostgresqlImpl() > > + { > > + super(); > > + initialize(); > > + } > > + > > + /** > > + * Initializes db specific domain mapping. > > + */ > > + private void initialize() > > + { > > + setSchemaDomainMapping(new > > Domain(SchemaType.BIT, "boolean")); > > + setSchemaDomainMapping(new > > Domain(SchemaType.TINYINT, "int2")); > > + setSchemaDomainMapping(new > > Domain(SchemaType.SMALLINT, "int2")); > > + setSchemaDomainMapping(new > > Domain(SchemaType.BIGINT, "int8")); > > + setSchemaDomainMapping(new > > Domain(SchemaType.REAL, "float")); > > + // TODO check this .. just copied from > > db.props > > + setSchemaDomainMapping(new > > Domain(SchemaType.BOOLEANCHAR, "char")); > > + // TODO check this .. just copied from > > db.props > > + setSchemaDomainMapping(new > > Domain(SchemaType.BOOLEANINT, "int2")); > > + setSchemaDomainMapping(new > > Domain(SchemaType.DOUBLE, "double precision")); > > + setSchemaDomainMapping(new > > Domain(SchemaType.LONGVARCHAR, "text")); > > + setSchemaDomainMapping(new > > Domain(SchemaType.BINARY, "bytea")); > > + setSchemaDomainMapping(new > > Domain(SchemaType.VARBINARY, "bytea")); > > + setSchemaDomainMapping(new > > Domain(SchemaType.LONGVARBINARY, "bytea")); > > + setSchemaDomainMapping(new > > Domain(SchemaType.CLOB, "text")); > > + } > > + > > /** > > * @see Platform#getNativeIdMethod() > > */ > > > > > > > > 1.2 +23 -1 > > > db-torque/src/generator/src/java/org/apache/torque/engine/platform/PlatformHypersonicImpl.java > > > > Index: PlatformHypersonicImpl.java > > > > > =================================================================== > > RCS file: > > > /home/cvs/db-torque/src/generator/src/java/org/apache/torque/engine/platform/PlatformHypersonicImpl.java,v > > retrieving revision 1.1 > > retrieving revision 1.2 > > diff -u -r1.1 -r1.2 > > --- PlatformHypersonicImpl.java 27 Sep 2003 > > 11:10:15 -0000 1.1 > > +++ PlatformHypersonicImpl.java 16 Nov 2003 > > 20:16:53 -0000 1.2 > > @@ -54,11 +54,33 @@ > > * <http://www.apache.org/>. > > */ > > > > +import > > org.apache.torque.engine.database.model.Domain; > > +import > > org.apache.torque.engine.database.model.SchemaType; > > + > > /** > > + * Hypersonic Platform implementation. > > + * > > * @author <a > > href="mailto:[EMAIL PROTECTED]">Martin Poeschl</a> > > * @version $Id$ > > */ > > public class PlatformHypersonicImpl extends > > PlatformDefaultImpl > > { > > + /** > > + * Default constructor. > > + */ > > + public PlatformHypersonicImpl() > > + { > > + super(); > > + initialize(); > > + } > > > > + /** > > + * Initializes db specific domain mapping. > > + */ > > + private void initialize() > > + { > > + setSchemaDomainMapping(new > > Domain(SchemaType.CHAR, "VARCHAR")); > > + setSchemaDomainMapping(new > > Domain(SchemaType.LONGVARCHAR, "VARCHAR")); > > + setSchemaDomainMapping(new > > Domain(SchemaType.VARBINARY, "BINARY")); > > + } > > } > > > > > > > > 1.2 +29 -1 > > > db-torque/src/generator/src/java/org/apache/torque/engine/platform/PlatformMysqlImpl.java > > > > Index: PlatformMysqlImpl.java > > > > > =================================================================== > > RCS file: > > > /home/cvs/db-torque/src/generator/src/java/org/apache/torque/engine/platform/PlatformMysqlImpl.java,v > > retrieving revision 1.1 > > retrieving revision 1.2 > > diff -u -r1.1 -r1.2 > > --- PlatformMysqlImpl.java 27 Sep 2003 11:10:15 > > -0000 1.1 > > +++ PlatformMysqlImpl.java 16 Nov 2003 20:16:53 > > -0000 1.2 > > @@ -54,11 +54,39 @@ > > * <http://www.apache.org/>. > > */ > > > > +import > > org.apache.torque.engine.database.model.Domain; > > +import > > org.apache.torque.engine.database.model.SchemaType; > > > === message truncated === > > > __________________________________ > Do you Yahoo!? > Protect your identity with Yahoo! Mail AddressGuard > http://antispam.yahoo.com/whatsnewfree > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > [ Scanned by JARING E-Mail Virus Scanner ( http://www.jaring.my ) ] > ---------------------------------------------------------------- This e-mail has been sent via JARING webmail at http://www.jaring.my --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
