Skip to content
This repository was archived by the owner on Apr 15, 2021. It is now read-only.

Commit 40620b7

Browse files
committed
VariableInListUsingDBFunction
1 parent 4fec6ce commit 40620b7

21 files changed

+873
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,3 +194,4 @@ Each sample is also available in downloadable form in the zips directory.
194194
* ValidateOnlyOnePrimaryEmailForMessage
195195
* ValidationErrInTableNotDisplayedSecondTime
196196
* ValueEncodingDecodingExample
197+
* VariableInListUsingDBFunction
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="windows-1252" ?>
2+
<adf-config xmlns="http://xmlns.oracle.com/adf/config"
3+
xmlns:adf="http://xmlns.oracle.com/adf/config/properties"
4+
xmlns:sec="http://xmlns.oracle.com/adf/security/config">
5+
<adf:adf-properties-child xmlns="http://xmlns.oracle.com/adf/config/properties">
6+
<adf-property name="adfAppUID" value="VariableInListUsingDBFunction-1843"/>
7+
</adf:adf-properties-child>
8+
<sec:adf-security-child xmlns="http://xmlns.oracle.com/adf/security/config">
9+
<CredentialStoreContext credentialStoreClass="oracle.adf.share.security.providers.jps.CSFCredentialStore"
10+
credentialStoreLocation="../../src/META-INF/jps-config.xml"/>
11+
</sec:adf-security-child>
12+
</adf-config>
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?xml version = '1.0' encoding = 'UTF-8'?>
2+
<References xmlns="http://xmlns.oracle.com/adf/jndi">
3+
<Reference name="scott" className="oracle.jdeveloper.db.adapter.DatabaseProvider" credentialStoreKey="scott" xmlns="">
4+
<Factory className="oracle.jdeveloper.db.adapter.DatabaseProviderFactory"/>
5+
<RefAddresses>
6+
<StringRefAddr addrType="sid">
7+
<Contents>orcl</Contents>
8+
</StringRefAddr>
9+
<StringRefAddr addrType="oraDriverType">
10+
<Contents>thin</Contents>
11+
</StringRefAddr>
12+
<StringRefAddr addrType="port">
13+
<Contents>1521</Contents>
14+
</StringRefAddr>
15+
<StringRefAddr addrType="DeployPassword">
16+
<Contents>true</Contents>
17+
</StringRefAddr>
18+
<StringRefAddr addrType="user">
19+
<Contents>scott</Contents>
20+
</StringRefAddr>
21+
<StringRefAddr addrType="subtype">
22+
<Contents>oraJDBC</Contents>
23+
</StringRefAddr>
24+
<StringRefAddr addrType="hostname">
25+
<Contents>localhost</Contents>
26+
</StringRefAddr>
27+
<SecureRefAddr addrType="password"/>
28+
<StringRefAddr addrType="driver">
29+
<Contents>oracle.jdbc.OracleDriver</Contents>
30+
</StringRefAddr>
31+
</RefAddresses>
32+
</Reference>
33+
</References>
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
Copyright (c) 2017 Oracle and/or its affiliates. All rights reserved.
2+
The Universal Permissive License (UPL), Version 1.0
3+
4+
Subject to the condition set forth below, permission is hereby granted to any person obtaining a copy of this software, associated documentation and/or data (collectively the "Software"), free of charge and under any and all copyright rights in the Software, and any and all patent rights owned or freely licensable by each licensor hereunder covering either (i) the unmodified Software as contributed to or provided by such licensor, or (ii) the Larger Works (as defined below), to deal in both
5+
6+
(a) the Software, and
7+
8+
(b) any piece of software and/or hardware listed in the lrgrwrks.txt file if one is included with the Software (each a “Larger Work” to which the Software is contributed by such licensors),
9+
10+
without restriction, including without limitation the rights to copy, create derivative works of, display, perform, and distribute the Software and make, use, sell, offer for sale, import, export, have made, and have sold the Software and the Larger Work(s), and to sublicense the foregoing rights on either these or other terms.
11+
12+
This license is subject to the following condition:
13+
14+
The above copyright notice and either this complete permission notice or at a minimum a reference to the UPL must be included in all copies or substantial portions of the Software.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
CREATE TYPE num_table AS TABLE OF NUMBER;
2+
/
3+
CREATE TYPE varchar2_table AS TABLE OF varchar2(2000);
4+
/
5+
CREATE OR REPLACE FUNCTION in_number_list (p_in_list IN VARCHAR2)
6+
RETURN num_table
7+
AS
8+
l_tab num_table := num_table();
9+
l_text VARCHAR2(32767) := p_in_list || ',';
10+
l_idx NUMBER;
11+
BEGIN
12+
LOOP
13+
l_idx := INSTR(l_text, ',');
14+
EXIT WHEN NVL(l_idx, 0) = 0;
15+
l_tab.extend;
16+
l_tab(l_tab.last) := to_number(TRIM(SUBSTR(l_text, 1, l_idx - 1)));
17+
l_text := SUBSTR(l_text, l_idx + 1);
18+
END LOOP;
19+
20+
RETURN l_tab;
21+
END;
22+
/
23+
show errors
24+
CREATE OR REPLACE FUNCTION in_varchar2_list (p_in_list IN VARCHAR2)
25+
RETURN varchar2_table
26+
AS
27+
l_tab varchar2_table := varchar2_table();
28+
l_text VARCHAR2(32767) := p_in_list || ',';
29+
l_idx number;
30+
BEGIN
31+
LOOP
32+
l_idx := INSTR(l_text, ',');
33+
EXIT WHEN NVL(l_idx, 0) = 0;
34+
l_tab.extend;
35+
l_tab(l_tab.last) := TRIM(SUBSTR(l_text, 1, l_idx - 1));
36+
l_text := SUBSTR(l_text, l_idx + 1);
37+
END LOOP;
38+
39+
RETURN l_tab;
40+
END;
41+
/
42+
show errors
Lines changed: 258 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,258 @@
1+
<?xml version = '1.0' encoding = 'UTF-8'?>
2+
<jpr:project xmlns:jpr="http://xmlns.oracle.com/ide/project">
3+
<hash n="component-versions">
4+
<value n="oracle.adf.dt.migration.ProjectMigrator" v="10.1.3.3.0"/>
5+
<value n="oracle.adfdt.controller.adfc.source.migration.AdfControllerSchemaMigrator" v="11.1.1.1.0"/>
6+
<value n="oracle.adfdt.controller.common.migrator.ProjectMigrator" v="11.1.1.1.0"/>
7+
<value n="oracle.adfdt.controller.jsf.addin.JSFProjectMigrator" v="10.1.3.3.0"/>
8+
<value n="oracle.adfdt.controller.jsf2.diagram.migrate.JsfNodeMigratorHelper" v="11.1.1.1.0"/>
9+
<value n="oracle.adfdt.controller.struts.addin.db.ADFStrutsProjectMigrator" v="10.1.3.3.0;11.1.1.1.0"/>
10+
<value n="oracle.adfdt.controller.struts.addin.StrutsProjectMigrator" v="10.1.3.3.0;11.1.1.1.0"/>
11+
<value n="oracle.adfdtinternal.dvt.datapresdt.migration.DVTDataMapMigrator" v="11.1.1.1.0"/>
12+
<value n="oracle.adfdtinternal.model.ide.migration.ProjectMigrator" v="11.1.1.1.0.11.1.1"/>
13+
<value n="oracle.adfdtinternal.model.ide.security.wizard.FormPageMigrator" v="11.1.1.0.0"/>
14+
<value n="oracle.adfdtinternal.model.ide.security.wizard.JpsFilterMigrator" v="11.1.1.1.0"/>
15+
<value n="oracle.adfdtinternal.model.ide.xmled.migration.ADFNodeMigrator" v="11.1.1.1.0.5"/>
16+
<value n="oracle.adfdtinternal.model.ide.xmled.migration.PageDefinitionParameterValueMigrator" v="11.1.1.1.0.5"/>
17+
<value n="oracle.adfdtinternal.model.ide.xmled.migration.WebXmlMigrator" v="11.1.1.1.0"/>
18+
<value n="oracle.adfdtinternal.model.portlet.migration.WebCenterProjectMigrator" v="10.1.3.3.0"/>
19+
<value n="oracle.adfdtinternal.view.common.migration.wizards.MigrationHelper" v="11.1.1.1.0.3"/>
20+
<value n="oracle.adfdtinternal.view.faces.addin.ADFFacesLibraryMigrator" v="10.1.3.3.0"/>
21+
<value n="oracle.adfdtinternal.view.rich.binding.migration.JarResourceMigrator" v="11.1.1.1.0"/>
22+
<value n="oracle.adfdtinternal.view.rich.migration.ComponentIdNodeMigratorHelper" v="11.1.1.1.0.01"/>
23+
<value n="oracle.adfdtinternal.view.rich.migration.LibraryVersionMigrator" v="11.1.1.1.0"/>
24+
<value n="oracle.bm.commonIde.ProjectUpgrader" v="10.1.3.3.0;11.1.1.1.0"/>
25+
<value n="oracle.bm.migration.project.MigratorRegistryProjectUpgradeAdapter" v="11.1.1.1.0"/>
26+
<value n="oracle.ide.model.Project" v="10.1.3.3.0;11.1.1.1.0"/>
27+
<value n="oracle.ide.model.ResourcePathsMigrator" v="10.1.3.3.0;11.1.1.1.0"/>
28+
<value n="oracle.jbo.dt.jclient.migrator.JCProjectMigrator" v="10.1.3.3.0;11.1.1.1.0"/>
29+
<value n="oracle.jbo.dt.jdevx.deployment.JbdProjectMigrator" v="11.1.1.1.0"/>
30+
<value n="oracle.jbo.dt.jdevx.ui.appnav.APProjectMigrator" v="10.1.3.3.0;11.1.1.0.1.5"/>
31+
<value n="oracle.jbo.dt.migrate.ResourceBundlePathMigrator" v="11.1.1.1.0.5"/>
32+
<value n="oracle.jbo.dt.migration.ServiceInterfaceMigrator" v="11.1.1.1.0"/>
33+
<value n="oracle.jdeveloper.dbmodeler.migration.ProjectMigratorHelper" v="10.1.3.3.0"/>
34+
<value n="oracle.jdeveloper.ejb.EjbMigrator" v="10.1.3.3.0;11.1.1.1.0"/>
35+
<value n="oracle.jdeveloper.library.ProjectLibraryMigrator" v="11.1.1.1.0"/>
36+
<value n="oracle.jdeveloper.model.OutputDirectoryMigrator" v="11.1.1.1.0"/>
37+
<value n="oracle.jdeveloper.offlinedb.migration.OfflineDBProjectMigrator" v="10.1.3.3.0"/>
38+
<value n="oracle.jdevimpl.deploy.DeploymentProfilesMigrator" v="11.1.1.1.0"/>
39+
<value n="oracle.jdevimpl.deploy.jps.JpsDataMigrator" v="11.1.1.1.0"/>
40+
<value n="oracle.jdevimpl.jsp.JsfLibraryMigrator" v="10.1.3.3.0"/>
41+
<value n="oracle.jdevimpl.jsp.JspMigrator" v="10.1.3.1.0;11.1.1"/>
42+
<value n="oracle.jdevimpl.offlinedb.migration.OfflineDBProjectMigrator" v="11.1.1.1.0"/>
43+
<value n="oracle.jdevimpl.offlinedb.migration.OfflineTransferMigrator" v="11.1.1.1.0"/>
44+
<value n="oracle.jdevimpl.resourcebundle.XliffAddin$XliffMigratorHelper" v="11.1.1.1.0"/>
45+
<value n="oracle.jdevimpl.runner.RunConfigurationsMigrator" v="10.1.3.3.0"/>
46+
<value n="oracle.jdevimpl.webapp.jsp.libraries.JspLibraryMigrator" v="11.1.1.1.4"/>
47+
<value n="oracle.jdevimpl.webapp.WebAppContentSetNodeMigratorHelper" v="11.1.1"/>
48+
<value n="oracle.jdevimpl.webapp.WebAppNodeMigratorHelper" v="11.1.1.1.0"/>
49+
<value n="oracle.jdevimpl.webservices.WebServicesMigratorHelper" v="10.1.3.3.0;11.1.1.1.0"/>
50+
<value n="oracle.jdevimpl.xml.wl.WeblogicMigratorHelper" v="11.1.1.1.0"/>
51+
<value n="oracle.modeler.bmmigrate.management.Migration" v="11.1.1.1.0"/>
52+
<value n="oracle.tip.tools.ide.pm.addin.PMProjectMigrator" v="10.1.3.3.0"/>
53+
<value n="oracle.toplink.addin.migration.TopLinkProjectMigrator" v="10.1.3.1.0"/>
54+
<value n="oracle.toplink.workbench.addin.migration.PersistenceProjectMigrator" v="11.1.1.1.1"/>
55+
<value n="oracle.toplink.workbench.addin.migration.TopLinkProjectMigrator" v="11.1.1.1.0"/>
56+
</hash>
57+
<list n="contentSets">
58+
<string v="oracle.jdeveloper.model.PathsConfiguration/javaContentSet"/>
59+
<string v="oracle.ide.model.ResourcePaths/resourcesContentSet"/>
60+
<string v="oracle.jdeveloper.offlinedb.model.OfflineDBProjectSettings/offlineDBContentSet"/>
61+
<string v="oracle.jdeveloper.model.J2eeSettings/webContentSet"/>
62+
<string v="oracle.bm.commonIde.data.project.ModelerProjectSettings/modelersContentSet"/>
63+
<string v="oracle.tip.tools.ide.pm.addin.PMProjectSettings/Integration_Content"/>
64+
<string v="oracle.mds.internal.dt.ide.MDSLibraryCustCSProvider/mdsContentSet"/>
65+
<string v="oracle.adfdtinternal.model.ide.settings.ADFMSettings/adfmContentSet"/>
66+
<string v="oracle.toplink.workbench.addin/toplinkContentSet"/>
67+
</list>
68+
<value n="defaultPackage" v="demo.model"/>
69+
<value n="jbo.JpxName" v="demo.model.Model"/>
70+
<value n="JboProject" v="true"/>
71+
<hash n="oracle.bm.commonIde.data.project.ModelerProjectSettings">
72+
<hash n="modelersContentSet">
73+
<list n="url-path">
74+
<url path="model/"/>
75+
</list>
76+
</hash>
77+
</hash>
78+
<hash n="oracle.ide.model.ResourcePaths">
79+
<hash n="resourcesContentSet">
80+
<list n="pattern-filters">
81+
<string v="+*"/>
82+
</list>
83+
<list n="url-path">
84+
<url path="."/>
85+
</list>
86+
</hash>
87+
</hash>
88+
<hash n="oracle.ide.model.TechnologyScopeConfiguration">
89+
<list n="technologyScope">
90+
<string v="ADFbc"/>
91+
<string v="Java"/>
92+
<string v="General"/>
93+
</list>
94+
</hash>
95+
<value n="oracle.jbo.SavedPreferences" v="true"/>
96+
<hash n="oracle.jdeveloper.compiler.OjcConfiguration">
97+
<list n="copyRes">
98+
<string v=".gif"/>
99+
<string v=".jpg"/>
100+
<string v=".jpeg"/>
101+
<string v=".png"/>
102+
<string v=".properties"/>
103+
<string v=".xml"/>
104+
<string v="-apf.xml"/>
105+
<string v=".ejx"/>
106+
<string v=".xcfg"/>
107+
<string v=".cpx"/>
108+
<string v=".dcx"/>
109+
<string v=".wsdl"/>
110+
<string v=".ini"/>
111+
<string v=".tld"/>
112+
<string v=".tag"/>
113+
<string v=".jpx"/>
114+
</list>
115+
<value n="internalEncoding" v="Cp1252"/>
116+
</hash>
117+
<hash n="oracle.jdeveloper.model.J2eeSettings">
118+
<value n="j2eeWebAppName" v="VariableInListUsingDBFunction-Model-webapp"/>
119+
<value n="j2eeWebContextRoot" v="VariableInListUsingDBFunction-Model-context-root"/>
120+
<hash n="webContentSet">
121+
<list n="pattern-filters">
122+
<string v="-WEB-INF/temp/"/>
123+
<string v="-WEB-INF/classes/"/>
124+
<string v="+**"/>
125+
</list>
126+
<list n="url-path">
127+
<url path="public_html/"/>
128+
</list>
129+
</hash>
130+
</hash>
131+
<hash n="oracle.jdeveloper.model.PathsConfiguration">
132+
<hash n="javaContentSet">
133+
<list n="pattern-filters">
134+
<string v="+**"/>
135+
</list>
136+
<list n="url-path">
137+
<url path="src/"/>
138+
</list>
139+
</hash>
140+
</hash>
141+
<hash n="oracle.jdeveloper.offlinedb.model.OfflineDBProjectSettings">
142+
<hash n="offlineDBContentSet">
143+
<list n="pattern-filters">
144+
<string v="+**"/>
145+
</list>
146+
<list n="url-path">
147+
<url path="database/"/>
148+
</list>
149+
</hash>
150+
</hash>
151+
<hash n="oracle.jdeveloper.runner.RunConfigurations">
152+
<hash n="runConfigurationDefinitions">
153+
<hash n="Default">
154+
<value n="custom" v="false"/>
155+
<value n="name" v="Default"/>
156+
</hash>
157+
</hash>
158+
<list n="runConfigurationList">
159+
<string v="Default"/>
160+
</list>
161+
</hash>
162+
<hash n="oracle.jdevimpl.config.JProjectLibraries">
163+
<list n="exportedReferences">
164+
<hash>
165+
<value n="id" v="BC4J Runtime"/>
166+
<value n="isJDK" v="false"/>
167+
</hash>
168+
<hash>
169+
<value n="id" v="ADF Model Runtime"/>
170+
<value n="isJDK" v="false"/>
171+
</hash>
172+
<hash>
173+
<value n="id" v="BC4J Tester"/>
174+
<value n="isJDK" v="false"/>
175+
</hash>
176+
<hash>
177+
<value n="id" v="Oracle JDBC"/>
178+
<value n="isJDK" v="false"/>
179+
</hash>
180+
<hash>
181+
<value n="id" v="BC4J Oracle Domains"/>
182+
<value n="isJDK" v="false"/>
183+
</hash>
184+
<hash>
185+
<value n="id" v="MDS Runtime"/>
186+
<value n="isJDK" v="false"/>
187+
</hash>
188+
<hash>
189+
<value n="id" v="MDS Runtime Dependencies"/>
190+
<value n="isJDK" v="false"/>
191+
</hash>
192+
<hash>
193+
<value n="id" v="BC4J Security"/>
194+
<value n="isJDK" v="false"/>
195+
</hash>
196+
</list>
197+
<list n="libraryReferences">
198+
<hash>
199+
<value n="id" v="BC4J Runtime"/>
200+
<value n="isJDK" v="false"/>
201+
</hash>
202+
<hash>
203+
<value n="id" v="ADF Model Runtime"/>
204+
<value n="isJDK" v="false"/>
205+
</hash>
206+
<hash>
207+
<value n="id" v="BC4J Tester"/>
208+
<value n="isJDK" v="false"/>
209+
</hash>
210+
<hash>
211+
<value n="id" v="Oracle JDBC"/>
212+
<value n="isJDK" v="false"/>
213+
</hash>
214+
<hash>
215+
<value n="id" v="BC4J Oracle Domains"/>
216+
<value n="isJDK" v="false"/>
217+
</hash>
218+
<hash>
219+
<value n="id" v="MDS Runtime"/>
220+
<value n="isJDK" v="false"/>
221+
</hash>
222+
<hash>
223+
<value n="id" v="MDS Runtime Dependencies"/>
224+
<value n="isJDK" v="false"/>
225+
</hash>
226+
<hash>
227+
<value n="id" v="BC4J Security"/>
228+
<value n="isJDK" v="false"/>
229+
</hash>
230+
</list>
231+
</hash>
232+
<hash n="oracle.jdevimpl.config.JProjectPaths">
233+
<url n="outputDirectory" path="classes/"/>
234+
</hash>
235+
<hash n="oracle.tip.tools.ide.pm.addin.PMProjectSettings">
236+
<hash n="Integration_Content">
237+
<list n="pattern-filters">
238+
<string v="+**"/>
239+
</list>
240+
</hash>
241+
</hash>
242+
<hash n="ResourceBundleOptions">
243+
<value n="ADFRestricted" v="true"/>
244+
</hash>
245+
<hash n="working-sets">
246+
<value n=".current" v="Default"/>
247+
<hash n="(All Files)">
248+
<list n="pattern-filters">
249+
<string v="+**"/>
250+
</list>
251+
</hash>
252+
<hash n="Default">
253+
<list n="pattern-filters">
254+
<string v="+**"/>
255+
</list>
256+
</hash>
257+
</hash>
258+
</jpr:project>
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?xml version='1.0' encoding='windows-1252' ?>
2+
<!DOCTYPE JboProject SYSTEM "jbo_03_01.dtd">
3+
4+
<JboProject
5+
Name="Model"
6+
SeparateXMLFiles="true"
7+
PackageName="" >
8+
<DesignTime>
9+
<Attr Name="_ejbPackage" Value="false" />
10+
<Attr Name="_NamedConnection" Value="scott" />
11+
<Attr Name="_version" Value="10.1.3.41.57" />
12+
<Attr Name="_jprName" Value="../Model.jpr" />
13+
<Attr Name="_appModuleNames0" Value="demo.model.AppModule" />
14+
</DesignTime>
15+
<Containee
16+
Name="model"
17+
FullName="demo.model.model"
18+
ObjectType="JboPackage" >
19+
</Containee>
20+
</JboProject>

0 commit comments

Comments
 (0)