public void addEntityVariable(String variableName,JpqlEntityModel entity){
  if (variableName == null) {
    throw new NullPointerException("No entity variable name passed");
  }
  if (entity == null) {
    throw new NullPointerException("No entity passed");
  }
  if (entityVariableName2entity.containsKey(variableName))   throw new IllegalArgumentException(String.format("Trying to rebind variable [%s]",variableName));
  entityVariableName2entity.put(variableName,entity);
}

public void addEntityVariable ( String variableName , JpqlEntityModel entity ) { if ( variableName == null ) { throw new NullPointerException ( "No entity variable name passed" ) ; } if ( entity == null ) { throw new NullPointerException ( "No entity passed" ) ; } if ( entityVariableName2entity . containsKey ( variableName ) ) throw new IllegalArgumentException ( String . format ( "Trying to rebind variable [%s]" , variableName ) ) ; entityVariableName2entity . put ( variableName , entity ) ; }
internal method to register entity variables found in query
