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

📄 querycommand.java

📁 Java mulitplayer strategy game. Adaptation of KDE Galaxy Conquest. (rules are changed - but still th
💻 JAVA
字号:
/*
 * Query.java
 *
 * Created on 8 czerwiec 2005, 20:16
 */

package net.sf.jawp.gf.persistence;

/**
 * 
 * @param <RETURNTYPE> type of object this transaction returns - may be Void
 * @param <SYSTEM> the type of persistens object (prevalent system)
 * @param <UNMODIFIABLE> the type of unmodifiable view of system
 * @author jarek
 */
public abstract class QueryCommand<RETURNTYPE, SYSTEM extends PersistentSystem<UNMODIFIABLE>, UNMODIFIABLE>
		implements Command<RETURNTYPE, SYSTEM, UNMODIFIABLE>
{
	public final boolean isQuery()
	{
		return true;
	}

	/**
	 * by default queries are not critical
	 */
	public boolean isCritical()
	{
		return false;
	}

	public final RETURNTYPE perform(final SYSTEM system,
			final java.util.Date time)
	{
		return performQuery(system.getUnmodifiable());
	}

	public abstract RETURNTYPE performQuery(final UNMODIFIABLE system);

	public boolean isSensitive()
	{
		return false;
	}

	public boolean isAsynchronous()
	{
		return false;
	}

}

⌨️ 快捷键说明

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