blob: e2d1a3815bafe043524e9d521bc10dec456aa6c4 [file] [log] [blame]
/*
* Copyright 2010 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
package com.google.gwt.requestfactory.shared.impl;
/**
* Contains a variety of contstants shared between client and server code.
*/
public interface Constants {
String CONTENT_TOKEN = "contentData";
String OPERATION_TOKEN = "operation";
String PARAM_TOKEN = "param";
String PROPERTY_REF_TOKEN = "propertyRefs";
String RESULT_TOKEN = "result";
String RELATED_TOKEN = "related";
String SIDE_EFFECTS_TOKEN = "sideEffects";
String VIOLATIONS_TOKEN = "violations";
/**
* Property on a proxy JSO that holds its futureId.
*/
String ENCODED_FUTUREID_PROPERTY = "!futureId";
/**
* Property on a proxy JSO that holds its encoded server side data store id.
*/
String ENCODED_ID_PROPERTY = "!id";
/**
* Property on a proxy JSO that holds its server side version data.
*/
String ENCODED_VERSION_PROPERTY = "!version";
/**
* Id property that server entity objects are required to define.
*/
String ENTITY_ID_PROPERTY = "id";
/**
* Version property that server entity objects are required to define.
*/
Property<Integer> ENTITY_VERSION_PROPERTY = new Property<Integer>("version",
Integer.class);
}