How to import one package in another package in java
HI ,
I want call a class which is located in package pckage1 into another package package2s class..
could any one help me on this...
realy that would be appricateble
Use import package.ClassName;
Similar Messages
-
How to import only procedures, functions, and packages only
Hi everybody...
How to import only procedures, functions, and packages only from one user to another user.
Thanks in advance
palThanks for your reply...i did the following..can you please help from this how to proceed
---------------- getcode.sql -------------------------------
set feedback off
set heading off
set termout off
set linesize 1000
set trimspool on
set verify off
spool &1..sql
prompt set define off
select decode( type||'-'||to_char(line,'fm99999'),
'PACKAGE BODY-1', '/'||chr(10),
null) ||
decode(line,1,'create or replace ', '' ) ||
text text
from user_source
where name = upper('&&1')
order by type, line;
prompt /
prompt set define on
spool off
set feedback on
set heading on
set termout on
set linesize 100
------------------- getallcode.sql -------------------------
set termout off
set heading off
set feedback off
set linesize 50
spool c:\xtmpx.sql
select '@getcode ' || object_name
from user_objects
where object_type in ( 'PROCEDURE', 'FUNCTION', 'PACKAGE' )
spool off
spool c:\getallcode_INSTALL
select '@' || object_name
from user_objects
where object_type in ( 'PROCEDURE', 'FUNCTION', 'PACKAGE' )
spool off
set heading on
set feedback on
set linesize 130
set termout on
@xtmpx.sql
I did this one user and created the xtmpx.sql
and getallcode_INSTALL.LST.
From this, how to proceed to run these in another user.
Thanks,
Pal -
I have multiple libraries. I would like to import one project into another library. How?
Select the project in the Library Inspector and export the project as library. Then import this library into your other Aperture library.
File > Export > Project as New Library
File > Import > Library
Regards
Léonie -
How to refer one view from another view?
Hi,
I have 2 views in my Adobe Flash Builder mobile app. I need to refer the first view in my second view.
How to refer one view from another view? Or how to create a reference to a view wherever needed?I don't need any data from my first view. In a certain flow, I need to make my first view to be invisible.
for eg., My First view is in portrait mode. I change the device to Landscape. In the landscape mode, I want to show a completely different view (second view).
In this case, what happens is, I see my first view in Landscape mode for a second. Then the second view appears. When I change to Landscape mode, only the second view should be seen. I need to make my first view to be completely invisible in the OnOrientationChanging event of
StageOrientationEvent
As stage object and StageOrientationEvent works at application level, I need to know how to refer my first view object in the application level.
private function onOrientationChanging(soe:StageOrientationEvent):void
MyFirstView.Visible = False; ====> don't know how to refer MyFirstView here
Is my question clear now? -
How to call one JSFF into another JSFF
Hi,
I am very new to ADf. Could you please tell me how to call one JSFF inside another JSFF. We have a common pop-up written in one JSFF. Is there any best approach to get this pop-up into other JSFF.
Thanks in Advance.
Regards
NarasimhaIf you want to resue the jsff code, make use of bounded task flow with page fragment and then use it as a region.
For more details you can refer: http://docs.oracle.com/cd/E21764_01/web.1111/b31974/taskflows_regions.htm
One more:
http://docs.oracle.com/cd/E18941_01/tutorials/jdtut_11r2_57/jdtut_11r2_57.html -
How to include one view into another view
Hi SDN's,
Could any please tell me,How to include one view into another view.
In my requirment.I want to create a 'Z' view for an interface .In that view i have to take,
1) Ship-to-email adrr by
LIKP-KUNNR -> KNA1-ADRNR
KNA1-ADRNR -> ADR6-ADDRESNUMBER.
2) E-mail addr of person who created the document.i.e
LIKP-ERNAM -> USR21-BNAME.
USR21-ADDRESNUMBER -> ADR6-ADDRESNUMBER
USR21-PERSNUMBER -> ADR6-PERSNUMBER.
In both the case we have to pass ADDRESSNUMBER to ADR6 table.
If we pass these condition it fails,B'Coz at a time it passes Two ADDRESSNUMBER and a PERSNUMBER.
So i created two which fetches only the email addr of person who created the document.and another view fetches Ship-to-email addr.
Now i want to include the second view into first view . Is it possible?or please
tell me someother way to get these email addresses in a single view.hi
as per my knowledge, nested views are not possible. However, while creating a new view, selection method will not giv u option to select the already created view(S) except the tables..i think so.
regards,
shamim -
How to call one program from another program
Hai,
How to call one program through another program.
Example.
I have two programs 1.ZPROG1 2. ZPROG2.
When i execute ZPROG1 at that time it should call ZPROG2.Hi ,
u can use submit statement to call a program .
DATA: text TYPE c LENGTH 10,
rspar_tab TYPE TABLE OF rsparams,
rspar_line LIKE LINE OF rspar_tab,
range_tab LIKE RANGE OF text,
range_line LIKE LINE OF range_tab.
rspar_line-selname = 'SELCRIT1'.
rspar_line-kind = 'S'.
rspar_line-sign = 'I'.
rspar_line-option = 'EQ'.
rspar_line-low = 'ABAP'.
APPEND rspar_line TO rspar_tab.
range_line-sign = 'E'.
range_line-option = 'EQ'.
range_line-low = 'H'.
APPEND range_line TO range_tab.
range_line-sign = 'E'.
range_line-option = 'EQ'.
range_line-low = 'K'.
APPEND range_line TO range_tab.
SUBMIT report1 USING SELECTION-SCREEN '1100'
WITH SELECTION-TABLE rspar_tab
WITH selcrit2 BETWEEN 'H' AND 'K'
WITH selcrit2 IN range_tab
AND RETURN.
regards,
Santosh thorat -
How to call one EJB in another EJB?
How to call one EJB in another EJB? Please explain with some example code.
To refer a Ejb from another Ejb include <ejb-ref> element in ejb-jar.xml
<session>
<ejb-name>EjbA</ejb-name>
<ejb-ref>
<ejb-ref-name>EjbB</ejb-ref-name>
<ejb-ref-type>Entity</ejb-ref-type>
<home>com.ejb.EjbBHome</home>
<remote>com.ejb.EjbB</remote>
</ejb-ref>
</session>
Include a <reference-descriptor> in weblogic-ejb-jar.xml
<weblogic-enterprise-bean>
<ejb-name>EjbA</ejb-name>
<reference-descriptor>
<ejb-reference-description>
<ejb-ref-name>EjbB</ejb-ref-name>
<jndi-name>com.ejb.EjbBHome</jndi-name>
</ejb-reference-description>
</reference-descriptor>
</weblogic-enterprise-bean>
In EjbA Bean class refer to EjbB with
a remote reference to EjbB.
InitialContext initialContext=new InitialContext();
EjbBHome EjbBHome=(EjbBHome)
initialContext.lookup("com.ejb.EjbBHome");
EjbB ejbB=EjbBHome.findByPrimaryKey(primarykey); -
How to import a table from another oracle database ?
Hi all ,
i could like to use pl/sql to import one table from another oracle database server ?
is it possible to do this ?
A server B server
table: test <------------------------> table : newtest
the tns profile already configurated . the connection is ready .
thanks a lot !
Best Regards,
Carlosif i don't have TEST table on server B whether COPY command will create this table on server B with the same structure ? If you specify CREATE as a clause the table will be created:
SQL> help copy
COPY
COPY copies data from a query to a table in a local or remote
database. COPY supports CHAR, DATE, LONG, NUMBER and VARCHAR2.
COPY {FROM database | TO database | FROM database TO database}
APPENDCREATE|INSERT|REPLACE} destination_table
[(column, column, column, ...)] USING query
where database has the following syntax:
username[password]@connect_identifier -
How to import one photo into iphoto 11
how to import one photo into iphoto 11 in the exact order i want it?
How many orders do you need to import one photo?
Perhaps you need to explain that again
Regards
TD -
How to Import one slideshow from Photoshop Elements 5 into 8?
Hi!
Please advise on how to import one slideshow created in Photoshop Elements 5 in to Photoshop Elements 8.
The customer is trying to do the same, but all he is getting is text captions, not the images.
I tried doing the same on my station, but could not re-create the problem.
Please advise. Any link would be highly appreciable.
Thanks...Hi! Thanx for your response.
It is not clear that he has imported it as wmv or pdf, but the slideshow has to be imported in such a manner that it can still be edited (Captions, effects etc.)
Creating a wmv or pdf will not allow the same.
Any Ideas? -
How to copy one request to another request
Hi all,
How to copy one request to another new request?
I have a released workbench request in which it has around 1200 Objects (including data elements, domains, programs and many more), now i need to copy all these objects into a new request.
I can do this by SE03 (Include Objects in a Transport Request ) transaction, but it is a lengthy process.
Is there any way to copy directly in one go.
Plz help...
Regards,
Satish Reddy D.Hi,
The thing is like this....
i have a released request in which we have more than 1200 objects, in that i dont need 10 objects.
so when i create it as copy of transport request, i just deleted those 10 objects and saved.
Now, if i transport the new request how many objects will go? 1200 or 1190?
in the new request i am getting the old request under Comment: Object List Included.
is it necessary to transport the old request?
i need to transport only 1190 objects.
Regards,
Satish Reddy.
Edited by: Sathish Reddy on Jan 28, 2010 2:18 PM -
Calling package from another package
Hi gurus,
Quick question
Say i m in user1 schema.
I want to call package from another package in the same schema. So do i need to grant permission to the calling package to call.Thank you!!Why don't you test it?
create or replace package pack2
is
procedure t2;
end;
Package created.
create or replace package body pack2
is
procedure t2
is
begin
dbms_output.put_line('Inside Pack2 And t2');
end;
end;
Package Body created.
create or replace package pack1
is
procedure t1;
end;
Package created.
create or replace package body pack1
is
procedure t1
is
begin
pack2.t2;
dbms_output.put_line('Inside Pack1 And t1');
end;
end;
Package Body created.
begin
pack1.t1;
end;
Inside Pack2 And t2
Inside Pack1 And t1
Statement processed.
0.11 secondsRegards.
Satyaki De -
How to import a class from a package at the same level
Hello friends,
i have a class as Plaf.java
as
package org.vaibhav.swing.plaf;
import java.awt.*;
import javax.swing.*;
public class Plaf {
other code
}as you see, this is in org.vaibhav.swing.plaf package.
I have one more class as
package org.vaibhav.swing.frames;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class StartFrame extends JFrame implements ActionListener {
other code
}and this class is in package org.vaibhav.swing.frames
Please hlp me how to use the class Plaf in StartFrame.java. Rather what import statement should i use in StartFrame.java.
please help.
thank you
Message was edited by:
vaibhavpinglebut it then gives me this error
StartFrame.java:11: package org.vaibhav.swing.plaf
does not exist
import org.vaibhav.swing.plaf.*;
Have you first compiled Plaf.java and saved it in this directory strucuture
/org/vaibhav/swing/plaf/
And also have you set your classpath to the parent directory of org folder.
Message was edited by:
qUesT_foR_knOwLeDge -
Hi there,
I am working on my thesis with several Pages documents (for the first time). And I really have searched all over the Internet to find an answer to exactly my question but I cannot find it.
First my question was: How can I import one Pages document into another one? I found the answer on that (I think) and there is nothing else than just make a new section and copy/paste it in.
But then another issue pops up: I cannot [cmd]+A my whole document including the texboxes to paste it in the other Pages document. Then the document will be paste without the textboxes (and I have quite a lot of them in that document) and the text will not be at the right place.
So please explain to me: How I can combine two Pages documents and keep them exactly the way they are? Is that even possible?
I thank you so much in advance!Hi Fruhulda,
I have already tried to mark the textboxes in line but that did not work, and besides then the text and the boxes won't be at the rigt places either. Thank you for your reply .
Maybe you are looking for
-
Configuring a multiple IDOC-File using BPM
HI, My scenario involves 2different idocs which are to be mapped to a file structure,the steps that i have followed in IR is , 1.Create target MesageType message Interfaces. 2.Create 2 Abs interfaces based on IDOC 3.Create 1 Abs for o/p of BPM. 4.Cre
-
How do you change the keyboard so that it types the words for you
How do you change the keyboard to show the words that you might be typing? I had it when I first updated but somehow I changed it>
-
I want to maintain a list on one of the pages on my website. How can that be done in iWeb? a spreadsheet, a text file? Would I ftp it, open iWeb every time and edit and repost? Any suggestions would be appreciated Thanks
-
From Where POP-UP is coming?
Hi Experts, I hv developed a ALV report,so, When I am running it, I am getting one Info. POP-UP saying that, <i><b>"Business Partner 123456789 is marked for deletion"</b></i> (Actually, I hv given one Info MESSAGE for some other purpose, this message
-
How do you change users on the new ipad
Need help stwitching users on the new iPad.