001package io.ebeaninternal.xmapping.api;
002
003import java.util.ArrayList;
004import java.util.List;
005
006/**
007 * External mapping for an Entity.
008 */
009public class XmapEntity {
010
011  protected final String clazz;
012  protected final List<XmapNamedQuery> namedQuery = new ArrayList<>();
013  protected final List<XmapRawSql> rawSql = new ArrayList<>();
014
015  public XmapEntity(String clazz) {
016    this.clazz = clazz;
017  }
018
019  /**
020   * Return the entity class.
021   */
022  public String getClazz() {
023    return clazz;
024  }
025
026  /**
027   * Return the named queries for this entity.
028   */
029  public List<XmapNamedQuery> getNamedQuery() {
030    return namedQuery;
031  }
032
033  /**
034   * Return the named raw sql queries for this entity.
035   */
036  public List<XmapRawSql> getRawSql() {
037    return rawSql;
038  }
039}