public class Convention extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
identityPartsSeparator |
Constructor and Description |
---|
Convention() |
Modifier and Type | Method and Description |
---|---|
FailoverBehaviorSet |
getFailoverBehavior()
How should we behave in a replicated environment when we can't
reach the primary node and need to failover to secondary node(s).
|
FailoverBehaviorSet |
getFailoverBehaviorWithoutFlags() |
IdentityPropertyFinder |
getFindIdentityProperty()
Gets the function to find the identity property.
|
HttpResponseHandler |
getHandleForbiddenResponse()
Handles forbidden responses
|
HttpResponseWithMetaHandler |
getHandleUnauthorizedResponse()
Handles unauthenticated responses, usually by authenticating against the oauth server
|
Field |
getIdentityProperty(Class<?> type)
Gets the identity property.
|
RequestCachePolicy |
getShouldCacheRequest()
Whatever or not RavenDB should cache the request to the specified url.
|
void |
handleForbiddenResponse(org.apache.http.HttpResponse forbiddenResponse) |
Action1<org.apache.http.HttpRequest> |
handleUnauthorizedResponse(org.apache.http.HttpResponse unauthorizedResponse,
OperationCredentials credentials) |
boolean |
isSaveEnumsAsIntegers()
Saves Enums as integers and instruct the Linq provider to query enums as integer values.
|
void |
registerCustomQueryTranslator(CustomQueryExpressionTranslator translator) |
void |
setFailoverBehavior(FailoverBehaviorSet failoverBehavior)
How should we behave in a replicated environment when we can't
reach the primary node and need to failover to secondary node(s).
|
void |
setFindIdentityProperty(IdentityPropertyFinder findIdentityProperty)
Sets the function to find the identity property.
|
void |
setHandleForbiddenResponse(HttpResponseHandler handleForbiddenResponse)
Handles forbidden responses
|
void |
setHandleUnauthorizedResponse(HttpResponseWithMetaHandler handleUnauthorizedResponse)
Handles unauthenticated responses, usually by authenticating against the oauth server
|
void |
setSaveEnumsAsIntegers(boolean saveEnumsAsIntegers)
Saves Enums as integers and instruct the Linq provider to query enums as integer values.
|
void |
setShouldCacheRequest(RequestCachePolicy shouldCacheRequest) |
Boolean |
shouldCacheRequest(String url)
Whatever or not RavenDB should cache the request to the specified url.
|
LinqPathProvider.Result |
translateCustomQueryExpression(LinqPathProvider provider,
com.mysema.query.types.Expression<?> expression) |
void |
updateFrom(ReplicationClientConfiguration configuration) |
protected String identityPartsSeparator
public void updateFrom(ReplicationClientConfiguration configuration)
public FailoverBehaviorSet getFailoverBehavior()
public void setFailoverBehavior(FailoverBehaviorSet failoverBehavior)
failoverBehavior
- the failoverBehavior to setpublic FailoverBehaviorSet getFailoverBehaviorWithoutFlags()
public Field getIdentityProperty(Class<?> type)
type
- public RequestCachePolicy getShouldCacheRequest()
public IdentityPropertyFinder getFindIdentityProperty()
public void setFindIdentityProperty(IdentityPropertyFinder findIdentityProperty)
findIdentityProperty
- public Boolean shouldCacheRequest(String url)
url
- public void setShouldCacheRequest(RequestCachePolicy shouldCacheRequest)
shouldCacheRequest
- the shouldCacheRequest to setpublic HttpResponseWithMetaHandler getHandleUnauthorizedResponse()
public void setHandleUnauthorizedResponse(HttpResponseWithMetaHandler handleUnauthorizedResponse)
handleUnauthorizedResponse
- the handleUnauthorizedResponse to setpublic HttpResponseHandler getHandleForbiddenResponse()
public void setHandleForbiddenResponse(HttpResponseHandler handleForbiddenResponse)
handleForbiddenResponse
- the handleForbiddenResponse to setpublic void handleForbiddenResponse(org.apache.http.HttpResponse forbiddenResponse)
public Action1<org.apache.http.HttpRequest> handleUnauthorizedResponse(org.apache.http.HttpResponse unauthorizedResponse, OperationCredentials credentials)
public void registerCustomQueryTranslator(CustomQueryExpressionTranslator translator)
public LinqPathProvider.Result translateCustomQueryExpression(LinqPathProvider provider, com.mysema.query.types.Expression<?> expression)
public boolean isSaveEnumsAsIntegers()
public void setSaveEnumsAsIntegers(boolean saveEnumsAsIntegers)
saveEnumsAsIntegers
- Copyright © 2016. All Rights Reserved.