http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/d16d2b9c/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/ProductReview.java ---------------------------------------------------------------------- diff --git a/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/ProductReview.java b/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/ProductReview.java new file mode 100644 index 0000000..fd944b0 --- /dev/null +++ b/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/ProductReview.java @@ -0,0 +1,168 @@ +/* + * 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.staticservice.odatawcfservice.types; + +// CHECKSTYLE:OFF (Maven checkstyle) +import org.apache.olingo.ext.proxy.api.annotations.Key; +import org.apache.olingo.ext.proxy.api.annotations.KeyRef; + +// CHECKSTYLE:ON (Maven checkstyle) + +@KeyRef(ProductReviewKey.class) [email protected]("Microsoft.Test.OData.Services.ODataWCFService") [email protected](name = "ProductReview", + openType = false, + hasStream = false, + isAbstract = false) +public interface ProductReview + extends org.apache.olingo.ext.proxy.api.Annotatable, + org.apache.olingo.ext.proxy.api.EntityType<ProductReview>, + org.apache.olingo.ext.proxy.api.StructuredQuery<ProductReview> { + + @Key + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "ProductID", + type = "Edm.Int32", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.lang.Integer getProductID(); + + void setProductID(java.lang.Integer _productID); + + @Key + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "ProductDetailID", + type = "Edm.Int32", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.lang.Integer getProductDetailID(); + + void setProductDetailID(java.lang.Integer _productDetailID); + + @Key + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "ReviewTitle", + type = "Edm.String", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.lang.String getReviewTitle(); + + void setReviewTitle(java.lang.String _reviewTitle); + + @Key + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "RevisionID", + type = "Edm.Int32", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.lang.Integer getRevisionID(); + + void setRevisionID(java.lang.Integer _revisionID); + + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "Comment", + type = "Edm.String", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.lang.String getComment(); + + void setComment(java.lang.String _comment); + + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "Author", + type = "Edm.String", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.lang.String getAuthor(); + + void setAuthor(java.lang.String _author); + + Operations operations(); + + interface Operations extends org.apache.olingo.ext.proxy.api.Operations { + // No additional methods needed for now. + } + + Annotations annotations(); + + interface Annotations { + + @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForProperty(name = "ProductID", + type = "Edm.Int32") + org.apache.olingo.ext.proxy.api.Annotatable getProductIDAnnotations(); + + @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForProperty(name = "ProductDetailID", + type = "Edm.Int32") + org.apache.olingo.ext.proxy.api.Annotatable getProductDetailIDAnnotations(); + + @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForProperty(name = "ReviewTitle", + type = "Edm.String") + org.apache.olingo.ext.proxy.api.Annotatable getReviewTitleAnnotations(); + + @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForProperty(name = "RevisionID", + type = "Edm.Int32") + org.apache.olingo.ext.proxy.api.Annotatable getRevisionIDAnnotations(); + + @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForProperty(name = "Comment", + type = "Edm.String") + org.apache.olingo.ext.proxy.api.Annotatable getCommentAnnotations(); + + @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForProperty(name = "Author", + type = "Edm.String") + org.apache.olingo.ext.proxy.api.Annotatable getAuthorAnnotations(); + + } + +}
http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/d16d2b9c/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/ProductReviewCollection.java ---------------------------------------------------------------------- diff --git a/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/ProductReviewCollection.java b/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/ProductReviewCollection.java new file mode 100644 index 0000000..96c9764 --- /dev/null +++ b/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/ProductReviewCollection.java @@ -0,0 +1,41 @@ +/* + * 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.staticservice.odatawcfservice.types; + +// CHECKSTYLE:OFF (Maven checkstyle) +import java.util.Collection; +// CHECKSTYLE:ON (Maven checkstyle) + +import org.apache.olingo.ext.proxy.api.AbstractTerm; + +public interface ProductReviewCollection + extends + org.apache.olingo.ext.proxy.api.StructuredCollectionQuery<ProductReviewCollection>, +org.apache.olingo.ext.proxy.api.EntityCollection<ProductReview, ProductReviewCollection, ProductReviewCollection> { + + Operations operations(); + + interface Operations extends org.apache.olingo.ext.proxy.api.Operations { + // No additional methods needed for now. + } + + Object getAnnotation(Class<? extends AbstractTerm> term); + + Collection<Class<? extends AbstractTerm>> getAnnotationTerms(); +} http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/d16d2b9c/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/ProductReviewCollectionComposableInvoker.java ---------------------------------------------------------------------- diff --git a/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/ProductReviewCollectionComposableInvoker.java b/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/ProductReviewCollectionComposableInvoker.java new file mode 100644 index 0000000..347d35e --- /dev/null +++ b/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/ProductReviewCollectionComposableInvoker.java @@ -0,0 +1,32 @@ +/* + * 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.staticservice.odatawcfservice.types; + +// CHECKSTYLE:OFF (Maven checkstyle) + +public interface ProductReviewCollectionComposableInvoker + extends + org.apache.olingo.ext.proxy.api.StructuredCollectionComposableInvoker<ProductReviewCollection, ProductReviewCollection.Operations> { + + @Override + ProductReviewCollectionComposableInvoker select(String... select); + + @Override + ProductReviewCollectionComposableInvoker expand(String... expand); +} http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/d16d2b9c/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/ProductReviewComposableInvoker.java ---------------------------------------------------------------------- diff --git a/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/ProductReviewComposableInvoker.java b/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/ProductReviewComposableInvoker.java new file mode 100644 index 0000000..dff1203 --- /dev/null +++ b/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/ProductReviewComposableInvoker.java @@ -0,0 +1,130 @@ +/* + * 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.staticservice.odatawcfservice.types; + +// CHECKSTYLE:OFF (Maven checkstyle) +import org.apache.olingo.ext.proxy.api.annotations.Key; + +// CHECKSTYLE:ON (Maven checkstyle) + +public interface ProductReviewComposableInvoker + extends org.apache.olingo.ext.proxy.api.StructuredComposableInvoker<ProductReview, ProductReview.Operations> +{ + + @Override + ProductReviewComposableInvoker select(String... select); + + @Override + ProductReviewComposableInvoker expand(String... expand); + + @Key + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "ProductID", + type = "Edm.Int32", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.lang.Integer getProductID(); + + void setProductID(java.lang.Integer _productID); + + @Key + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "ProductDetailID", + type = "Edm.Int32", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.lang.Integer getProductDetailID(); + + void setProductDetailID(java.lang.Integer _productDetailID); + + @Key + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "ReviewTitle", + type = "Edm.String", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.lang.String getReviewTitle(); + + void setReviewTitle(java.lang.String _reviewTitle); + + @Key + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "RevisionID", + type = "Edm.Int32", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.lang.Integer getRevisionID(); + + void setRevisionID(java.lang.Integer _revisionID); + + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "Comment", + type = "Edm.String", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.lang.String getComment(); + + void setComment(java.lang.String _comment); + + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "Author", + type = "Edm.String", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.lang.String getAuthor(); + + void setAuthor(java.lang.String _author); + +} http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/d16d2b9c/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/ProductReviewKey.java ---------------------------------------------------------------------- diff --git a/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/ProductReviewKey.java b/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/ProductReviewKey.java new file mode 100644 index 0000000..5ad20ea --- /dev/null +++ b/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/ProductReviewKey.java @@ -0,0 +1,75 @@ +/* + * 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.staticservice.odatawcfservice.types; + +// CHECKSTYLE:OFF (Maven checkstyle) +import org.apache.olingo.ext.proxy.api.AbstractEntityKey; + +// CHECKSTYLE:ON (Maven checkstyle) +import org.apache.olingo.ext.proxy.api.annotations.CompoundKeyElement; + [email protected] +public class ProductReviewKey extends AbstractEntityKey { + + private static final long serialVersionUID = 5483520057777167030L; + + private java.lang.Integer _productID; + + @CompoundKeyElement(name = "ProductID", position = 0) + public java.lang.Integer getProductID() { + return _productID; + } + + public void setProductID(final java.lang.Integer _productID) { + this._productID = _productID; + } + + private java.lang.Integer _productDetailID; + + @CompoundKeyElement(name = "ProductDetailID", position = 1) + public java.lang.Integer getProductDetailID() { + return _productDetailID; + } + + public void setProductDetailID(final java.lang.Integer _productDetailID) { + this._productDetailID = _productDetailID; + } + + private java.lang.String _reviewTitle; + + @CompoundKeyElement(name = "ReviewTitle", position = 2) + public java.lang.String getReviewTitle() { + return _reviewTitle; + } + + public void setReviewTitle(final java.lang.String _reviewTitle) { + this._reviewTitle = _reviewTitle; + } + + private java.lang.Integer _revisionID; + + @CompoundKeyElement(name = "RevisionID", position = 3) + public java.lang.Integer getRevisionID() { + return _revisionID; + } + + public void setRevisionID(final java.lang.Integer _revisionID) { + this._revisionID = _revisionID; + } +} http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/d16d2b9c/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/PublicCompany.java ---------------------------------------------------------------------- diff --git a/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/PublicCompany.java b/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/PublicCompany.java new file mode 100644 index 0000000..766837d --- /dev/null +++ b/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/PublicCompany.java @@ -0,0 +1,339 @@ +/* + * 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.staticservice.odatawcfservice.types; + +import java.util.concurrent.Future; + +import org.apache.olingo.ext.proxy.api.AbstractEntitySet; +import org.apache.olingo.ext.proxy.api.annotations.Key; + [email protected]("Microsoft.Test.OData.Services.ODataWCFService") [email protected](name = "PublicCompany", + openType = true, + hasStream = false, + isAbstract = false, + baseType = "Microsoft.Test.OData.Services.ODataWCFService.Company") +public interface PublicCompany extends Company { + + @Override + PublicCompany load(); + + @Override + Future<? extends PublicCompany> loadAsync(); + + @Override + PublicCompany refs(); + + @Override + PublicCompany expand(String... expand); + + @Override + PublicCompany select(String... select); + + @Override + @Key + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "CompanyID", + type = "Edm.Int32", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.lang.Integer getCompanyID(); + + @Override + void setCompanyID(java.lang.Integer _companyID); + + @Override + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "CompanyCategory", + type = "Microsoft.Test.OData.Services.ODataWCFService.CompanyCategory", + nullable = true, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + CompanyCategory + getCompanyCategory(); + + @Override + void + setCompanyCategory( + CompanyCategory _companyCategory); + + @Override + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "Revenue", + type = "Edm.Int64", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.lang.Long getRevenue(); + + @Override + void setRevenue(java.lang.Long _revenue); + + @Override + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "Name", + type = "Edm.String", + nullable = true, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.lang.String getName(); + + @Override + void setName(java.lang.String _name); + + @Override + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "Address", + type = "Microsoft.Test.OData.Services.ODataWCFService.Address", + nullable = true, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + Address getAddress(); + + @Override + void + setAddress( + Address _address); + + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "StockExchange", + type = "Edm.String", + nullable = true, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.lang.String getStockExchange(); + + void setStockExchange(java.lang.String _stockExchange); + + @Override + @org.apache.olingo.ext.proxy.api.annotations.NavigationProperty(name = "Employees", + type = "Microsoft.Test.OData.Services.ODataWCFService.Employee", + targetSchema = "Microsoft.Test.OData.Services.ODataWCFService", + targetContainer = "InMemoryEntities", + targetEntitySet = "Employees", + containsTarget = false) + EmployeeCollection + getEmployees(); + + @Override + void + setEmployees( + EmployeeCollection _employees); + + @Override + @org.apache.olingo.ext.proxy.api.annotations.NavigationProperty(name = "VipCustomer", + type = "Microsoft.Test.OData.Services.ODataWCFService.Customer", + targetSchema = "Microsoft.Test.OData.Services.ODataWCFService", + targetContainer = "InMemoryEntities", + targetEntitySet = "VipCustomer", + containsTarget = false) + Customer + getVipCustomer(); + + @Override + void + setVipCustomer( + Customer _vipCustomer); + + @Override + @org.apache.olingo.ext.proxy.api.annotations.NavigationProperty(name = "Departments", + type = "Microsoft.Test.OData.Services.ODataWCFService.Department", + targetSchema = "Microsoft.Test.OData.Services.ODataWCFService", + targetContainer = "InMemoryEntities", + targetEntitySet = "Departments", + containsTarget = false) + DepartmentCollection + getDepartments(); + + @Override + void + setDepartments( + DepartmentCollection _departments); + + @Override + @org.apache.olingo.ext.proxy.api.annotations.NavigationProperty(name = "CoreDepartment", + type = "Microsoft.Test.OData.Services.ODataWCFService.Department", + targetSchema = "Microsoft.Test.OData.Services.ODataWCFService", + targetContainer = "InMemoryEntities", + targetEntitySet = "Departments", + containsTarget = false) + Department + getCoreDepartment(); + + @Override + void + setCoreDepartment( + Department _coreDepartment); + + @org.apache.olingo.ext.proxy.api.annotations.NavigationProperty(name = "Club", + type = "Microsoft.Test.OData.Services.ODataWCFService.Club", + targetSchema = "Microsoft.Test.OData.Services.ODataWCFService", + targetContainer = "", + targetEntitySet = "", + containsTarget = true) + Club getClub(); + + void setClub( + Club _club); + + @org.apache.olingo.ext.proxy.api.annotations.NavigationProperty(name = "LabourUnion", + type = "Microsoft.Test.OData.Services.ODataWCFService.LabourUnion", + targetSchema = "Microsoft.Test.OData.Services.ODataWCFService", + targetContainer = "InMemoryEntities", + targetEntitySet = "LabourUnion", + containsTarget = false) + LabourUnion + getLabourUnion(); + + void + setLabourUnion( + LabourUnion _labourUnion); + + @Override + Operations operations(); + + interface Operations + extends + Company.Operations { + // No additional methods needed for now. + } + + @Override + Annotations annotations(); + + interface Annotations + extends + Company.Annotations { + + @Override + @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForProperty(name = "CompanyID", + type = "Edm.Int32") + org.apache.olingo.ext.proxy.api.Annotatable getCompanyIDAnnotations(); + + @Override + @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForProperty(name = "CompanyCategory", + type = "Microsoft.Test.OData.Services.ODataWCFService.CompanyCategory") + org.apache.olingo.ext.proxy.api.Annotatable getCompanyCategoryAnnotations(); + + @Override + @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForProperty(name = "Revenue", + type = "Edm.Int64") + org.apache.olingo.ext.proxy.api.Annotatable getRevenueAnnotations(); + + @Override + @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForProperty(name = "Name", + type = "Edm.String") + org.apache.olingo.ext.proxy.api.Annotatable getNameAnnotations(); + + @Override + @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForProperty(name = "Address", + type = "Microsoft.Test.OData.Services.ODataWCFService.Address") + org.apache.olingo.ext.proxy.api.Annotatable getAddressAnnotations(); + + @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForProperty(name = "StockExchange", + type = "Edm.String") + org.apache.olingo.ext.proxy.api.Annotatable getStockExchangeAnnotations(); + + @Override + @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForNavigationProperty(name = "Employees", + type = "Microsoft.Test.OData.Services.ODataWCFService.Employee") + org.apache.olingo.ext.proxy.api.Annotatable getEmployeesAnnotations(); + + @Override + @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForNavigationProperty(name = "VipCustomer", + type = "Microsoft.Test.OData.Services.ODataWCFService.Customer") + org.apache.olingo.ext.proxy.api.Annotatable getVipCustomerAnnotations(); + + @Override + @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForNavigationProperty(name = "Departments", + type = "Microsoft.Test.OData.Services.ODataWCFService.Department") + org.apache.olingo.ext.proxy.api.Annotatable getDepartmentsAnnotations(); + + @Override + @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForNavigationProperty(name = "CoreDepartment", + type = "Microsoft.Test.OData.Services.ODataWCFService.Department") + org.apache.olingo.ext.proxy.api.Annotatable getCoreDepartmentAnnotations(); + + @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForNavigationProperty(name = "Assets", + type = "Microsoft.Test.OData.Services.ODataWCFService.Asset") + org.apache.olingo.ext.proxy.api.Annotatable getAssetsAnnotations(); + + @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForNavigationProperty(name = "Club", + type = "Microsoft.Test.OData.Services.ODataWCFService.Club") + org.apache.olingo.ext.proxy.api.Annotatable getClubAnnotations(); + + @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForNavigationProperty(name = "LabourUnion", + type = "Microsoft.Test.OData.Services.ODataWCFService.LabourUnion") + org.apache.olingo.ext.proxy.api.Annotatable getLabourUnionAnnotations(); + } + + @org.apache.olingo.ext.proxy.api.annotations.NavigationProperty(name = "Assets", + type = "Microsoft.Test.OData.Services.ODataWCFService.LabourUnion", + targetSchema = "Microsoft.Test.OData.Services.ODataWCFService", + targetContainer = "InMemoryEntities", + targetEntitySet = "LabourUnion", + containsTarget = true) + PublicCompany.Assets + getAssets(); + + void + setAssets( + PublicCompany.Assets _assets); + + @org.apache.olingo.ext.proxy.api.annotations.EntitySet(name = "Assets", contained = true) + interface Assets + extends + org.apache.olingo.ext.proxy.api.EntitySet<Asset, AssetCollection>, + org.apache.olingo.ext.proxy.api.StructuredCollectionQuery<Assets>, + AbstractEntitySet<Asset, java.lang.Integer, AssetCollection> { + // No additional methods needed for now. + } + +} http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/d16d2b9c/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/PublicCompanyCollection.java ---------------------------------------------------------------------- diff --git a/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/PublicCompanyCollection.java b/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/PublicCompanyCollection.java new file mode 100644 index 0000000..0d87ff8 --- /dev/null +++ b/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/PublicCompanyCollection.java @@ -0,0 +1,41 @@ +/* + * 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.staticservice.odatawcfservice.types; + +// CHECKSTYLE:OFF (Maven checkstyle) +import java.util.Collection; +// CHECKSTYLE:ON (Maven checkstyle) + +import org.apache.olingo.ext.proxy.api.AbstractTerm; + +public interface PublicCompanyCollection + extends + org.apache.olingo.ext.proxy.api.StructuredCollectionQuery<PublicCompanyCollection>, +org.apache.olingo.ext.proxy.api.EntityCollection<PublicCompany, PublicCompanyCollection, PublicCompanyCollection> { + + Operations operations(); + + interface Operations extends org.apache.olingo.ext.proxy.api.Operations { + // No additional methods needed for now. + } + + Object getAnnotation(Class<? extends AbstractTerm> term); + + Collection<Class<? extends AbstractTerm>> getAnnotationTerms(); +} http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/d16d2b9c/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/PublicCompanyCollectionComposableInvoker.java ---------------------------------------------------------------------- diff --git a/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/PublicCompanyCollectionComposableInvoker.java b/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/PublicCompanyCollectionComposableInvoker.java new file mode 100644 index 0000000..4263715 --- /dev/null +++ b/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/PublicCompanyCollectionComposableInvoker.java @@ -0,0 +1,32 @@ +/* + * 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.staticservice.odatawcfservice.types; + +// CHECKSTYLE:OFF (Maven checkstyle) + +public interface PublicCompanyCollectionComposableInvoker + extends + org.apache.olingo.ext.proxy.api.StructuredCollectionComposableInvoker<PublicCompanyCollection, PublicCompanyCollection.Operations> { + + @Override + PublicCompanyCollectionComposableInvoker select(String... select); + + @Override + PublicCompanyCollectionComposableInvoker expand(String... expand); +} http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/d16d2b9c/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/PublicCompanyComposableInvoker.java ---------------------------------------------------------------------- diff --git a/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/PublicCompanyComposableInvoker.java b/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/PublicCompanyComposableInvoker.java new file mode 100644 index 0000000..b2d0495 --- /dev/null +++ b/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/PublicCompanyComposableInvoker.java @@ -0,0 +1,232 @@ +/* + * 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.staticservice.odatawcfservice.types; + +// CHECKSTYLE:OFF (Maven checkstyle) +import org.apache.olingo.ext.proxy.api.AbstractEntitySet; + +// CHECKSTYLE:ON (Maven checkstyle) +import org.apache.olingo.ext.proxy.api.AbstractOpenType; +import org.apache.olingo.ext.proxy.api.annotations.Key; + +public interface PublicCompanyComposableInvoker + extends org.apache.olingo.ext.proxy.api.StructuredComposableInvoker<PublicCompany, PublicCompany.Operations> + , AbstractOpenType { + + @Override + PublicCompanyComposableInvoker select(String... select); + + @Override + PublicCompanyComposableInvoker expand(String... expand); + + @Key + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "CompanyID", + type = "Edm.Int32", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.lang.Integer getCompanyID(); + + void setCompanyID(java.lang.Integer _companyID); + + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "CompanyCategory", + type = "Microsoft.Test.OData.Services.ODataWCFService.CompanyCategory", + nullable = true, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + CompanyCategory + getCompanyCategory(); + + void + setCompanyCategory( + CompanyCategory _companyCategory); + + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "Revenue", + type = "Edm.Int64", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.lang.Long getRevenue(); + + void setRevenue(java.lang.Long _revenue); + + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "Name", + type = "Edm.String", + nullable = true, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.lang.String getName(); + + void setName(java.lang.String _name); + + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "Address", + type = "Microsoft.Test.OData.Services.ODataWCFService.Address", + nullable = true, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + Address getAddress(); + + void + setAddress( + Address _address); + + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "StockExchange", + type = "Edm.String", + nullable = true, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.lang.String getStockExchange(); + + void setStockExchange(java.lang.String _stockExchange); + + @org.apache.olingo.ext.proxy.api.annotations.NavigationProperty(name = "Employees", + type = "Microsoft.Test.OData.Services.ODataWCFService.Employee", + targetSchema = "Microsoft.Test.OData.Services.ODataWCFService", + targetContainer = "InMemoryEntities", + targetEntitySet = "Employees", + containsTarget = false) + EmployeeCollection + getEmployees(); + + void + setEmployees( + EmployeeCollection _employees); + + @org.apache.olingo.ext.proxy.api.annotations.NavigationProperty(name = "VipCustomer", + type = "Microsoft.Test.OData.Services.ODataWCFService.Customer", + targetSchema = "Microsoft.Test.OData.Services.ODataWCFService", + targetContainer = "InMemoryEntities", + targetEntitySet = "VipCustomer", + containsTarget = false) + Customer + getVipCustomer(); + + void + setVipCustomer( + Customer _vipCustomer); + + @org.apache.olingo.ext.proxy.api.annotations.NavigationProperty(name = "Departments", + type = "Microsoft.Test.OData.Services.ODataWCFService.Department", + targetSchema = "Microsoft.Test.OData.Services.ODataWCFService", + targetContainer = "InMemoryEntities", + targetEntitySet = "Departments", + containsTarget = false) + DepartmentCollection + getDepartments(); + + void + setDepartments( + DepartmentCollection _departments); + + @org.apache.olingo.ext.proxy.api.annotations.NavigationProperty(name = "CoreDepartment", + type = "Microsoft.Test.OData.Services.ODataWCFService.Department", + targetSchema = "Microsoft.Test.OData.Services.ODataWCFService", + targetContainer = "InMemoryEntities", + targetEntitySet = "Departments", + containsTarget = false) + Department + getCoreDepartment(); + + void + setCoreDepartment( + Department _coreDepartment); + + @org.apache.olingo.ext.proxy.api.annotations.NavigationProperty(name = "Club", + type = "Microsoft.Test.OData.Services.ODataWCFService.Club", + targetSchema = "Microsoft.Test.OData.Services.ODataWCFService", + targetContainer = "", + targetEntitySet = "", + containsTarget = true) + Club getClub(); + + void setClub( + Club _club); + + @org.apache.olingo.ext.proxy.api.annotations.NavigationProperty(name = "LabourUnion", + type = "Microsoft.Test.OData.Services.ODataWCFService.LabourUnion", + targetSchema = "Microsoft.Test.OData.Services.ODataWCFService", + targetContainer = "InMemoryEntities", + targetEntitySet = "LabourUnion", + containsTarget = false) + LabourUnion + getLabourUnion(); + + void + setLabourUnion( + LabourUnion _labourUnion); + + @org.apache.olingo.ext.proxy.api.annotations.NavigationProperty(name = "Assets", + type = "Microsoft.Test.OData.Services.ODataWCFService.LabourUnion", + targetSchema = "Microsoft.Test.OData.Services.ODataWCFService", + targetContainer = "InMemoryEntities", + targetEntitySet = "LabourUnion", + containsTarget = true) + PublicCompany.Assets + getAssets(); + + void + setAssets( + PublicCompany.Assets _assets); + + @org.apache.olingo.ext.proxy.api.annotations.EntitySet(name = "Assets", contained = true) + interface Assets + extends + org.apache.olingo.ext.proxy.api.EntitySet<Asset, AssetCollection>, + org.apache.olingo.ext.proxy.api.StructuredCollectionQuery<Assets>, + AbstractEntitySet<Asset, java.lang.Integer, AssetCollection> { + // No additional methods needed for now. + } + +} http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/d16d2b9c/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/Statement.java ---------------------------------------------------------------------- diff --git a/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/Statement.java b/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/Statement.java new file mode 100644 index 0000000..e378aaa --- /dev/null +++ b/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/Statement.java @@ -0,0 +1,124 @@ +/* + * 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.staticservice.odatawcfservice.types; + +// CHECKSTYLE:OFF (Maven checkstyle) +import org.apache.olingo.ext.proxy.api.annotations.Key; + +// CHECKSTYLE:ON (Maven checkstyle) + [email protected]("Microsoft.Test.OData.Services.ODataWCFService") [email protected](name = "Statement", + openType = false, + hasStream = false, + isAbstract = false) +public interface Statement + extends org.apache.olingo.ext.proxy.api.Annotatable, + org.apache.olingo.ext.proxy.api.EntityType<Statement>, org.apache.olingo.ext.proxy.api.StructuredQuery<Statement> { + + @Key + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "StatementID", + type = "Edm.Int32", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.lang.Integer getStatementID(); + + void setStatementID(java.lang.Integer _statementID); + + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "TransactionType", + type = "Edm.String", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.lang.String getTransactionType(); + + void setTransactionType(java.lang.String _transactionType); + + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "TransactionDescription", + type = "Edm.String", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.lang.String getTransactionDescription(); + + void setTransactionDescription(java.lang.String _transactionDescription); + + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "Amount", + type = "Edm.Double", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.lang.Double getAmount(); + + void setAmount(java.lang.Double _amount); + + Operations operations(); + + interface Operations extends org.apache.olingo.ext.proxy.api.Operations { + // No additional methods needed for now. + } + + Annotations annotations(); + + interface Annotations { + + @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForProperty(name = "StatementID", + type = "Edm.Int32") + org.apache.olingo.ext.proxy.api.Annotatable getStatementIDAnnotations(); + + @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForProperty(name = "TransactionType", + type = "Edm.String") + org.apache.olingo.ext.proxy.api.Annotatable getTransactionTypeAnnotations(); + + @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForProperty(name = "TransactionDescription", + type = "Edm.String") + org.apache.olingo.ext.proxy.api.Annotatable getTransactionDescriptionAnnotations(); + + @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForProperty(name = "Amount", + type = "Edm.Double") + org.apache.olingo.ext.proxy.api.Annotatable getAmountAnnotations(); + + } + +} http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/d16d2b9c/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/StatementCollection.java ---------------------------------------------------------------------- diff --git a/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/StatementCollection.java b/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/StatementCollection.java new file mode 100644 index 0000000..1aa0874 --- /dev/null +++ b/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/StatementCollection.java @@ -0,0 +1,41 @@ +/* + * 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.staticservice.odatawcfservice.types; + +// CHECKSTYLE:OFF (Maven checkstyle) +import java.util.Collection; +// CHECKSTYLE:ON (Maven checkstyle) + +import org.apache.olingo.ext.proxy.api.AbstractTerm; + +public interface StatementCollection + extends + org.apache.olingo.ext.proxy.api.StructuredCollectionQuery<StatementCollection>, +org.apache.olingo.ext.proxy.api.EntityCollection<Statement, StatementCollection, StatementCollection> { + + Operations operations(); + + interface Operations extends org.apache.olingo.ext.proxy.api.Operations { + // No additional methods needed for now. + } + + Object getAnnotation(Class<? extends AbstractTerm> term); + + Collection<Class<? extends AbstractTerm>> getAnnotationTerms(); +} http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/d16d2b9c/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/StatementCollectionComposableInvoker.java ---------------------------------------------------------------------- diff --git a/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/StatementCollectionComposableInvoker.java b/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/StatementCollectionComposableInvoker.java new file mode 100644 index 0000000..3cf09de --- /dev/null +++ b/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/StatementCollectionComposableInvoker.java @@ -0,0 +1,32 @@ +/* + * 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.staticservice.odatawcfservice.types; + +// CHECKSTYLE:OFF (Maven checkstyle) + +public interface StatementCollectionComposableInvoker + extends + org.apache.olingo.ext.proxy.api.StructuredCollectionComposableInvoker<StatementCollection, StatementCollection.Operations> { + + @Override + StatementCollectionComposableInvoker select(String... select); + + @Override + StatementCollectionComposableInvoker expand(String... expand); +} http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/d16d2b9c/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/StatementComposableInvoker.java ---------------------------------------------------------------------- diff --git a/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/StatementComposableInvoker.java b/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/StatementComposableInvoker.java new file mode 100644 index 0000000..d4f7c33 --- /dev/null +++ b/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/StatementComposableInvoker.java @@ -0,0 +1,97 @@ +/* + * 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.staticservice.odatawcfservice.types; + +// CHECKSTYLE:OFF (Maven checkstyle) +import org.apache.olingo.ext.proxy.api.annotations.Key; + +// CHECKSTYLE:ON (Maven checkstyle) + +public interface StatementComposableInvoker + extends org.apache.olingo.ext.proxy.api.StructuredComposableInvoker<Statement, Statement.Operations> +{ + + @Override + StatementComposableInvoker select(String... select); + + @Override + StatementComposableInvoker expand(String... expand); + + @Key + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "StatementID", + type = "Edm.Int32", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.lang.Integer getStatementID(); + + void setStatementID(java.lang.Integer _statementID); + + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "TransactionType", + type = "Edm.String", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.lang.String getTransactionType(); + + void setTransactionType(java.lang.String _transactionType); + + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "TransactionDescription", + type = "Edm.String", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.lang.String getTransactionDescription(); + + void setTransactionDescription(java.lang.String _transactionDescription); + + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "Amount", + type = "Edm.Double", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.lang.Double getAmount(); + + void setAmount(java.lang.Double _amount); + +} http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/d16d2b9c/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/StoredPI.java ---------------------------------------------------------------------- diff --git a/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/StoredPI.java b/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/StoredPI.java new file mode 100644 index 0000000..e0bdb8d --- /dev/null +++ b/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/StoredPI.java @@ -0,0 +1,124 @@ +/* + * 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.staticservice.odatawcfservice.types; + +// CHECKSTYLE:OFF (Maven checkstyle) +import org.apache.olingo.ext.proxy.api.annotations.Key; + +// CHECKSTYLE:ON (Maven checkstyle) + [email protected]("Microsoft.Test.OData.Services.ODataWCFService") [email protected](name = "StoredPI", + openType = false, + hasStream = false, + isAbstract = false) +public interface StoredPI + extends org.apache.olingo.ext.proxy.api.Annotatable, + org.apache.olingo.ext.proxy.api.EntityType<StoredPI>, org.apache.olingo.ext.proxy.api.StructuredQuery<StoredPI> { + + @Key + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "StoredPIID", + type = "Edm.Int32", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.lang.Integer getStoredPIID(); + + void setStoredPIID(java.lang.Integer _storedPIID); + + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "PIName", + type = "Edm.String", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.lang.String getPIName(); + + void setPIName(java.lang.String _pIName); + + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "PIType", + type = "Edm.String", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.lang.String getPIType(); + + void setPIType(java.lang.String _pIType); + + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "CreatedDate", + type = "Edm.DateTimeOffset", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.sql.Timestamp getCreatedDate(); + + void setCreatedDate(java.sql.Timestamp _createdDate); + + Operations operations(); + + interface Operations extends org.apache.olingo.ext.proxy.api.Operations { + // No additional methods needed for now. + } + + Annotations annotations(); + + interface Annotations { + + @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForProperty(name = "StoredPIID", + type = "Edm.Int32") + org.apache.olingo.ext.proxy.api.Annotatable getStoredPIIDAnnotations(); + + @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForProperty(name = "PIName", + type = "Edm.String") + org.apache.olingo.ext.proxy.api.Annotatable getPINameAnnotations(); + + @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForProperty(name = "PIType", + type = "Edm.String") + org.apache.olingo.ext.proxy.api.Annotatable getPITypeAnnotations(); + + @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForProperty(name = "CreatedDate", + type = "Edm.DateTimeOffset") + org.apache.olingo.ext.proxy.api.Annotatable getCreatedDateAnnotations(); + + } + +} http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/d16d2b9c/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/StoredPICollection.java ---------------------------------------------------------------------- diff --git a/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/StoredPICollection.java b/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/StoredPICollection.java new file mode 100644 index 0000000..d6cd329 --- /dev/null +++ b/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/StoredPICollection.java @@ -0,0 +1,41 @@ +/* + * 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.staticservice.odatawcfservice.types; + +// CHECKSTYLE:OFF (Maven checkstyle) +import java.util.Collection; +// CHECKSTYLE:ON (Maven checkstyle) + +import org.apache.olingo.ext.proxy.api.AbstractTerm; + +public interface StoredPICollection + extends + org.apache.olingo.ext.proxy.api.StructuredCollectionQuery<StoredPICollection>, +org.apache.olingo.ext.proxy.api.EntityCollection<StoredPI, StoredPICollection, StoredPICollection> { + + Operations operations(); + + interface Operations extends org.apache.olingo.ext.proxy.api.Operations { + // No additional methods needed for now. + } + + Object getAnnotation(Class<? extends AbstractTerm> term); + + Collection<Class<? extends AbstractTerm>> getAnnotationTerms(); +} http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/d16d2b9c/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/StoredPICollectionComposableInvoker.java ---------------------------------------------------------------------- diff --git a/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/StoredPICollectionComposableInvoker.java b/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/StoredPICollectionComposableInvoker.java new file mode 100644 index 0000000..7a1c8e4 --- /dev/null +++ b/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/StoredPICollectionComposableInvoker.java @@ -0,0 +1,32 @@ +/* + * 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.staticservice.odatawcfservice.types; + +// CHECKSTYLE:OFF (Maven checkstyle) + +public interface StoredPICollectionComposableInvoker + extends + org.apache.olingo.ext.proxy.api.StructuredCollectionComposableInvoker<StoredPICollection, StoredPICollection.Operations> { + + @Override + StoredPICollectionComposableInvoker select(String... select); + + @Override + StoredPICollectionComposableInvoker expand(String... expand); +} http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/d16d2b9c/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/StoredPIComposableInvoker.java ---------------------------------------------------------------------- diff --git a/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/StoredPIComposableInvoker.java b/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/StoredPIComposableInvoker.java new file mode 100644 index 0000000..e999b2a --- /dev/null +++ b/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/StoredPIComposableInvoker.java @@ -0,0 +1,97 @@ +/* + * 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.staticservice.odatawcfservice.types; + +// CHECKSTYLE:OFF (Maven checkstyle) +import org.apache.olingo.ext.proxy.api.annotations.Key; + +// CHECKSTYLE:ON (Maven checkstyle) + +public interface StoredPIComposableInvoker + extends org.apache.olingo.ext.proxy.api.StructuredComposableInvoker<StoredPI, StoredPI.Operations> +{ + + @Override + StoredPIComposableInvoker select(String... select); + + @Override + StoredPIComposableInvoker expand(String... expand); + + @Key + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "StoredPIID", + type = "Edm.Int32", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.lang.Integer getStoredPIID(); + + void setStoredPIID(java.lang.Integer _storedPIID); + + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "PIName", + type = "Edm.String", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.lang.String getPIName(); + + void setPIName(java.lang.String _pIName); + + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "PIType", + type = "Edm.String", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.lang.String getPIType(); + + void setPIType(java.lang.String _pIType); + + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "CreatedDate", + type = "Edm.DateTimeOffset", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.sql.Timestamp getCreatedDate(); + + void setCreatedDate(java.sql.Timestamp _createdDate); + +} http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/d16d2b9c/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/Subscription.java ---------------------------------------------------------------------- diff --git a/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/Subscription.java b/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/Subscription.java new file mode 100644 index 0000000..945405d --- /dev/null +++ b/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/Subscription.java @@ -0,0 +1,144 @@ +/* + * 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.staticservice.odatawcfservice.types; + +// CHECKSTYLE:OFF (Maven checkstyle) +import org.apache.olingo.ext.proxy.api.annotations.Key; + +// CHECKSTYLE:ON (Maven checkstyle) + [email protected]("Microsoft.Test.OData.Services.ODataWCFService") [email protected](name = "Subscription", + openType = false, + hasStream = false, + isAbstract = false) +public interface Subscription + extends org.apache.olingo.ext.proxy.api.Annotatable, + org.apache.olingo.ext.proxy.api.EntityType<Subscription>, + org.apache.olingo.ext.proxy.api.StructuredQuery<Subscription> { + + @Key + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "SubscriptionID", + type = "Edm.Int32", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.lang.Integer getSubscriptionID(); + + void setSubscriptionID(java.lang.Integer _subscriptionID); + + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "TemplateGuid", + type = "Edm.String", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.lang.String getTemplateGuid(); + + void setTemplateGuid(java.lang.String _templateGuid); + + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "Title", + type = "Edm.String", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.lang.String getTitle(); + + void setTitle(java.lang.String _title); + + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "Category", + type = "Edm.String", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.lang.String getCategory(); + + void setCategory(java.lang.String _category); + + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "CreatedDate", + type = "Edm.DateTimeOffset", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.sql.Timestamp getCreatedDate(); + + void setCreatedDate(java.sql.Timestamp _createdDate); + + Operations operations(); + + interface Operations extends org.apache.olingo.ext.proxy.api.Operations { + // No additional methods needed for now. + } + + Annotations annotations(); + + interface Annotations { + + @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForProperty(name = "SubscriptionID", + type = "Edm.Int32") + org.apache.olingo.ext.proxy.api.Annotatable getSubscriptionIDAnnotations(); + + @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForProperty(name = "TemplateGuid", + type = "Edm.String") + org.apache.olingo.ext.proxy.api.Annotatable getTemplateGuidAnnotations(); + + @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForProperty(name = "Title", + type = "Edm.String") + org.apache.olingo.ext.proxy.api.Annotatable getTitleAnnotations(); + + @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForProperty(name = "Category", + type = "Edm.String") + org.apache.olingo.ext.proxy.api.Annotatable getCategoryAnnotations(); + + @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForProperty(name = "CreatedDate", + type = "Edm.DateTimeOffset") + org.apache.olingo.ext.proxy.api.Annotatable getCreatedDateAnnotations(); + + } + +} http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/d16d2b9c/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/SubscriptionCollection.java ---------------------------------------------------------------------- diff --git a/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/SubscriptionCollection.java b/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/SubscriptionCollection.java new file mode 100644 index 0000000..e98e3b0 --- /dev/null +++ b/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/SubscriptionCollection.java @@ -0,0 +1,41 @@ +/* + * 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.staticservice.odatawcfservice.types; + +// CHECKSTYLE:OFF (Maven checkstyle) +import java.util.Collection; +// CHECKSTYLE:ON (Maven checkstyle) + +import org.apache.olingo.ext.proxy.api.AbstractTerm; + +public interface SubscriptionCollection + extends + org.apache.olingo.ext.proxy.api.StructuredCollectionQuery<SubscriptionCollection>, +org.apache.olingo.ext.proxy.api.EntityCollection<Subscription, SubscriptionCollection, SubscriptionCollection> { + + Operations operations(); + + interface Operations extends org.apache.olingo.ext.proxy.api.Operations { + // No additional methods needed for now. + } + + Object getAnnotation(Class<? extends AbstractTerm> term); + + Collection<Class<? extends AbstractTerm>> getAnnotationTerms(); +} http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/d16d2b9c/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/SubscriptionCollectionComposableInvoker.java ---------------------------------------------------------------------- diff --git a/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/SubscriptionCollectionComposableInvoker.java b/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/SubscriptionCollectionComposableInvoker.java new file mode 100644 index 0000000..da770cc --- /dev/null +++ b/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/SubscriptionCollectionComposableInvoker.java @@ -0,0 +1,32 @@ +/* + * 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.staticservice.odatawcfservice.types; + +// CHECKSTYLE:OFF (Maven checkstyle) + +public interface SubscriptionCollectionComposableInvoker + extends + org.apache.olingo.ext.proxy.api.StructuredCollectionComposableInvoker<SubscriptionCollection, SubscriptionCollection.Operations> { + + @Override + SubscriptionCollectionComposableInvoker select(String... select); + + @Override + SubscriptionCollectionComposableInvoker expand(String... expand); +} http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/d16d2b9c/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/SubscriptionComposableInvoker.java ---------------------------------------------------------------------- diff --git a/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/SubscriptionComposableInvoker.java b/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/SubscriptionComposableInvoker.java new file mode 100644 index 0000000..6535669 --- /dev/null +++ b/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/SubscriptionComposableInvoker.java @@ -0,0 +1,112 @@ +/* + * 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.staticservice.odatawcfservice.types; + +// CHECKSTYLE:OFF (Maven checkstyle) +import org.apache.olingo.ext.proxy.api.annotations.Key; + +// CHECKSTYLE:ON (Maven checkstyle) + +public interface SubscriptionComposableInvoker + extends org.apache.olingo.ext.proxy.api.StructuredComposableInvoker<Subscription, Subscription.Operations> +{ + + @Override + SubscriptionComposableInvoker select(String... select); + + @Override + SubscriptionComposableInvoker expand(String... expand); + + @Key + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "SubscriptionID", + type = "Edm.Int32", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.lang.Integer getSubscriptionID(); + + void setSubscriptionID(java.lang.Integer _subscriptionID); + + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "TemplateGuid", + type = "Edm.String", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.lang.String getTemplateGuid(); + + void setTemplateGuid(java.lang.String _templateGuid); + + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "Title", + type = "Edm.String", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.lang.String getTitle(); + + void setTitle(java.lang.String _title); + + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "Category", + type = "Edm.String", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.lang.String getCategory(); + + void setCategory(java.lang.String _category); + + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "CreatedDate", + type = "Edm.DateTimeOffset", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.sql.Timestamp getCreatedDate(); + + void setCreatedDate(java.sql.Timestamp _createdDate); + +} http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/d16d2b9c/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/package-info.java ---------------------------------------------------------------------- diff --git a/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/package-info.java b/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/package-info.java new file mode 100644 index 0000000..a1abf97 --- /dev/null +++ b/fit/src/test/java/org/apache/olingo/fit/proxy/staticservice/odatawcfservice/types/package-info.java @@ -0,0 +1,20 @@ +/* + * 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.staticservice.odatawcfservice.types; +
