<?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	= "GF:エンジンサンプル"
	pgid	= "GF2080"
	title	= "オブジェクト一覧"
	date	= "2008/10/27"
	author	= "Hiroki.Nakamura"
	text	= ""
	version	= "001"
/>

<og:columnCheck
	command   = "NEW"
/>

<og:query command="NEW" maxRowCount="{@maxRowCount}">
	<jsp:text>
		DELETE FROM GF82
		WHERE SYSTEM_ID = '{@MEM.SYSTEM_ID}'
		AND   TBLSYU    = '{@TBLSYU}'
	</jsp:text>
	<og:where startKey="and">
		<og:and value = "OBJ_TYPE	= '{@OBJ_TYPE2}'" />
	</og:where>
</og:query>

<og:query command="NEW" dbid="{@DBID}" maxRowCount="100000">
  <jsp:text>
	select OBJECT_TYPE,OBJECT_NAME,OBJECT_NAME AS NAME_JA,STATUS AS STTS
	from USER_OBJECTS
	where INSTR(OBJECT_NAME,'$') &lt; 1
	and   OBJECT_TYPE  not in ( 'TABLE','INDEX','VIEW' )
  </jsp:text>
	<og:where startKey="and">
		<og:and value="OBJECT_TYPE =	'{@OBJ_TYPE2}'"	/>
	</og:where>
	<jsp:text>
		order by OBJECT_TYPE,OBJECT_NAME
	</jsp:text>
</og:query>

<og:tableFilter classId="LABEL" keys="CLM,LBL" vals="OBJECT_NAME,NAME_JA" />

<og:tableUpdate
	command		= "ENTRY"
	queryType	= "JDBCTableUpdate"
	selectedAll = "true"
>
<jsp:text>
	INSERT INTO GF82
		(SYSTEM_ID,TBLSYU,OBJ_TYPE,OBJ_NAME,NAME_JA,STTS,
		 FGJ,DYSET,DYUPD,USRSET,USRUPD,PRGUPD)
	VALUES
		('{@MEM.SYSTEM_ID}','{@TBLSYU}',[OBJECT_TYPE],[OBJECT_NAME],[NAME_JA],[STTS],
		 '1','{@USER.YMDH}','{@USER.YMDH}','{@USER.ID}','{@USER.ID}','{@GUI.KEY}')
</jsp:text>
</og:tableUpdate>

<og:forward page="result.jsp" keys="command" vals="RENEW" />
<jsp:directive.include file="/jsp/common/htmlend.jsp" />
</jsp:root>
