<?xml version="1.0" encoding="UTF-8" ?>
<jsp:root
	xmlns:jsp="http://java.sun.com/JSP/Page"
	xmlns:og="hybs-taglib.tld"
	version="2.0">
<jsp:directive.page language="java" contentType="text/html; charset=UTF-8" />

<og:head headType="result" />
<jsp:directive.include file="/jsp/custom/result_info.jsp" />
<og:comment
	system   = "GE:エンジンサンプル"
	pgid     = "GE1004"
	title    = "DB検索"
	date     = "2007/12/12"
	author   = "K.HASEGAWA"
	text     = "ZZZZ"
	version  = "001"
/>

<jsp:directive.include file="changeSQL.jsp" />

<og:columnCheck
	nullCheck = "SQL"
/>

<og:equals val1="{@SQL}" val2="UPDATE" startsWith="true" useStop="true" >
	<og:message lbl="ERR0038" val0="SQL" val1="{@LBL.ENTRY}" comment="{0} は、{1} には使用できません。" />
</og:equals>

<og:query
	command		= "{@command}"
	queryType	= "JDBC{@queryType}"
	maxRowCount	= "{@maxRowCount}"
	dbid		= "{@DBID}"
	quotCheck	= "false" >
<jsp:text>{@SQL}</jsp:text>
</og:query>

<!-- DB更新処理で、実行後に、エラーが発生しないように、検索件数で判定する。 -->
<og:equals val1="{@DB.COUNT}" val2="0" notEquals="true" >
	<og:tableFilter classId="LABEL" keys="CLM,LBL" vals="COLUMN_NAME,DBLABEL" />
</og:equals>

<og:errorMessage command="{@command}" clear="{@clear}" displayMsg="{@displayMsg}" />

<og:view
	viewFormType = "HTMLTable"
	command		= "{@command}"
	writable	= "false"
	startNo		= "{@startNo}"
	pageSize	= "{@pageSize}"
/>

<jsp:directive.include file="/jsp/common/htmlend.jsp" />
</jsp:root>
