return p;
}
public LogCriteria toLogCriteria() throws ParseException, NumberFormatException {
LogCriteria criteria = new LogCriteria();
if (this.userId != null && this.userId.trim().length() > 0) {
criteria.setUserId(Long.valueOf(this.userId.trim()));
}
if (this.handle != null && this.handle.trim().length() > 0) {
criteria.setHandle(this.handle);
}
if (this.timeStart != null && this.timeStart.trim().length() > 0) {
criteria.setTimeStart(Utility.parseTimestamp(this.timeStart));
}
if (this.timeEnd != null && this.timeEnd.trim().length() > 0) {
criteria.setTimeEnd(Utility.parseTimestamp(this.timeEnd));
}
if (this.action != null && this.action.trim().length() > 0) {
criteria.setAction(this.action);
}
if (this.ip != null && this.ip.trim().length() > 0) {
criteria.setIp(this.ip);
}
return criteria;
}