return action.getRecordKeyString(record);
}
public boolean isNewRecord()
{
Record record = getRecord();
if (record==null || record.isValid()==false)
{ // Check whether we can get the record key from the request or the session
String property = getRecordPropertyName();
String key = getActionParam(property, persistence==SessionPersistence.Key);
if (key!=null)
return action.getRecordNewFlagFromString(key); // Return key or null
if (persistence!=SessionPersistence.Data)
return false; // Unknown
// Get Record from the session
record = getRecordFromSession();
if (record==null)
return false; // No Record Provided
// We have a record
// setRecord(record);
}
return record.isNew();
}