here is what i need to take note today, select multiple rows into array, by using bulk collect into...
the code is here:
DECLARE TYPE varray_type IS VARRAY(5) OF VARCHAR2(360 BYTE); v2 varray_type; BEGIN select ..... BULK COLLECT INTO ..... from ..... WHERE ..... END; /
There is no documentation of how to deploy Orbeon to Sun's App Server of Glassfish. I played with glassfish for couple day and here is what I did to deploy Orbeon XForms to GlassFish.
1. Unzip ops.war 2. Open WEB-INF\sun-web.xml, comment out the line with jdbc/db 3. Open WEB-INF\weblogic.xml, comment out the line with jdbc/db 4. Open WEB-INF\resources\apps\doc\pages\intro-install.xml, comment out the line with jdbc/db 5. Update ops.war 6. You need to login as admin of GlassFish, launch the admin console of glassfish, http://localhost:4848 7. Deploy the ops.war file as admin.
Then you are done. You could launch http://localhost:8080/ops. Be patient and wait for a minute for the first time Orbeon launch.
1. Object Oriented Programming Goal: a. Encapsulation b. Polymorphism c. Inheritance
2. Objects in Javascript Object in javascript is collection of namesproperties, javascript allows for the creation of any number of properties in an object at any time. For example: obj = new Object; // constructor -> Object obj.x = 1; // ad-hoc property x obj.y = 2; // ad-hoc property y
3. Define a Class - Object Constructor A new Javascript class is defined by creating a simple function using operator "new". For example: function Foo() { this.x = 1; this.y = 2; } obj = new Foo;
4. What is Prototype Used in inheritance. In javascript, object can inherit properties from another object (prototype). We could say, Prototype = parent class. Prototype means that if a class is inherited from another class, then it can borrow all of its methods, so we don't need to redefine them. (look at http://webdevelopersjournal.com/articles/jsintro3/js_begin3.html)
5. Define and call methods in a class a. Assign functions to a constructor's protoype function Foo() { this.x = 1; } Foo.prototype.AddX = function (y) { this.x += y; } obj = new Foo; obj.Add(5);
6. Define a sub-class Standard paradigm is to use the prototype chain to implement the inheritance of methods from a super class. function A() // define super class { this.x = 1; } A.prototype.Doit = function () { thisx += 1; } B.prototype = new A; // define sub-class B.prototype.constructor = B; function B() { A.call(this); // call super-class constructor this.y = 2; } B.prototype.DoIt = function () { A.prototype.DoIt.call(this); this.y + = 1; } b = new B(); b.DoIt();
7. Private memebers in Javascript Variables defined in the constructor will persist beyond the lifetime of the construction function itself. To access these variables, you need to create local functions within the scope of constructor. function A() { var x = 7; this.GetX = function () {return x;} }