Group Table::
public static TableName find(TableID id, boolean _forUpdate = false)
{
TableName tableName ;
tableName.selectForUpdate(_forUpdate);
select firstonly * from tableName
where tableName.TableID == id;
return tableName;
}
Parameter Table::
public static TableName find(boolean _forUpdate = false)
{
TableName parameter;
parameter.selectForUpdate(_forUpdate);
select firstonly parameter
index Key
where parameter.Key == 0;
if(!parameter && !parameter.isTmp())
{
Company::createParameter(parameter);
}
return parameter;
}
No comments:
Post a Comment