Where the set value come from

where is the set value come from, can the value come from Servlet
create or replace
PACKAGE BODY TRIGGER_test as
function setStudentNum(sn in varchar2) return varchar2 as
Begin
  staff_num := sn;
  return ('Success');
Exception
When OTHERS then
  return ('Error');
End setStudentNum;
function getStudentNum return varchar2 as
Begin
  if (staff_num is not null) then
   return (staff_num);
  else
   return ('undefine');
  end if;
End getStudentNum;
end TRIGGER_test;

Hjava wrote:
>i am assuming that the function trigger_test.setStudentNum() gets executed first which will initialize the staff_num variabl
when and how?
Some 'other' bit of code somewhere.  How do we know, as we don't have your application/process code.  There will be something somewhere that calls the setStudentName function, so that when the getStudentName function is called it can return a value.  Values don't just magically appear.
The only time there may be some code that initializes a value (other than in the declaration of the variable itself) is in a package body execution section e.g.
SQL> create or replace PACKAGE TRIGGER_test as
  2    function setStudentNum(sn in varchar2) return varchar2;
  3    function getStudentNum return varchar2;
  4  end TRIGGER_test;
  5  /
Package created.
SQL> create or replace PACKAGE BODY TRIGGER_test as
  2    staff_num varchar2(30);
  3    function setStudentNum(sn in varchar2) return varchar2 as
  4    Begin
  5      staff_num := sn;
  6      return ('Success');
  7    End setStudentNum;
  8
  9    function getStudentNum return varchar2 as
10    Begin
11      return (staff_num);
12    End getStudentNum;
13  begin
14    staff_num := 'undefined';
15  end TRIGGER_test;
16  /
Package body created.
SQL> select trigger_test.getStudentNum() from dual;
TRIGGER_TEST.GETSTUDENTNUM()
undefined
SQL> select trigger_test.setStudentNum('1234') from dual;
TRIGGER_TEST.SETSTUDENTNUM('1234')
Success
SQL> select trigger_test.getStudentNum() from dual;
TRIGGER_TEST.GETSTUDENTNUM()
1234
As you can see, the first time the package is instantiated in memory (the first time we call any function in it), the package body execution section is called which sets the variable to "undefined" in this example, before the function itself is called to return what the value is.

Similar Messages

  • Where the **** did Limewire come from on itunes?

    I have firewall, anti-virus anti everything...just connected my brand new ipod 60 to computer and I have a Limewire playlist in Itunes?????
    How can I get shot of it please, and more importantly how the **** did it get there?
    James

    James,
    Does someone else have access to your computer, if not then that is a more worrying situation and I'm sorry I can't help with that one? However to answer the simpler part of your question. if Limewire has been downloaded by whatever means, then it will create a playlist in iTunes. The play list is simple enough to dispose of, just highlight it and right click to choose delete. After that you can search for and uninstall Limewire itself.

  • Where do the serial numbers come from?

    I am new to ALM. I get how it is supposed to work. My question is where to the serial numbers come from? I assign my e-licenses to a serial number and all is good. But, we have purchased MANY copies of Acrobat Pro v.8 and I only see three serial numbers to assign e-license to?!?!?!?!?!
    Thanks!
    - Dave

    Dave,
    If you have purchased through one of Adobe's AOO licensing programs, you can find your serial numbers by going to "Retrieve serial numbers" in the Licensing Web Site. Here you should find one Windows and one Mac serial number for Acrobat 8 Pro. You can use these serial numbers for all the copies of Acrobat you have purchased -- you will not receive a new serial number for every copy.
    Katherine

  • When my wife tries to update one of her apps a strange Apple ID pops up. Her Apple ID is correct in settings and in the apple store. What does this mean? Where did the other one come from?

    When my wife tries to update one of her apps a strange Apple ID pops up. Her Apple ID is correct in settings and in the apple store. What does this mean? Where did the other one come from?

    There is something on your iPhone (a music file, iBook, document or video) that belongs to another Apple ID.  Only your wife would know how that file arrived there.  Your iPhone is asking for the correct Apple ID for all of the files that are resident on the iPhone.

  • Where does the default route come from ?

    Dear All 
    As we know, the edge router in client side gets default route from ISP' edge router. Where does the default route come from in ISP? If the ISP edge router has full route table, it produces there. If not, it comes from its upstream router until full routes table(only BGP). Please correct me if I am wrong. Thank you. 

    Hello.
    While establishing BGP with ISP, there are three options for a client:
    > Default route (used in general) - client router forwards every request (for destination route) to ISP router.
    > Full route - ISP router's complete routing table would be received and maintained in client router.
    > Partial route - Only specific route would be received from ISP (Head office - Branch office scenario)
    ISP generate default route from their peering router that should have full routing table or knowledge of the router having it. A local ISP may generate default to their client and have one received from their upstream or global / larger ISP. Hope this helps.

  • How can I make rectangular speech bubbles that adapt to the text inside them without the "arrow" that points towards where the bubble is coming from getting changed?

    I have to make lots of speech bubbles (150+) that all have texts inside them which differ in length. I want the speech bubbles to look the same in terms of style, but I need different sizes of course for each text. This means that the rectangular part of the speech bubble should adapt in length and width to the text inside it, while the "arrow" pointing towards where the bubble is coming from (e.g. the person who speaks) should stay the same on every bubble. So is there a way or a workaround to make such "adapting" speech bubbles?
    I appreciate any kinds of help
    Thanks in advance!

    Here's another way I found:
    1. Draw a speech bubble. Mine is a rectangle with rounded corners and a triangular pointer added with Pathfinder > Add
    2. Drag out a frame the same size as the speech bubble. Select the speech bubble and Copy; then select the empty frame and choose Edit > Paste Into...
    3. Alt-Drag the frame with the pasted speech bubble to make a copy, then crop one copy to leave only the top of the bubble showing, and crop the other copy to leave only the bottom.
    4. Drag out a text frame and insert a table consisting of 1 column, 3 rows. Set the text frame to Autosize > Height Only.
    5. Set the stroke/fill of the top and bottom rows to none, and style the middle row to match the speech bubble, (in my case a white fill and 2pt stroke; left and right).
    6. Anchor (paste) a copy of the speech bubble top in the top table row, and a copy of the speech bubble bottom in the bottom row.
    Getting the 3 parts to match up with is where you just have to work on it until you get it right. Use the positioning tools in Anchored Object options and the column width setting in Cell options to line everything up.
    Enter your text in the middle row. (Hey, look at that...a valid application of Comic Sans!) With the Cell Height set to an "At Least" setting, the cell will expand to fit whatever text you enter, pushing the the bottom row down, with the text frame auto-sizing to keep everything in play...

  • How can I make auto the continue and come from?

    Hi:
    Please sorry my grammar. I try to explain better as I can.
    Let's see. I have included some internal links such as "continued on page XX" and "comes from page XX" for some items. The problem is that as I add artwork or text, the number of pages varies, and so I have to edit the "continue" and "comes from" manually. Is there any way that InDesign assign the number of pages automatically? I mean, for example, when I indicate to a text box where you should continue (usually another text box), just that I do but whith the page number of the expressions "continue" and "comes from".
    I hope that I explain it well.
    Regards from Lima, Perú

    In English, these are called Jump Lines. If you already have a text frame that reads: continued on page XX, delete the XX, place the cursor after continued on page and go to Type>Insert Special Character>Markers>Next Page Number. Do the same with the continued from page XX, but use Type>Insert Special Character>Markers>Previous Page Number.
    If you have a story that spans two or more text frames, placing a jump line frame so that it touches one of the  frames of a threadded story, it will display either the page number of the previous or next frame in the thread.

  • Where Does These Handles Come From In Color v1?

    When i add handles in Color where are they coming from?
    i.e.
    if the clip goes to color as a say 3 second clip. I then grade it and add a 5 frame handle.
    Does the 5 frames come from the clip in motion or doe it come from the footage before an after the fcp edit points?
    if it comes from what i sent then how do i maintain my edit/style rhythm of cuts?

    in@ 00:03:20 and then out@ 00:04:20...
    If those numbers are the source time code *at 23.98 fps*, there would be 24 frames in that clip. If you did not add handles, a new clip (#_1.mov) would be rendered and placed in the COLOR project render directory of your choosing. On Send To FCP, a new clip with the old reference name (but pointing to the new media) will appear on the FCP sequence and it will be 24 frames starting at 3:20 and ending at 4:20.
    If you request the addition of 4-frame handles, the clip will be rendered with a duration of 2444=32 frames. The clip "#_1.mov" source time code will be 3:16 to 5:00 (remembering this is 24 fps). When it appears on the FCP timeline, a one-second clip will show up and it will be In/3:20, Out/4:20, but you will be able to slip it +/- 4 frames or add up to a 4-frame transition outside the
    selected pickup points.
    It has not much to do with the master time code of the edit sequence, the handles only get added to the "source" clip, but it does not affect its pickup or duration on the master sequence. On the Master sequence, you would still only see the 24 original frames... but if you wanted to trim the edit a couple of frames, you would have them.
    You must understand that COLOR generates new independent media, usually ONLY the selected footage on the timeline. Handles are a way of generating extra media in an attempt to build in some post-lock flexibility, and they do not affect the edited sequence selection in any other way.
    jPo

  • Table where the VAT value is stored

    Hello!
                          Could any one tell me where the VAT value is stored for the particular matnr. I am searching the table KONH- KSCHL where the value is stored at JVAT. but there was 40% of the matnr only having JVAT value.I am taking the price from KONH.So from where i have to take the VAT value.
    -M.Suba

    For excise details you will have to use J_1iexchdr, J_1iexcdtl,
    For Tax related data use KONV
    Thanks & Regards
    JP

  • Why all the domain values disappeared from ESB control after chinese map?

    hi,
    when I creating a domain value in chinese in the ESB control and confirm it, After I restart the
    soa service, all the domain values that I created before and the one in chinese disappeared.
    Although the domain values in english desappeared, in the code they are still can be used.
    But the domain values in chinese can not be used.
    All the maps(both english and chinese ) are in DVM Repository.
    Can you help me ??? Why all the domain values disappeared from ESB control ?? thanks
    wanglinli

    two collegues of mine ran into a similiar problem. Their ESB console seemed empty as well.Until one of them let the console open for about 10 minutes and the services/system re-appeared.
    Indicating that when the services do not show up could also be caused by a serious performance glitch or the services are calling external systems which time out.
    Another option is to wait for a few minutes and see if your services etc show up again.
    I don't know where this performance degradation is coming from though. The only thing I noticed is that the ORAESB schema ( advanced install ) is installing al of its objects in the USERS tablespace and that most ( almost all ) tables do not have any indexes / pk / fk's on them.
    Maybe one or two indexes could speed up the ESB repository considerably.
    Dave, In the upcoming 10.1.3.3 release is the repository in any way altered? Default tablespace? PK/FK and/or extra indices on certain tables/columns?

  • Where do array Methods Come From?

    I've been curious about this for awhile. I can't find anything useful on google; all I end up with are array tutorials, which don't go into the "meat and potatoes" of my question at all.
    It's probably easiest to point out what I'm asking by posting the following first:
    public class TestArray{
       public static void main(String [] args){
          String [] catSounds = {"meow", "purr", "growl"};
          System.out.println(catSounds.toString());
          System.out.println("length: " + catSounds.length);
    }Okay, so given a basic String array (could be an array of anything, including primitives, but I just used String for simplicity's sake), we can call functions on it, like toString above. However, for lack of better wording, where does that method come from? I used eclipse's "open declaration" feature on the method, and it took me to toString in Object. But I didn't think a basic array was an Object?
    Similarly, where is the length field stored (eclipse's "open declaration" feature doesn't work on it)? It has to be encapsulated by some class somewhere, right?
    Is there a hidden class that extends Object (duh) and encapsulates the information for an array, and does the java compiler just translate the array syntax into calls to that class? Or am I missing something?

    kevinaworkman wrote:
    That link explains some of it. It explains all of it. ;o)
    So was I correct when I said there's a "hidden" (inaccessible and not listed in the API) class that extends Object and encapsulates the array data?Sort of yes, sort of no.
    10.8 Class Objects for Arrays
    Every array has an associated Class object, shared with all other arrays with the same component type. The direct superclass of an array type is Object. Every array type implements the interfaces Cloneable and java.io.Serializable.
    There isn't a general single Array class the way you're thinking (java.lang.reflect.Array isn't what you're looking for). Arrays have special support in the Java language, as described in the JLS.
    Why go through the trouble of having special syntax for an array if there's a class that could have been used just like any other class?Tradition.
    ~

  • Where did these tracks come from?

    I was helping a friend hook up his IPOD. His IPOD was given to him by a friend. ITUNES was already on his PC.
    When I connected the IPOD, ITUNES started "converting" a bunch of songs from one format to antoher. It took so long I had to cancel it. But already there were about 10 albums that had been "converted" and now appeared in his library.
    I just assumed these were songs from his IPOD. But when I browsed the IPOD using the ipod screen, it shows up empty.
    (1) Where did these songs come from?
    (2) How would I get the rest of the songs, wherever they are?
    (NOTE FYI -- I also am having a problem updating, can't update ipod, option is greyed out. I tried "restoring" the ipod, no help. I didn't do a reset because I did't know how. I will when I return)

    I'm always willing to be proven wrong, but to my understanding iTunes will under no circumstances add music from your iPod into the library on the PC. There is no supported way to move music from the iPod to the PC.
    There are, however, 3rd party applications that will do this.
    As for where the imported music was coming from, my guess would be an existing Mp3 or wma music collection the person had on their PC. If itunes searched the pc for music when it first was installed, and found files not in .m4a format, it would convert them and import them into the library.
    What are the tracks? It could have even been importing the sample music or system sounds that come with windows, I suppose.

  • Does anyone know where this BAPI definition come from?

    Hi, All,
    See below example definition for BAPI_FUNCLOC_GETLIST for business object FunctionalLocation and method GetList.
    <doc:FunctionalLocation.GetList xmlns:doc="urn:sap-com:document:sap:business" xmlns="">
    <MaintplantRa>
    <item>
    <SIGN></SIGN>
    <OPTION></OPTION>
    <LOW></LOW>
    <HIGH></HIGH>
    </item>
    </MaintplantRa>
    <PlangroupRa>
    <item>
    <SIGN></SIGN>
    <OPTION></OPTION>
    <LOW></LOW>
    <HIGH></HIGH>
    </item>
    </PlangroupRa>
    <DescriptRa>
    <item>
    <SIGN></SIGN>
    <OPTION></OPTION>
    <LOW></LOW>
    <HIGH></HIGH>
    </item>
    </DescriptRa>
    <FunclocRa>
    <item>
    <SIGN></SIGN>
    <OPTION></OPTION>
    <LOW></LOW>
    <HIGH></HIGH>
    </item>
    </FunclocRa>
    <SortfieldRa>
    <item>
    <SIGN></SIGN>
    <OPTION></OPTION>
    <LOW></LOW>
    <HIGH></HIGH>
    </item>
    </SortfieldRa>
    <PlanplantRa>
    <item>
    <SIGN></SIGN>
    <OPTION></OPTION>
    <LOW></LOW>
    <HIGH></HIGH>
    </item>
    </PlanplantRa>
    <FunclocList>
    <item>
    <FUNCTLOCATION></FUNCTLOCATION>
    <FUNCLOC></FUNCLOC>
    <LABEL_SYST></LABEL_SYST>
    <DESCRIPT></DESCRIPT>
    <STRIND></STRIND>
    <CATEGORY></CATEGORY>
    <SUPFLOC></SUPFLOC>
    <PLANPLANT></PLANPLANT>
    <MAINTPLANT></MAINTPLANT>
    <PLANGROUP></PLANGROUP>
    <SORTFIELD></SORTFIELD>
    </item>
    </FunclocList>
    </doc:FunctionalLocation.GetList>
    Does anyone know where this BAPI definition come from? How do i get this BAPI definition from SAP? Does SAP still support the BAPI definition like this? Thanks a lot!

    > Does anyone know where this BAPI definition come from? How do i get this BAPI definition from SAP? Does SAP still support the BAPI definition like this? Thanks a lot!
    Hi,
    If you are wondering, how BAPIs/RFCs come into XI system then below are few points to be considered.
    1. First of all there should be a connection between XI & R3 system to communicate with each other.
    2. Scecondly the BAPIs/RFCs in R3 system should be "Remote enabled".
    3. Login to Integratin Repository then open your corresponding namespace and expand Imported Objects then right click on RFCs and press continue. It will ask you to provide the IP address, User ID & passord of R3 system. Once you provide the correct authonication details it will return al list of all BAPIS/RFCs present in R3 system. Just select you BAPI and continue. Once it is done you can see you corresponding BAPI under Imported objects.
    I hope the above information will help you.
    Regards,
    Sarvesh

  • Where did debug console come from and is it a good thing?, Where did debug console come from and is it a good thing?

    Where did debug console come from and is it a good thing? Should I keep it on?

    Unless you are a programmer or web developer, it really serves no purpose. To turn it off, open the Settings app and select Safari, Advanced (scroll down to get to it), slide the button to turn it off.

  • TS3694 when doing a restore to try and solve a wifi problem with my iphone 5 i got past the point where the software was extracted from my phone but then an error message came up saying that the phone could not be restored because of an unknown error (301

    when attempting a restore,  as suggested, to try and fix a week wifi signal on my iphone 5 I got past the point where the sopftware was extracted from my phone but then an error message appeared saying that the phone could not be restored becase of an unknown error (3014). I have tried about 20 times to make it work after trying a number of suggestions I have seen online. My phone gives me know response accept showing a picture of the cable and the itunes symble an the screen permanently - please help

    Hello JD_NINJA,
    Thanks for using Apple Support Communities.
    Error 9006 when restoring your iOS device indicates that there is security software on your computer which is preventing connection to the Apple server or your device.  To troubleshoot this issue please follow the directions below.
    Check your security software
    Related errors: 2, 4, 6, 9, 1611, 9006. Sometimes security software can stop your device from communicating with either the Apple update server or with your device.
    Check your security software and settings to make sure that they aren't blocking a connection to the Apple servers.
    Get help with iOS update and restore errors - Apple Support
    When restoring your iPhone, please make sure to follow the directions in the link below to properly restore.
    Restore your device from an iCloud or iTunes backup - Apple Support
    Take care,
    Alex H.

Maybe you are looking for

  • How do I write an array of strings to a single Excel row?

    I'd like to write test data, as an array of strings, to an Excel file. Attached is my attempt to modify one of the Labview 6.1 example files. This modified example will write the data to the correct row, which is determined by serial # of the UUT, bu

  • SSRS 2008 R2 rendering error when executing a report

    The value '1' is invalid. Valid values are between '0' and '1'. (rrRenderingError) I am receiving the above error when running the report in SSRS 2008 R2. It has run find in the 2005 version. After research, I read that this issue caused by tablix sp

  • HP Mini 110-1030NR keyboard

    Replacement keyboards for the orginal keyboard on my HP Mini 110 have exhibited a common fault, the <Left Control> key is stuck on (not mechanically stuck however). I have verified fault with 3rd party keyboard test programs. Is it the driver, or som

  • Quicktime Normal size incorrect from P2

    When I import 720P P2 footage from my HVX, they are the wrong dimensions. They appear to be 1248 x 702, when they should be 1280 x 720. When I import the same clip using P2 Log software, they quicktime files are correct. Any clues as to what is going

  • Subquery issue

    SELECT m_label, (SELECT COUNT(c_id) FROM tbl_count WHERE tbl_main_fk = m_id) AS totalCount FROM tbl_main It's a simple subquery code to get the total count of the related table, and the result return perfectly when I click test, but it will fail in c