public class CurrentDatetime
extends java.lang.Object
This is expected to be used by an activation and its result set, and so 'forget' must be called whenever you want to reuse the CurrentDatetime object for additional executions of the statement.
Constructor and Description |
---|
CurrentDatetime()
The constructor is public; note we wait until evaluation to
put any values into the fields.
|
Modifier and Type | Method and Description |
---|---|
void |
forget()
This is called prior to each execution of the statement, to
ensure that it starts over with a new current datetime value.
|
java.sql.Date |
getCurrentDate() |
java.sql.Time |
getCurrentTime() |
java.sql.Timestamp |
getCurrentTimestamp() |
public CurrentDatetime()
public java.sql.Date getCurrentDate()
public java.sql.Time getCurrentTime()
public java.sql.Timestamp getCurrentTimestamp()
public void forget()