<?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"
/>

<!-- PACKAGE BODY のコンパイル方法は、他と一貫性が無い。 -->
<og:equals val1="{@TYPE}" val2="PACKAGE BODY" >
	<og:value command="SET" key="QUERY">
		ALTER PACKAGE {@OWNER}.{@NAME} COMPILE BODY
	</og:value>
</og:equals>

<og:equals val1="{@TYPE}" val2="PACKAGE BODY" notEquals="true">
	<og:value command="SET" key="QUERY">
		ALTER {@TYPE} {@OWNER}.{@NAME} COMPILE
	</og:value>
</og:equals>

<og:text>{@QUERY}</og:text>
<br />

<og:query command="{@command}" debug="{@debug}" dbid="{@DBID}" >
	<jsp:text>{@QUERY}</jsp:text>
</og:query>

<og:query command="{@command}" debug="{@debug}" dbid="{@DBID}" >
	<jsp:text>
		select OWNER,NAME,TYPE,LINE,POSITION,TEXT
		from DBA_ERRORS
		where OWNER = '{@OWNER}'
		and   NAME  = '{@NAME}'
		order by OWNER,NAME,LINE,POSITION
	</jsp:text>
</og:query>

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

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