⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 basegraphictypedao.java

📁 基于java的组态软件。使用了hibernate和spring技术
💻 JAVA
字号:
package domain.dao.basedao;

import domain.dao.GraphicTypeDAO;

/**
 * This class has been automatically generated by Hibernate Synchronizer. * For more information or documentation, visit The Hibernate Synchronizer page * at http://www.binamics.com/hibernatesync or contact Joe Hudson at joe@binamics.com. * * This is an automatically generated DAO class which should not be edited.
 */
public abstract class BaseGraphicTypeDAO extends domain.dao._RootDAO {

	public static GraphicTypeDAO instance;

	/**
	 * Return a singleton of the DAO
	 */
	public static GraphicTypeDAO getInstance () {
		if (null == instance) instance = new GraphicTypeDAO();
		return instance;
	}

	/**
	 * domain.dao._RootDAO _RootDAO.getReferenceClass()
	 */
	public Class getReferenceClass () {
		return domain.GraphicType.class;
	}
	
	
/**
	 * Persist the given transient instance, first assigning a generated identifier. (Or using the current value
	 * of the identifier property if the assigned generator is used.) 
	 * @param graphicType a transient instance of a persistent class 
	 * @return the class identifier
	 */
	public domain.GraphicType save(domain.GraphicType graphicType)
{
		return (domain.GraphicType) super.save(graphicType);
	}


	/**
	 * Either save() or update() the given instance, depending upon the value of its identifier property. By default
	 * the instance is always saved. This behaviour may be adjusted by specifying an unsaved-value attribute of the
	 * identifier property mapping. 
	 * @param graphicType a transient instance containing new or updated state 
	 */
	public void saveOrUpdate(domain.GraphicType graphicType)
	{
		super.saveOrUpdate(graphicType);
	}


	/**
	 * Update the persistent state associated with the given identifier. An exception is thrown if there is a persistent
	 * instance with the same identifier in the current session.
	 * @param graphicType a transient instance containing updated state
	 */
	public void update(domain.GraphicType graphicType) 
	{
		super.update(graphicType);
	}


	/**
	 * Remove a persistent instance from the datastore. The argument may be an instance associated with the receiving
	 * Session or a transient instance with an identifier associated with existing persistent state. 
	 * @param graphicType the instance to be removed
	 */
	public domain.GraphicType load(java.io.Serializable id)
	{
		return (domain.GraphicType)super.load(getReferenceClass(),id);
	}	
	
	public java.util.List loadAll(){
		return super.loadAll(getReferenceClass());
	}

}

⌨️ 快捷键说明

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