public static EntitySet getAndCheckEntitySet ( EntityDataModel entityDataModel , String entitySetName ) { EntitySet entitySet = entityDataModel . getEntityContainer ( ) . getEntitySet ( entitySetName ) ; if ( entitySet == null ) { throw new ODataSystemException ( "Entity set not found in the entity data model: " + entitySetName ) ; } return entitySet ; }
Gets the entity set with the specified name throws an exception if no entity set with the specified name exists .