daocountryjdbcmysql.java

来自「Java/J2EE application framework based on」· Java 代码 · 共 25 行

JAVA
25
字号
package org.springframework.samples.countries.dao;

/**
 * MySql Subclass for <code>CountryDaoJdbC</code>.
 * 
 * @author Jean-Pierre Pawlak
 */
public class DaoCountryJdbcMySql extends DaoCountryJdbc {

	// MySql specific examples
	protected String DROP_SQL = "DROP TABLE IF EXISTS countries";
	protected String CREATE_SQL = "CREATE TABLE countries (lang CHAR(2), code CHAR(2), name VARCHAR(50), PRIMARY KEY (lang,code) ) Type InnoDB";
	// We don't include indexes due to the small size of this table.

	/**
	 * @see org.springframework.samples.countries.dao.IDaoCountry#initBase()
	 */
	public void initBase() {
		this.setDropSql(DROP_SQL);
		this.setCreateSql(CREATE_SQL);
		super.initBase();
	}

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?