/** * PUBLIC: * Set the database platform to be JDBC. */ public void useJDBC() { DatabasePlatform newPlatform = new DatabasePlatform(); getPlatform().copyInto(newPlatform); setPlatform(newPlatform); }
/** * PUBLIC: * Set the database platform to be Access. */ public void useAccess() { if (getPlatform().isAccess()) { return; } DatabasePlatform newPlatform = new AccessPlatform(); getPlatform().copyInto(newPlatform); setPlatform(newPlatform); }
/** * PUBLIC: * Set the database platform to be Cloudscape. */ public void useCloudscape() { if (getPlatform().isCloudscape()) { return; } DatabasePlatform newPlatform = new CloudscapePlatform(); getPlatform().copyInto(newPlatform); setPlatform(newPlatform); }
public void useDerby() { if (getPlatform().isDerby()) { return; } DatabasePlatform newPlatform = new DerbyPlatform(); getPlatform().copyInto(newPlatform); setPlatform(newPlatform); }
/** * PUBLIC: * Set the database platform to be DBase. */ public void useDBase() { if (getPlatform().isDBase()) { return; } DatabasePlatform newPlatform = new DBasePlatform(); getPlatform().copyInto(newPlatform); setPlatform(newPlatform); }
/** * PUBLIC: * Set the database platform to be MySQL. */ public void useMySQL() { if (getPlatform().isMySQL()) { return; } DatabasePlatform newPlatform = new MySQL4Platform(); getPlatform().copyInto(newPlatform); setPlatform(newPlatform); }
/** * PUBLIC: * Set the database platform to be DB2. */ public void useDB2() { if (getPlatform().isDB2()) { return; } DatabasePlatform newPlatform = new DB2Platform(); getPlatform().copyInto(newPlatform); setPlatform(newPlatform); }
/** * PUBLIC: * Set the database platform to be Informix. */ public void useInformix() { if (getPlatform().isInformix()) { return; } DatabasePlatform newPlatform = new InformixPlatform(); getPlatform().copyInto(newPlatform); setPlatform(newPlatform); }
/** * PUBLIC: * Set the database platform to be Oracle. */ public void useOracle() { if (getPlatform().isOracle()) { return; } DatabasePlatform newPlatform = new OraclePlatform(); getPlatform().copyInto(newPlatform); setPlatform(newPlatform); }
/** * PUBLIC: * Use the HSQL JDBC driver. */ public void useHSQL() { if (getPlatform().isHSQL()) { return; } DatabasePlatform newPlatform = new HSQLPlatform(); getPlatform().copyInto(newPlatform); setPlatform(newPlatform); }
/** * PUBLIC: * Set the database platform to be PointBase. */ public void usePointBase() { if (getPlatform().isPointBase()) { return; } DatabasePlatform newPlatform = new PointBasePlatform(); getPlatform().copyInto(newPlatform); setPlatform(newPlatform); }
/** * PUBLIC: * Set the database platform to be SQL Server. */ public void useSQLServer() { if (getPlatform().isSQLServer()) { return; } DatabasePlatform newPlatform = new SQLServerPlatform(); getPlatform().copyInto(newPlatform); setPlatform(newPlatform); }
/** * PUBLIC: * Set the database platform to be Sybase. */ public void useSybase() { if (getPlatform().isSybase()) { return; } DatabasePlatform newPlatform = new SybasePlatform(); getPlatform().copyInto(newPlatform); setPlatform(newPlatform); }