Examples of UnregisteredTableError


Examples of org.ytreza.data.table.exception.UnregisteredTableError

public abstract class TableFactory {
  private Map<TableName, Table<?>> mapOfTables = new HashMap<TableName, Table<?>>();
 
  public Table<? extends ModelWithOrigin<?>> getTable(TableName tableName) throws UnregisteredTableError{
    if (! mapOfTables.containsKey(tableName)) {
      throw new UnregisteredTableError()
    }

    Table<? extends ModelWithOrigin<?>> table = mapOfTables.get(tableName);
    return table ;   
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.