SQL “Cover”
Defines arguments conversion and SQL name
public static float yearsEmployed(Date d) {
(float) (new java.util.Date().getTime() - d.getTime()) /
(float) (1000 * 60 * 60 * 24 * 365.25);
CREATE OR REPLACE FUNCTION years_employed(d DATE) return NUMBER
‘Employee.yearsEmployed(java.sql.Date) return float’;