More than one class in single java source file?
Is there a way to define more than one class in single java source file?
I get a duplicate class definition error for each extra class, but I am sure there is a way to handle this in JDeveloper.
Anyone knows how ?
Please post the question in jdeveloper forum at
JDeveloper and ADF
for quick response.
Regards,
Anupama
http://otn.oracle.com/sample_code/content.html
Similar Messages
-
Can we query more than one class in a call to .tmib
Hi,
i am creating a utility to monitor the applications at run time using mib.any
body have an idea if we can query more than one class in one call to .tmib.
thanks
roopeshThat would be an interesting enhancement, perhaps using Embedded FML to
pack multiple MIB requests into one buffer.
Product Management makes all decisions about major enhancements, and it
is based on customer need, so that's where the requests should go.
Scott Orshan
roopesh wrote:
>
yes.
i am trying to devlop a utility which can monitor
applications at runtime.i wanted to make as less the
no of calls to tmib as possible but one class does
not give all the information so i need to query
more than one.
anyways thanks for the reply.
"MS" <[email protected]> wrote:
Hi,
Are you trying to write a Tuxedo app health-check monitor utility.
A tuxedo client can make different calls to .TMIB service for different
classes.
I don't think we can query more than one class in a single call.
Are you looking for something else??/
HTH
regards
MS -
i want to ask that if my applet have more than one class, are all classes loaded to client machine autometically or i have to do it by another way (if yes how) ?
Put all the stuff into a single zip or preferably a single jar.
-
Can i create more than one instance for single database?
HI
anybody can tell me how to create more than one instance for single database(without using RAC)?
thanks
KalanidhiAnandji,
I sometimes think differently. I also think like what this person is asking..(although I have installed and administering 5 different RAC databases)
The main doubt of mine is that we create multiple instances accessing the same storage area.
Anyway the controlfiles of all instances will have the same information except the instance_names and instance id's.
Hence I always think , why can't it be possible to to create another instance in the same system and point it to a controlfile which is copied from the other instance.
Why can't the same files be shared between the two instances in a same system ?
I know I am thinking a little bit confusing...
Anyway I need to test that also...
Mahesh. -
Deploying more than one webapplication on single cluster
Hello Folks,
Is there a way to deploy more than one webapplication on single cluster of weblogic. Presently, we are getting an error while deploying second webapplication as
“Context path is already in use by the module: First Application Name”.
Awaiting reply, ...Thanks in Advance :)
AmitHi,
Yes, We can. For Instance . Your weblogic cluster consist of two managed servers. Each managed server different port number.
managedserver1: http://localhost:7003
managedserver2: http://localhost:7005
so your webapplication context name is same all managed servers.
http://localhost:7003/context,http://localhost:7005/context. you should select running weblogic cluster on jdeveloper ide when you deploying webapplication to server then the webapplication deployed all managed server. -
Need to maintain more than one address for single customer.
Dear All,
I need to maintain more than one address for single customer, Is it possible? If so how can I maitain kindly send the details.
Rgds
Srinivasan.K.R.Dear Srinivasan,
I don't think you can maintain the more than one address for single customer as per the standard.
You can this options
1.You can create different ship to parties as per the addresses.
2.You can change the address manually while creating sales order for single customer.
I hope this will help you,
Regards,
Murali. -
More than one class in a single file
Hi,
I am having two classes in one file. One is public and another one is internal. I am calling the internal class methods in some other files. If I compile the files(where I am calling the internal class methods) alone , I am getting compilation errors, If I compile whole package , I am not getting compilation errors. What is the reason. Anyone tell me.First u mention ur code then i can tell u properly.That's completely unnecessary in this case. The explanation was clear enough.
may be u didn't write import statement in that class where u have to implement internal class methodModi, this is complete nonsense. The class would only be visible to other classes in the same package under the rules of Java, so the import statement would be redundant, and in any case it wouldn't solve the problem, as you would have discovered if you had tried it, which you obviously didn't.
@OP: the reason is that the compiler doesn't know where to find the source of the internal class when compiling the other classes that use it. Generally speaking you shouldn't do this, you should put the internal class into its own source file, unless the source file it's presently contained in is the only one that references the internal class. So, either put it into its own source file or make sure the existing source file is compiled before compiling the others. -
Hi guys,
In my application each table has a corresponding Serializable class javabeans style, fine-grained. If a table has a foreign key then it is refered to as a seperate class. For example:
CREATE TABLE location (location_id int, location_name varchar(50))
CREATE TABLE employee
(employee_id int, location_id int)
public class Location implements java.io.Serializable {
int locationId;
String locationName;
public class Employee implements java.io.Serializable {
int employeeId;
Location location;
}My DAOs retrieve data and populate the above class with it and then return it. The DAOs also resolved other classes references. So a DAO metohd getEmployeeById( int employeeId ) will return an Employee class object whose location is also being populated.
In a typical case, a JSP page request a Stateless Session Bean EJB which uses DAOs to retrieve data, put it in the corresponding class and then send it to JSP which process it and show it to user.
So basically these classes (are they called domain classes?) are being used to trasfer data so I can call them DTOs or VOs.
But some times I need to send a combination of classes data to JSP i.e., data comprised of more than one such class. What is the best way to manage this problem?
ThanksEmployee-Location was an example just to show how I am programming.
To show the problem I am having, here is a scenario:
I have 2 tables "task" and "job" for which I have created classes "Task" and "Job" respectively. Eash of these tables has foreign keys which are of no concern here (My DAOs when retrieve data do populate them properly).
public class Task implements java.io.Serializable {
int taskId;
String taskName;
public class Job implements java.io.Serializable {
int jobId;
String jobName;
}Now there is many-to-many relationship between these 2 tables and it is "taskjob" table (a foreign key to task table; another foreign key to job table). So I created a TaskJob class:
public class TaskJob implements java.io.Serializable {
int taskJobId;
Task task;
Job job;
}In one JSP, user selects a Task and click OK. Then on the next page I need to list all Jobs defined in the System as checkboxes. The jobs which are linked to the Task selected will be shown as checked while other jobs will be shown as unchecked.
In this scenario the JSP needs data from both Job and TaskJob class. MY question is how to manage it cleanly? -
Packing more than one items in single packing material.
Dear All,
I require to pack more than one material in a single packing material. The requirement is as below.
there are 5 item lines of different materials say A,B,C,D & E each having quantity of 500.
Now I have to pack these material in a box such that 10 qty of each material (A,B,C,D & E) is packed in single box. Making total number of boxes to 50.
Please help.
thanx in advance,
AnupDear Anup,
Please try below steps
1)Goto VL02N to change the delivery, you already created.
Or you can do the following steps while you are creating a delivery also.
2)Go to "pack" icon.
3)In the upper section, enter the "packing material"
4)In the lower section, change the "partial quantity" to 10 for material A.
5)Select both the lines of upper section and lower section and click the green ok. It generates a shipping unit/handling unit number.
6)Now, select both lines of upper & lower section & click the button "per part. qty" (New HU per part qty of material)
Check: click "General Overview" icon to see whether it packed 10 pieces of material in 5 cartons.
You can repeat the same process for Material A, B, C, D and E.
Hope this helps
Thanks
Murtuza -
Got SQL *Plus query output in more than one in a single page
Hi All,
I have write a SQL *Plus code for execute one SQL query and registered as concurrent program. But I have got the output more than once in a single page after running the concurrent program. I am not getting what is the my code problem. Please can any one help me.
This is my SQL code.
-- These commands are added by applications concurrent manager
SET TERMOUT OFF
SET PAUSE OFF
SET HEADING OFF
SET FEEDBACK OFF
SET VERIFY OFF
SET ECHO OFF
WHENEVER sqlerror exit failure
-- set user environment
SET pagesize 999
SET linesize 860
SET appinfo on
SET tab off
SET newpage none
SET heading on
--SET colsep ','
-- define heading/footer
--ttitle -
-- left currdate -
-- center 'SSFT Open PO Report' -
-- right 'Page : ' format 999 sql.pno -
-- skip 1 -
-- center 'Organization US / Type Contract Labor / Status - Open' -
-- skip 2
--btitle -
-- skip 1 -
-- center 'Scansoft Inc. - All information confidential'
-- define columns
CLEAR columns
SET heading on
COLUMN c1 format a30 heading '"Last Name"' trunc
COLUMN c2 format a30 heading '"First Name"' trunc
COLUMN c3 format a50 heading '"Employee Name"' trunc
COLUMN c4 format a20 heading '"Timecard Number"' trunc
COLUMN c5 format a40 heading '"Expenditure Batch"' trunc
COLUMN c6 format a24 heading '"Weekending Date"' trunc
COLUMN c7 format a24 heading '"Expenditure Item Date"' trunc
COLUMN c8 format a20 heading '"Expendtrmonth"' trunc
COLUMN c9 format a20 heading '"Expendtryear"' trunc
COLUMN c10 format a24 heading '"Sortdate"' trunc
COLUMN c11 format 999999999 heading '"Task Id"'
COLUMN c12 format a30 heading '"Task Name"' trunc
COLUMN c13 format a30 heading '"Task Number"' trunc
COLUMN c14 format a24 heading '"Closed Date"' trunc
COLUMN c15 format a30 heading '"Project Name"' trunc
COLUMN c16 format a30 heading '"Project Number"' trunc
COLUMN c17 format a30 heading '"Project Status Code"' trunc
COLUMN c18 format a30 heading '"Expenditure Type"' trunc
COLUMN c19 format a30 heading '"Expenditure Org Name"' trunc
COLUMN c20 format 999999999 heading '"Organization Id"'
COLUMN c21 format a50 heading '"Projmrg"' trunc
COLUMN c22 format a25 heading '"Role"' trunc
COLUMN c23 format a24 heading '"Projmrg Start Date"' trunc
COLUMN c24 format a24 heading '"Projmrg Start Date"' trunc
COLUMN c25 format a35 heading '"Job Name"' trunc
COLUMN c26 format a35 heading '"Project Type"' trunc
COLUMN c27 format 999999999.99 heading '"Quentity"' trunc
-- define breaks & computes
--break -
-- on report skip 2 -
-- on c30 -
-- on c20 skip 1
--compute avg label 'Average' of c210 on report
-- select statement here
SELECT papf.last_name || '' c1, papf.first_name || '' c2,
papf.full_name || '' c3, pea.orig_user_exp_txn_reference || '' c4,
pea.expenditure_group || '' c5, pea.expenditure_ending_date || '' c6,
peia.expenditure_item_date || '' c7,
SUBSTR (TO_CHAR (peia.expenditure_item_date), 4, 3) || '' c8,
SUBSTR (TO_CHAR (peia.expenditure_item_date), 8, 2) || '' c9,
TO_DATE (SUBSTR (TO_CHAR (peia.expenditure_item_date), 4, 6),
'MM/YY'
|| '' c10,
peia.task_id || '' c11, pt.task_name || '' c12,
pt.task_number || '' c13, ppa.closed_date || '' c14, ppa.NAME || '' c15,
ppa.segment1 || '' c16, ppa.project_status_code || '' c17,
pet.expenditure_type || '' c18, haou.NAME || '' c19,
haou.organization_id || '' c20, pppv.full_name || '' c21,
pppv.ROLE || '' c22, pppv.start_date_active || '' c23,
pppv.end_date_active || '' c24, pj.NAME || '' c25,
ppa.project_type || '' c26, peia.quantity || '' c27
FROM pa.pa_expenditures_all pea,
pa.pa_expenditure_items_all peia,
pa.pa_tasks pt,
pa.pa_projects_all ppa,
hr.per_all_people_f papf,
hr.hr_all_organization_units haou,
pa.pa_expenditure_types pet,
apps.pa_project_players_v pppv,
hr.per_jobs pj
WHERE pea.expenditure_id = peia.expenditure_id
AND peia.task_id = pt.task_id
AND peia.job_id = pj.job_id
AND pt.project_id = ppa.project_id
AND pea.incurred_by_person_id = papf.person_id
AND pea.incurred_by_organization_id = haou.organization_id
AND pet.expenditure_type = peia.expenditure_type
AND ppa.project_id = pppv.project_id
AND pppv.end_date_active IS NULL
AND pea.expenditure_ending_date >= SUBSTR (SYSDATE - 545, 1, 9)
ORDER BY papf.full_name ASC,
pea.expenditure_ending_date ASC,
peia.expenditure_item_date ASC;
--spool off
Thanks in advance
--SubhasHi
Either remove the semicolon (;) or the slash (/) at the end of your query, as both will execute it. -
How to get video of more than one security camera in java
I want to get video from more than one security cameras and i really donot know yet how we do this that get videos continously with more than one camera
olz i a beginner help meHello.
I don't know if the topic still matters, but as I took advantage from the information in the preview posts, I decided to give my share.
I successfully ran three webcameras at the same time in a Linux machine with JMF.
The two main issues are:
1. It is necessary to run the binary "jmfregistry" ($JMFHOME/bin/jmfregistry) to detect the cameras every time a new one is added to the system. (Remember to run the binary with a user with write privileges on the registry file ($JMFHOME/lig/jmf.properties)).
2. It is mandatory to plug each camera in a different usb bus. In my case, the PC I was using had three accessible two-ports buses, two in the rear and one in the front of the box. If we try to use two cameras in the same bus, one of them won't work or the detecting procedure in the "jmfregistry" program will hang.
I hope it helps. Any question, please feel free to ask.
Andr� Braga
My configuration:
Java:
Java(TM) SE Runtime Environment (build 1.6.0_01-b06)
JMF-2.1.1e_linux_native
The machine:
OpenSuse Linux version 10.2 (kernel 2.6.18.2-34-default)
running in a Celeron D processor 2.66 GHz
Motherboard: Giga-byte GA-8IPE1000 Pro2 motherboard (865PE)
The result of the "lsusb" command:
Bus 004 Device 004: ID 0ac8:303b Z-Star Microelectronics Corp. ZC0303 WebCam
Bus 004 Device 001: ID 0000:0000
Bus 005 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000
Bus 002 Device 023: ID 0c45:6007 Microdia
Bus 002 Device 001: ID 0000:0000
Bus 003 Device 004: ID 0ac8:301b Z-Star Microelectronics Corp. ZC0301 WebCam
Bus 003 Device 001: ID 0000:0000
In time (for linuxers): It was necessary to download and install the gspcav driver (http://mxhaard.free.fr/). It is also necessary do load this driver before the camera driver:
modprobe gspca
modprobe zc0301 (this one comes with the distribution) -
Free goods more than one for a single good
hi gurus
how to allocate more than one free goods for the purchase of one material. answers will be highly apprecieatedhi,
FREE-OF-CHARGE Goods delivered on purchase of a material can be created in transaction VBN1. But it can be only on a 1:1 ratio, hence for one material you can propose only one free good. Read the constraints of Free goods as per SAP Documentataion :
<b>Constraints
Free goods can only be supported on a 1:1 ratio. This means that an order item can lead to a free goods item. Agreements in the following form are not supported: With material 1, material 2 and material 3 are free of charge or If material 1 and material 2 are ordered at the same time, then material 3 is free of charge.</b>
Hope i`ve cleared ur query, reward points if so.
Regards -
Using a ommand to generate more than one row of data in utl file
Hi Guys
This might be a pretty long one. But I require help with regards to using outer and inner loops within my code.
Here is the task:
Each account involved with the DCA Allocation has an entry in the DCAACCOUNTALLOCATION table to track its progress. The STATUS value of the entry shows the position of the account in the DCA Allocation process.
The status entry being tested is 3.
Below is the code:
create or replace
PROCEDURE DCA_BMW_OUT
IS
-- Declare all variables as reference
v_out_file UTL_FILE.FILE_TYPE;
v_row_Count NUMBER;
r_bmw NUMBER;
v_out_directory all_directories.directory_path%type;
v_out_filehandle UTL_FILE.FILE_TYPE := NULL;
v_out_buffer varchar2 (32767);
v_records NUMBER;
body_output varchar2(32759 BYTE);
dictionary_guarantorsexist varchar2 (1 Char);
-- Text required within this part of the procedure
v_body varchar2(32767 BYTE);
v_header VARCHAR2(32759 BYTE);
BEGIN
FOR r_bmw IN
( SELECT *
FROM dcaadditionaldata
WHERE directory_name IS NOT NULL
) LOOP
BEGIN
-- Output file to be added into the directory specified
v_out_file := utl_file.fopen (r_bmw.directory_name, 'DCAExport_1_' || TRIM(TO_CHAR(SYSDATE,'DDMMYYYY_HH24MISS')) || '.txt', 'W');
-- The Header data which will be outputted to the file
v_header := 'KennzeichenBrgschaftsforderungGesamtforderung|Währung|Übergabedatum|DifferenzierungAnwalts-oderInkassofall|MainMarktpartnernummer|
MainAnrede|MainTitel|MainName|MainVorname|MainStraße|MainHausnummer|MainPLZ|MainOrt|MainLand|MainGeburtsdatum|MainTelefonnr.Schuldner|G1Marktpartnernummer
G1Anrede G1Titel G1Name G1Vorname G1Straße G1Hausnummer G1PLZ G1Ort G1Land G1Geburtsdatum G1Telefonnr.Schuldner G2Marktpartnernummer G2Anrede G2Titel
G2Name|G2Vorname|G2Straße|G2Hausnummer|G2PLZ|G2Ort|G2Land|G2Geburtsdatum|G2Telefonnr.Schuldner|G3Marktpartnernummer|G3Anrede|G3Titel|G3Name|G3Vorname|
G3Straße|G3Hausnummer|G3PLZ|G3Ort|G3Land|G3Geburtsdatum|G3Telefonnr.Schuldner|G4Marktpartnernummer|G4Anrede|G4Titel|G4Name|G4Vorname|G4Straße|G4Hausnummer|
G4PLZ|G4Ort|G4Land|G4Geburtsdatum|G4Telefonnr Schuldner|G5Marktpartnernummer|G5Anrede|G5Titel|G5Name|G5Vorname|G5Straße|G5Hausnummer|G5PLZ|G5Ort|G5Land|
G5Geburtsdatum|G5Telefonnr.Schuldner|Kundennr.|Bestandsnr.|Finanzierungsnr.|KennzeichenFinanzierung/Leasing|Kennzeichenprivat/gewerblich|
reguläresVertragsende|Laufzeit|Vertragsdatum|Vertragsstatus|Ratenbetrag|Filiale/Gebiet|Finanzierungstyp|BankverbindungKonto|BankverbindungBLZ|
RSVKennzeichen|Kündigungsdatum|Modell|Fahrgestellnummer|KFZKennzeichen|KFZZulassungsdatum|CoD1Marktpartnernummer|CoD1Anrede|CoD1Titel|CoD1Name|
CoD1Vorname|CoD1Straße|CoD1Hausnummer|CoD1PLZ|CoD1Ort|CoD1Land|CoD1Geburtsdatum|CoD1Telefonnr.Schuldner|CoD2Marktpartnernummer|CoD2Anrede|CoD2Titel|
CoD2Name|CoD2Vorname|CoD2Straße|CoD2Hausnummer|CoD2PLZ|CoD2Ort|CoD2Land|CoD2Geburtsdatum|CoD2Telefonnr.Schuldner|CoD3Marktpartnernummer|CoD3Anrede|
CoD3Titel|CoD3Name|CoD3Vorname|CoD3Straße|CoD3Hausnummer|CoD3PLZ|CoD3Ort|CoD3Land|CoD3Geburtsdatum|CoD3Telefonnr.Schuldner|CoD4Marktpartnernummer|
CoD4Anrede|CoD4Titel|CoD4Name|CoD4Vorname|CoD4Straße|CoD4Hausnummer|CoD4PLZ|CoD4Ort|CoD4Land|CoD4Geburtsdatum|CoD4Telefonnr.Schuldner|
CoD5Marktpartnernummer|CoD5Anrede|CoD5Titel|CoD5Name|CoD5Vorname|CoD5Straße|CoD5Hausnummer|CoD5PLZ|CoD5Ort|CoD5Land|CoD5Geburtsdatum|
CoD5Telefonnr.Schuldner Y|Y|5830,99|EUR|20/08/2009|DCA|4|123456|Herr||Mueller|Rainer|Messigasse|33|84432|Filz|Deutschland|01/07/1957|08912345|234567|Frau|Dr|Mueller|Rita|Messigasse|33|84432|Filz|Deutschland|13/12/1955|08912345|||||||||||||||||||||||||||||||||||||||||||||||||76543|5000234567||Lease|Privat|12/12/2013|60|12/12/2008||250,50|US|Rate|1234567890|32343450|N||BMW 320 i|W34567890PA34567|M-H-3456|09/12/2008||||||||||||||||||||||||
N|450,80|EUR|20/08/2009|DCA|4|987654|Frau||Meier|Heide|Beinstr.|44|86353|Laus|Deutschland|03/06/1949|08987654|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||87654||8765675585|Loan|Gewerblich|14/03/2012|72|14/03/2006||500,01|DF|Select|976579657|32343450|N||BMW 500 sl|W94567890PA34568|M-H-3457|10/03/2006|34343434|Herr|Dipl|Meier|Rudolf|Heislestr.|69|85433|Maus|Deutschland|28/05/1945|08934567|234567|Frau|Dr|Mueller|Rita|Messigasse|33|84432|Filz|Deutschland|13/12/1955|08912345
Y|33970,50|EUR|20/08/2009|Lawyer|4|64646464|Frau||Schmidt|Susanne|Hueftgasse|55|89363|Maus|Deutschland|23/08/1933|08934567|34343434|Herr|Dipl|Meier|Rudolf|Heislestr.|69|85433|Maus|Deutschland|28/05/1945|08934567|234567|Frau|Dr|Mueller|Rita|Messigasse|33|84432|Filz|Deutschland|13/12/1955|08912345|||||||||||||||||||||||||||||||||||||98757|5000785675||Lease|Privat|11/11/2009|48|11/11/2005||380,70|GH|Zielrate|234567899|32343450|Y||BMW 380 s|W54567890PA34569|M-H-3458|07/11/2005||||||||||||||||||||||||
N|10040,20|EUR|20/08/2009|Lawyer|4|4865465|Herr||Schulz|Karl|Nasenweg|77|83354|Schuh|Deutschland|18/01/1965|08972545|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||46789|50004765787||Lease|Privat|16/09/2012|60|16/09/2007||1234,56|OS|ZUS|98765432|32343450|Y||BMW 280 i|W74567890PA34570|M-H-3459|12/09/2007||||||||||||||||||||||||';
utl_file.PUT_LINE(v_out_file,v_header,TRUE);
-- Below will output a row of data which satisfy the requirements.
FOR body_output IN
( SELECT
AccountDetails.CUSTOMERNUMBER, AccountDetails.ACCOUNTNUMBER, CUSTOMERDETAILS.CDTITLE, CUSTOMERDETAILS.CDFIRSTNAME, CUSTOMERDETAILS.CDLASTNAME, AccountDetails.ACCOUNTTYPE,
AccountDetails.ORIGINALCONTRACTENDDATE, AccountDetails.CONTRACTTERM, AccountDetails.CONTRACTENDDATE, AccountDetails.BRANCHAREA, AccountDetails.PRODUCTTYPE,
AccountDetails.HOUSEBANKACCOUNT, AccountDetails.CARMODEL, AccountDetails.CARLICENCE, AccountDetails.ARREARSBALANCE, AccountDetails.CODEBTOR, AccountDetails.GUARANTORNUMBER
FROM AccountDetails
JOIN CUSTOMERDETAILS ON AccountDetails.CUSTOMERNUMBER = CUSTOMERDETAILS.CUSTOMERS1
WHERE EXISTS
( SELECT *
FROM Dcaaccountallocation
JOIN DebtEpisodes ON DebtEpisodes.ACCOUNTID = Dcaaccountallocation.ACCOUNTID
WHERE Dcaaccountallocation.dcaid = 41
AND Dcaaccountallocation.status = 3
AND DebtEpisodes.DCASentDate IS NULL
AND Dcaaccountallocation.ACCOUNTID = AccountDetails.ACCOUNTNUMBER
AND DebtEpisodes.DCAORLAWYER = 'DCA'
LOOP
UTL_FILE.PUT_LINE (v_out_file,
body_output.CUSTOMERNUMBER|| '|' || body_output.ACCOUNTNUMBER|| '|' ||body_output.CDTITLE|| '||' ||body_output.CDFIRSTNAME || '|||||' ||
body_output.CDLASTNAME|| '||||' || body_output.ACCOUNTTYPE|| '|' ||body_output.ORIGINALCONTRACTENDDATE|| '||||' ||body_output.CONTRACTTERM || '|||||' ||
body_output.CONTRACTENDDATE|| '|' || body_output.BRANCHAREA|| '||' ||body_output.PRODUCTTYPE|| '||' ||
body_output.HOUSEBANKACCOUNT|| '|||' || body_output.CARMODEL|| '||||' ||body_output.CARLICENCE|| '|' ||
body_output.ARREARSBALANCE|| '||||' || body_output.CODEBTOR|| '|' ||body_output.GUARANTORnumber);
END LOOP;
UTL_FILE.fclose (v_out_file);
EXCEPTION
WHEN OTHERS THEN
UTL_FILE.put_line (v_out_file, 'failed');
-- If any errors occur when closing the file, then we close the opened file.
IF utl_file.is_open(v_out_file) THEN
UTL_FILE.fclose (v_out_file);
END IF;
END;
UPDATE DebtEpisodes
SET handoverdate = null
WHERE DCAORLAWYER = 'DCA'
AND accountid IN
( SELECT accountid
FROM Dcaaccountallocation
WHERE Dcaaccountallocation.status = 3
AND Dcaaccountallocation.dcaid = 41
END LOOP;
END DCA_BMW_OUT;
Currently, the above codes issue is that although many rows of data have been inputted in all the tables, with regards to the select criteria above (in italics), it only produces one row of data when i expect more than one to appear.
If the query only outputs one row but you're expecting it to produce more than one row, then you need to dissect the statement to find out where the output is being unduly restricted
I was told maybe an outerloop or an inner loop would do the trick, but really stuck on how and where to put it.
Hope this makes sense guys and I would really appreciate your time.
Thanksif i run this particular code
( SELECT
AccountDetails.CUSTOMERNUMBER, AccountDetails.ACCOUNTNUMBER, CUSTOMERDETAILS.CDTITLE, CUSTOMERDETAILS.CDFIRSTNAME, CUSTOMERDETAILS.CDLASTNAME, AccountDetails.ACCOUNTTYPE,
AccountDetails.ORIGINALCONTRACTENDDATE, AccountDetails.CONTRACTTERM, AccountDetails.CONTRACTENDDATE, AccountDetails.BRANCHAREA, AccountDetails.PRODUCTTYPE,
AccountDetails.HOUSEBANKACCOUNT, AccountDetails.CARMODEL, AccountDetails.CARLICENCE, AccountDetails.ARREARSBALANCE, AccountDetails.CODEBTOR, AccountDetails.GUARANTORNUMBER
FROM AccountDetails
JOIN CUSTOMERDETAILS ON AccountDetails.CUSTOMERNUMBER = CUSTOMERDETAILS.CUSTOMERS1
WHERE EXISTS
( SELECT *
FROM Dcaaccountallocation
JOIN DebtEpisodes ON DebtEpisodes.ACCOUNTID = Dcaaccountallocation.ACCOUNTID
WHERE Dcaaccountallocation.dcaid = 41
AND Dcaaccountallocation.status = 2
AND DebtEpisodes.DCASentDate IS NULL
AND Dcaaccountallocation.ACCOUNTID = AccountDetails.ACCOUNTNUMBER
AND DebtEpisodes.DCAORLAWYER = 'DCA'
This returns 1 row of data
However if i run a small part of the above code...
SELECT *
FROM Dcaaccountallocation
JOIN DebtEpisodes ON DebtEpisodes.ACCOUNTID = Dcaaccountallocation.ACCOUNTID
WHERE Dcaaccountallocation.dcaid = 41
AND Dcaaccountallocation.status = 2
It returns a lot of rows with a status of 2
Now i presume what I am going to do is to ensure that all the fields provide satisfactory requirements, with regards to the above code. Although I have many records in all the stated tables already.
:( -
Can you place more than one class in a source file?
If so how is this done because I get the following error when I try to.
IPHunter.java:100: class Arguments is public, should be declared in a file named Arguments.java
public class Arguments {
Thanks in advanceWhen having two classes in the same file, only one should be public, and the file should be named with the name of that class.
Try removing public from the class Arguments, and if you have to use it from classes outside the file, you should have a file Arguments.java
Hope that helps,
Al -
JRMC Profiler - Any way to add more than one class at a time?
Are there any package wildcards or import functions to allow adding multiple classes into the Method Profiler without typing them one class at a time?
Thanks,
-BillHi Bill,
No, currently not. We're considering investing resources into making both the API and user interface of the method profiler in the Management Console more powerful. If you have time, answering the following two questions would be of great help to us!
1. For what are you using the profiler in the Managment Console?
2. Why isn't the information you get from a JRA/JFR recording sufficient for your use case?
Kind regards,
Marcus
Maybe you are looking for
-
Mirroring icon appearing and no external display connected
Hi guys! Recently I bought an iPad and updated my mac to the latest version of OS X Yosemite. All from sudden, the mirroring icon appeared on the top bar of my mac. When I click it I can only open display preferences, which only shows my macbook. I c
-
So very confused... HELP PLEASE
Hey everyone, I'm having a rather irritating problem. I had the MobileMe trial for a while, and it just expired. I had it set to automatically sync my bookmarks and all that stuff.. Now for some reason -- related to mobileme or not -- once the trial
-
Firefox prevents the refreshing of my webmail site. Very annoying, as there may be new information or mail - or even not. But I want to know it of course. It mustn't be up to Firefox!
-
Installation Error: Exit Code 7 on macOS10.6.8
I downloaded Adobe Premiere Elements from the online store today, and cannot install the software on my mac os 10.6.8 I get the following errors: Exit Code: 7 -------------------------------------- Summary -------------------------------------- - 0 f
-
Unable to access my BlackBerryID
Hello dear experts, I have a problem with my BlackBerry ID. At the moment I have created this ID I made a mistake: I chose the wrong appendix for my linked Email-Adress (Meaning [email protected] instead of the correct value [email protected]). Then