org.molgenis.data.index.meta.IndexActionGroup Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of molgenis-data-index Show documentation
Show all versions of molgenis-data-index Show documentation
Data layer indexing framework.
package org.molgenis.data.index.meta;
import org.molgenis.data.Entity;
import org.molgenis.data.meta.model.EntityType;
import org.molgenis.data.support.StaticEntity;
import static org.molgenis.data.index.meta.IndexActionGroupMetaData.COUNT;
import static org.molgenis.data.index.meta.IndexActionMetaData.ID;
public class IndexActionGroup extends StaticEntity
{
public IndexActionGroup(Entity entity)
{
super(entity);
}
public IndexActionGroup(EntityType entityType)
{
super(entityType);
}
public IndexActionGroup(String id, EntityType entityType)
{
super(entityType);
set(ID, id);
}
public String getId()
{
return getString(ID);
}
public int getCount()
{
Integer count = getInt(COUNT);
return count != null ? count : 0;
}
public IndexActionGroup setCount(int count)
{
set(COUNT, count);
return this;
}
}