1. A method for embedding database procedures in a host application, the method comprising: defining a host application using an application programming language, the host application including at least one class method declared, in the application programming language, as a database procedure; for each of the at least one class method declared as a database procedure, defining the database procedure in a body of the class method using a database-procedure language; and executing the host application on an application server communicatively coupled to a database server, whereby, upon a call of one of the at least one class method, the database procedure defined in that class method is created and executed on the database server.