Class ValueLocator<T>

java.lang.Object
com.google.web.bindery.requestfactory.shared.Locator<T,Void>
com.google.web.bindery.requestfactory.shared.ValueLocator<T>
Type Parameters:
T - the type of domain object the Locator will operate on

public abstract class ValueLocator<T> extends Locator<T,Void>
A Locator for use with value types (as opposed to entities), which are not persisted. Abstract methods from the Locator class that are not relevant for value types are implemented to return null.
  • Constructor Details Link icon

    • ValueLocator Link icon

      public ValueLocator()
  • Method Details Link icon

    • getDomainType Link icon

      public final Class<T> getDomainType()
      Returns null.
      Specified by:
      getDomainType in class Locator<T,Void>
    • getId Link icon

      public final Void getId(T domainObject)
      Returns null.
      Specified by:
      getId in class Locator<T,Void>
      Parameters:
      domainObject - the object to obtain an id for
      Returns:
      the object's id or null
    • getIdType Link icon

      public final Class<Void> getIdType()
      Returns null.
      Specified by:
      getIdType in class Locator<T,Void>
    • getVersion Link icon

      public final Object getVersion(T domainObject)
      Returns null.
      Specified by:
      getVersion in class Locator<T,Void>
      Parameters:
      domainObject - the object to obtain an id for
      Returns:
      the object's version or null