Class AbstractService<C extends EdmEnabledODataClient>

java.lang.Object
org.apache.olingo.ext.proxy.AbstractService<C>
Type Parameters:
C - actual client class

public abstract class AbstractService<C extends EdmEnabledODataClient> extends Object
Entry point for proxy mode, gives access to entity container instances.
  • Field Details

    • LOG

      protected static final org.slf4j.Logger LOG
  • Constructor Details

  • Method Details

    • getEntityTypeClass

      public abstract Class<?> getEntityTypeClass(String name)
    • getComplexTypeClass

      public abstract Class<?> getComplexTypeClass(String name)
    • getEnumTypeClass

      public abstract Class<?> getEnumTypeClass(String name)
    • getTermClass

      public abstract Class<? extends AbstractTerm> getTermClass(String name)
    • getClient

      public C getClient()
    • getContext

      public Context getContext()
    • isTransactional

      public boolean isTransactional()
    • getPersistenceManager

      public PersistenceManager getPersistenceManager()
    • getEntityContainer

      public <T> T getEntityContainer(Class<T> reference) throws IllegalStateException, IllegalArgumentException
      Return an initialized concrete implementation of the passed EntityContainer interface.
      Type Parameters:
      T - interface annotated as EntityContainer
      Parameters:
      reference - class object of the EntityContainer annotated interface
      Returns:
      an initialized concrete implementation of the passed reference
      Throws:
      IllegalArgumentException - if the passed reference is not an interface annotated as EntityContainer
      IllegalStateException
    • getAllowedClasses

      protected Set<String> getAllowedClasses()
      Returns a set of classes which are allowed for deserialization.
      By default, only classes from the "org.apache.olingo" package are allowed. Subclasses should override this method if they expect other classes to be deserialized.
      Returns:
      A set of classes which are allowed for deserialization.