com.esri.gpt.catalog.harvest.repository
Class HrAssertUrlRequest
java.lang.Object
com.esri.gpt.framework.sql.BaseDao
com.esri.gpt.framework.request.DaoRequest<RequestDefinition<HrCriteria,HrResult>>
com.esri.gpt.catalog.harvest.repository.HrRequest
com.esri.gpt.catalog.harvest.repository.HrAssertUrlRequest
- All Implemented Interfaces:
- IRequest<RequestDefinition<HrCriteria,HrResult>>
public class HrAssertUrlRequest
- extends HrRequest
Asserts unique URL.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HrAssertUrlRequest
public HrAssertUrlRequest(RequestContext requestContext,
String url)
- Create instance of the request.
- Parameters:
requestContext
- request contexturl
- URL to assert
executeAssert
public void executeAssert()
throws SQLException,
HrAssertUrlException
- Executes assertion.
- Throws:
SQLException
- if accessing database fails
HrAssertUrlException
- if record with the same URL already exist in database
execute
public boolean execute()
throws SQLException
- Executes request.
- Returns:
true
if record with identical host URL exists
- Throws:
SQLException
- if accessing database fails
Copyright 2011 Environmental Systems Research Institute.
All rights reserved.
Use is subject to
license terms.