| /* |
| * Licensed to the Apache Software Foundation (ASF) under one |
| * or more contributor license agreements. See the NOTICE file |
| * distributed with this work for additional information |
| * regarding copyright ownership. The ASF licenses this file |
| * to you 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 org.apache.olingo.fit.proxy.opentype.opentypesservice; |
| |
| // CHECKSTYLE:OFF (Maven checkstyle) |
| import java.io.InputStream; |
| |
| // CHECKSTYLE:ON (Maven checkstyle) |
| import java.io.Serializable; |
| |
| import org.apache.olingo.ext.proxy.api.ComplexCollection; |
| import org.apache.olingo.ext.proxy.api.ComplexType; |
| import org.apache.olingo.ext.proxy.api.EdmStreamValue; |
| import org.apache.olingo.ext.proxy.api.EntityCollection; |
| import org.apache.olingo.ext.proxy.api.EntityType; |
| import org.apache.olingo.ext.proxy.api.PersistenceManager; |
| import org.apache.olingo.ext.proxy.api.PrimitiveCollection; |
| |
| @org.apache.olingo.ext.proxy.api.annotations.Namespace("Microsoft.Test.OData.Services.OpenTypesServiceV4") |
| @org.apache.olingo.ext.proxy.api.annotations.EntityContainer(name = "DefaultContainer", |
| namespace = "Microsoft.Test.OData.Services.OpenTypesServiceV4") |
| public interface DefaultContainer extends PersistenceManager { |
| |
| Row getRow(); |
| |
| RowIndex getRowIndex(); |
| |
| Operations operations(); |
| |
| public interface Operations extends org.apache.olingo.ext.proxy.api.Operations { |
| // No additional methods needed for now. |
| } |
| |
| <NE extends EntityType<?>> NE newEntityInstance(Class<NE> ref); |
| |
| <T extends EntityType<?>, NEC extends EntityCollection<T, ?, ?>> NEC newEntityCollection(Class<NEC> ref); |
| |
| <NE extends ComplexType<?>> NE newComplexInstance(Class<NE> ref); |
| |
| <T extends ComplexType<?>, NEC extends ComplexCollection<T, ?, ?>> NEC newComplexCollection(Class<NEC> ref); |
| |
| <T extends Serializable, NEC extends PrimitiveCollection<T>> NEC newPrimitiveCollection(Class<T> ref); |
| |
| EdmStreamValue newEdmStreamValue(String contentType, InputStream stream); |
| } |