|
Java Examples for ASE 12.5 |
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Routines2
A class with a bestTwoEmpsmethod for an SQLJ create procedure that returns output parameter values.
Constructor Summary | |
Routines2()
|
Method Summary | |
static void |
bestTwoEmps(java.lang.String[] n1,
java.lang.String[] id1,
java.math.BigDecimal[] s1,
int[] r1,
java.lang.String[] n2,
java.lang.String[] id2,
java.math.BigDecimal[] s2,
int[] r2,
int regionParm)
A method that provides the column data for the top two employees whose region is above a given value. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public Routines2()
Method Detail |
public static void bestTwoEmps(java.lang.String[] n1, java.lang.String[] id1, java.math.BigDecimal[] s1, int[] r1, java.lang.String[] n2, java.lang.String[] id2, java.math.BigDecimal[] s2, int[] r2, int regionParm) throws java.sql.SQLException
The method is intended for an SQLJ create procedure such as the following:
create procedure best2 (out n1 varchar(50), out id1 varchar(5), out s1 decimal(6,2), out r1 integer, out n2 varchar(50), out id2 varchar(50), out r2 integer, out s2 decimal(6,2), in region integer) language java parameter style java external name 'Routines2.bestTwoEmps(java.lang.String[], java.lang.String[], int[], java.math.BigDecimal[], java.lang.String[], java.lang.String[], int[], java.math.BigDecimal[], int)'
That SQLJ procedure "best2" would be called in SQL as follows:
declare @n1 varchar(50), @id1 varchar(5),
n1
- a string array for the first output nameid1
- a string array for the first output idr1
- a string array for the first output regions1
- a string array for the first output salesn2
- a string array for the second output nameid2
- a string array for the second output idr2
- a string array for the second output regions2
- a string array for the second output salesregionParm
- an int for the given region
|
Java Examples for ASE 12.5 |
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |