|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.h2.samples.FunctionMultiReturn
public class FunctionMultiReturn
User defined functions can return a result set, and can therefore be used like a table. This sample application uses such a function to convert polar to cartesian coordinates.
Constructor Summary | |
---|---|
FunctionMultiReturn()
|
Method Summary | |
---|---|
static void |
main(java.lang.String... args)
This method is called when executing this sample application from the command line. |
static java.sql.ResultSet |
polar2Cartesian(java.lang.Double r,
java.lang.Double alpha)
Convert polar coordinates to cartesian coordinates. |
static java.lang.Object[] |
polar2CartesianArray(java.lang.Double r,
java.lang.Double alpha)
Convert polar coordinates to cartesian coordinates. |
static java.sql.ResultSet |
polar2CartesianSet(java.sql.Connection conn,
java.lang.String query)
Convert a set of polar coordinates to cartesian coordinates. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FunctionMultiReturn()
Method Detail |
---|
public static void main(java.lang.String... args) throws java.lang.Exception
args
- the command line parameters
java.lang.Exception
public static java.sql.ResultSet polar2Cartesian(java.lang.Double r, java.lang.Double alpha)
r
- the distance from the point 0/0alpha
- the angle
public static java.lang.Object[] polar2CartesianArray(java.lang.Double r, java.lang.Double alpha)
r
- the distance from the point 0/0alpha
- the angle
public static java.sql.ResultSet polar2CartesianSet(java.sql.Connection conn, java.lang.String query) throws java.sql.SQLException
conn
- the connectionquery
- the query
java.sql.SQLException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |