Package com.linkedin.restli.server

Examples of com.linkedin.restli.server.Key


                       final String name,
                       final String keyName,
                       final ResourceType resourceType,
                       final String namespace)
  {
    this(new Key(keyName, keyClass),
         keyKeyClass,
         keyParamsClass,
         keys, valueClass,
         resourceClass,
         parentResourceClass,
View Full Code Here


    else
    {
      keyName = annotationData.keyName();
    }

    Key primaryKey = buildKey(name, keyName, keyClass, annotationData.typerefInfoClass());
    Set<Key> keys = new HashSet<Key>();
    if (annotationData.keys() == null)
    {
      keys.add(primaryKey);
    }
View Full Code Here

  private static Key buildKey(String resourceName,
                              String keyName, Class<?> keyType, Class<? extends TyperefInfo> typerefInfoClass)
  {
    try
    {
      return new Key(keyName, keyType, getDataSchema(keyType, getSchemaFromTyperefInfo(typerefInfoClass)));
    }
    catch (TemplateRuntimeException e)
    {
      throw new ResourceConfigException("DataSchema for key '" + keyName + "' of type " + keyType + " on resource "
                                                + resourceName + "cannot be found; type is invalid or requires typeref", e);
View Full Code Here

TOP

Related Classes of com.linkedin.restli.server.Key

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.