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]
