Search in sources :

Example 11 with Ref

use of org.summerb.approaches.jdbccrud.api.dto.relations.Ref in project summerb by skarpushin.

the class ReferencesRegistryPreconfiguredAbstract method getRefByName.

@Override
public Ref getRefByName(String name) throws IllegalArgumentException {
    ensureInitialized();
    Ref ret = refsByName.get(name);
    Preconditions.checkArgument(ret != null, "There is not ref named as " + name);
    return ret;
}
Also used : Ref(org.summerb.approaches.jdbccrud.api.dto.relations.Ref)

Aggregations

Ref (org.summerb.approaches.jdbccrud.api.dto.relations.Ref)11 DataSet (org.summerb.approaches.jdbccrud.api.dto.datapackage.DataSet)8 HashSet (java.util.HashSet)7 Set (java.util.Set)7 HashMap (java.util.HashMap)5 HasId (org.summerb.approaches.jdbccrud.api.dto.HasId)5 ArrayList (java.util.ArrayList)4 List (java.util.List)4 PaginatedList (org.summerb.approaches.jdbccrud.api.dto.PaginatedList)4 LinkedList (java.util.LinkedList)3 EasyCrudService (org.summerb.approaches.jdbccrud.api.EasyCrudService)3 DataTable (org.summerb.approaches.jdbccrud.api.dto.datapackage.DataTable)3 PropertyAccessor (org.springframework.beans.PropertyAccessor)2 RefToReferencedObjectsIdsMap (org.summerb.approaches.jdbccrud.api.dto.datapackage.DataTable.RefToReferencedObjectsIdsMap)2 RowIdToBackReferencesMap (org.summerb.approaches.jdbccrud.api.dto.datapackage.DataTable.RowIdToBackReferencesMap)2 Query (org.summerb.approaches.jdbccrud.api.query.Query)2 Preconditions (com.google.common.base.Preconditions)1 Arrays (java.util.Arrays)1 Map (java.util.Map)1 Entry (java.util.Map.Entry)1