Methods Summary |
---|
public java.lang.Integer | getAge()
Integer age = null;
if (conn!=null) {
Person thisPerson = this;
CallableStatement cstmt =
conn.prepareCall("{ ? = call " + getSQLTypeName() + ".GET_AGE( ? ) }");
cstmt.registerOutParameter(1, Types.NUMERIC);
cstmt.setObject(2, thisPerson);
cstmt.execute();
age = new Integer(cstmt.getInt(1));
}
return age;
|
public java.lang.Integer | getAgeOn(java.sql.Timestamp date)
Integer age = null;
if (conn!=null) {
Person thisPerson = this;
CallableStatement cstmt =
conn.prepareCall("{ ? = call " + getSQLTypeName() + ".GET_AGE_ON( ?, ? ) }");
cstmt.registerOutParameter(1, Types.NUMERIC);
cstmt.setObject(2, thisPerson);
cstmt.setTimestamp(3, date);
cstmt.execute();
age = new Integer(cstmt.getInt(1));
}
return age;
|
public java.math.BigDecimal | getId()
BigDecimal id = null;
if (conn!=null) {
Person thisPerson = this;
CallableStatement cstmt =
conn.prepareCall("{ ? = call " + getSQLTypeName() + ".GET_ID( ) }");
cstmt.registerOutParameter(1, Types.NUMERIC);
cstmt.execute();
id = cstmt.getBigDecimal(1);
}
return id;
|
public void | setConnection(java.sql.Connection conn)
this.conn = conn;
|