namedquerydefinition.java

来自「介绍了hibernate的入门有一些基本常用的事例」· Java 代码 · 共 66 行

JAVA
66
字号
//$Id: NamedQueryDefinition.java,v 1.7 2005/02/13 11:55:47 oneovthafew Exp $package org.hibernate.engine;import java.io.Serializable;import org.hibernate.FlushMode;/** * Definition of a named query, defined in the mapping metadata. * * @author Gavin King */public class NamedQueryDefinition implements Serializable {	private final String query;	private final boolean cacheable;	private final String cacheRegion;	private final Integer timeout;	private final Integer fetchSize;	private final FlushMode flushMode;	public NamedQueryDefinition(		String query,		boolean cacheable,		String cacheRegion,		Integer timeout,		Integer fetchSize,		FlushMode flushMode	) {		this.query = query;		this.cacheable = cacheable;		this.cacheRegion = cacheRegion;		this.timeout = timeout;		this.fetchSize = fetchSize;		this.flushMode = flushMode;	}	public String getQueryString() {		return query;	}	public boolean isCacheable() {		return cacheable;	}	public String getCacheRegion() {		return cacheRegion;	}	public Integer getFetchSize() {		return fetchSize;	}	public Integer getTimeout() {		return timeout;	}	public FlushMode getFlushMode() {		return flushMode;	}	public String toString() {		return getClass().getName() + '(' + query + ')';	}}

⌨️ 快捷键说明

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