public IdQuery(String typeName,Object id,Object routing,QueryResultType queryResultType,int version){
  if (typeName == null || typeName.length() == 0)   throw new IllegalArgumentException("Argument cannot be null or empty - 'typeName'.");
  if (id == null)   throw new IllegalArgumentException("Argument cannot be null - 'id'.");
  if (queryResultType == null)   throw new IllegalArgumentException("Argument cannot be null - 'queryResultType'.");
  if (version < 0)   throw new IllegalArgumentException("Argument cannot be less than zero - 'version'");
  this._typeName=typeName;
  this._id=id;
  this._routing=routing;
  this._queryResultType=queryResultType;
  this._version=version;
}

public IdQuery ( String typeName , Object id , Object routing , QueryResultType queryResultType , int version ) { if ( typeName == null || typeName . length ( ) == 0 ) throw new IllegalArgumentException ( "Argument cannot be null or empty - 'typeName'." ) ; if ( id == null ) throw new IllegalArgumentException ( "Argument cannot be null - 'id'." ) ; if ( queryResultType == null ) throw new IllegalArgumentException ( "Argument cannot be null - 'queryResultType'." ) ; if ( version < 0 ) throw new IllegalArgumentException ( "Argument cannot be less than zero - 'version'" ) ; this . _typeName = typeName ; this . _id = id ; this . _routing = routing ; this . _queryResultType = queryResultType ; this . _version = version ; }
creates an idquery using the specified type , id , routing and query result type .
