blob: 4996050651d8895b8a499c5c444f2690206824fb [file] [log] [blame]
/*
* Copyright (c) 2010-2020 BSI Business Systems Integration AG.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* BSI Business Systems Integration AG - initial API and implementation
*/
package org.eclipse.scout.rt.dataobject.lookup;
import org.eclipse.scout.rt.dataobject.DoList;
import org.eclipse.scout.rt.dataobject.TypeName;
import org.eclipse.scout.rt.platform.BEANS;
import org.eclipse.scout.rt.platform.util.ObjectUtility;
@TypeName("scout.LongLookupRestriction")
public class LongLookupRestrictionDo extends AbstractLookupRestrictionDo<LongLookupRestrictionDo, Long> {
@Override
public DoList<Long> ids() {
return createIdsAttribute(this);
}
/**
* @return Specified {@code restriction} if not null, otherwise a new {@link LongLookupRestrictionDo} instance.
*/
public static LongLookupRestrictionDo ensure(LongLookupRestrictionDo restriction) {
return ObjectUtility.nvl(restriction, BEANS.get(LongLookupRestrictionDo.class));
}
}