// Define the method that we prototyped function verifyWork(){ // Check to see if the type property we added is set to a valid value if(this.type == "work"){ return true; }else{ return false; } } // Create a new property and method of the Stproc object. Stproc.prototype.type = null; Stproc.prototype.isWORK = verifyWork; // Create a pool of connections, a connection, a stored procedure, // and a result set var myPool = new DbPool("ORACLE", "mySID", "myApp", "appsPWD", "myTNS"); var myConn = myPool.connection('Employees', 15); var myStproc = myConn.storedProc("sp_employees"); // Using the prototype we defined, assign the type property myStproc.type = "work"; // Check the type of the stored procedure to see if it is valid if(myStproc.isWORK()){ write(myStproc + " has a valid type of " + myStproc.type); }else{ write(myStproc + " has an invalid type of " + myStproc.type); }