Repository: olingo-odata4 Updated Branches: refs/heads/master 3a9961a89 -> d16d2b9cd
http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/0063a300/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/Row.java ---------------------------------------------------------------------- diff --git a/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/Row.java b/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/Row.java new file mode 100644 index 0000000..2f472eb --- /dev/null +++ b/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/Row.java @@ -0,0 +1,40 @@ +/* + * 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 org.apache.olingo.ext.proxy.api.AbstractEntitySet; +import org.apache.olingo.fit.proxy.opentype.opentypesservice.types.RowCollection; + +// CHECKSTYLE:ON (Maven checkstyle) + [email protected](name = "Row", + container = "Microsoft.Test.OData.Services.OpenTypesServiceV4.DefaultContainer") +public interface Row + extends + org.apache.olingo.ext.proxy.api.EntitySet<org.apache.olingo.fit.proxy.opentype.opentypesservice.types.Row, RowCollection>, + org.apache.olingo.ext.proxy.api.StructuredCollectionQuery<Row>, + AbstractEntitySet<org.apache.olingo.fit.proxy.opentype.opentypesservice.types.Row, java.util.UUID, RowCollection> { + + Operations operations(); + + interface Operations extends org.apache.olingo.ext.proxy.api.Operations { + // No additional methods needed for now. + } +} http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/0063a300/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/RowIndex.java ---------------------------------------------------------------------- diff --git a/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/RowIndex.java b/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/RowIndex.java new file mode 100644 index 0000000..900219b --- /dev/null +++ b/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/RowIndex.java @@ -0,0 +1,40 @@ +/* + * 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 org.apache.olingo.ext.proxy.api.AbstractEntitySet; +import org.apache.olingo.fit.proxy.opentype.opentypesservice.types.RowIndexCollection; + +// CHECKSTYLE:ON (Maven checkstyle) + [email protected](name = "RowIndex", + container = "Microsoft.Test.OData.Services.OpenTypesServiceV4.DefaultContainer") +public interface RowIndex + extends + org.apache.olingo.ext.proxy.api.EntitySet<org.apache.olingo.fit.proxy.opentype.opentypesservice.types.RowIndex, RowIndexCollection>, + org.apache.olingo.ext.proxy.api.StructuredCollectionQuery<RowIndex>, + AbstractEntitySet<org.apache.olingo.fit.proxy.opentype.opentypesservice.types.RowIndex, java.lang.Integer, RowIndexCollection> { + + Operations operations(); + + interface Operations extends org.apache.olingo.ext.proxy.api.Operations { + // No additional methods needed for now. + } +} http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/0063a300/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/package-info.java ---------------------------------------------------------------------- diff --git a/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/package-info.java b/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/package-info.java new file mode 100644 index 0000000..b32d6c2 --- /dev/null +++ b/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/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.opentype.opentypesservice; + http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/0063a300/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/AccountInfo.java ---------------------------------------------------------------------- diff --git a/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/AccountInfo.java b/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/AccountInfo.java new file mode 100644 index 0000000..8936a4d --- /dev/null +++ b/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/AccountInfo.java @@ -0,0 +1,84 @@ +/* + * 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.types; + +// CHECKSTYLE:OFF (Maven checkstyle) +import org.apache.olingo.ext.proxy.api.AbstractOpenType; +import org.apache.olingo.ext.proxy.api.Annotatable; + +// CHECKSTYLE:ON (Maven checkstyle) + [email protected]("Microsoft.Test.OData.Services.OpenTypesServiceV4") [email protected](name = "AccountInfo", + isOpenType = true, + isAbstract = false) +public interface AccountInfo + extends org.apache.olingo.ext.proxy.api.ComplexType<AccountInfo>, + org.apache.olingo.ext.proxy.api.StructuredQuery<AccountInfo>, AbstractOpenType { + + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "FirstName", + type = "Edm.String", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.lang.String getFirstName(); + + void setFirstName(java.lang.String _firstName); + + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "LastName", + type = "Edm.String", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.lang.String getLastName(); + + void setLastName(java.lang.String _lastName); + + Annotations annotations(); + + interface Annotations { + + @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForProperty(name = "FirstName", + type = "Edm.String") + Annotatable getFirstNameAnnotations(); + + @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForProperty(name = "LastName", + type = "Edm.String") + Annotatable getLastNameAnnotations(); + + } + + Operations operations(); + + interface Operations extends org.apache.olingo.ext.proxy.api.Operations { + // No additional methods needed for now. + } +} http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/0063a300/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/AccountInfoCollection.java ---------------------------------------------------------------------- diff --git a/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/AccountInfoCollection.java b/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/AccountInfoCollection.java new file mode 100644 index 0000000..f77336d --- /dev/null +++ b/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/AccountInfoCollection.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.opentype.opentypesservice.types; + +// CHECKSTYLE:OFF (Maven checkstyle) +import java.util.Collection; +// CHECKSTYLE:ON (Maven checkstyle) + +import org.apache.olingo.ext.proxy.api.AbstractTerm; + +public interface AccountInfoCollection + extends + org.apache.olingo.ext.proxy.api.StructuredCollectionQuery<AccountInfoCollection>, +org.apache.olingo.ext.proxy.api.ComplexCollection<AccountInfo, AccountInfoCollection, AccountInfoCollection> { + + 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/0063a300/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/AccountInfoCollectionComposableInvoker.java ---------------------------------------------------------------------- diff --git a/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/AccountInfoCollectionComposableInvoker.java b/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/AccountInfoCollectionComposableInvoker.java new file mode 100644 index 0000000..a672916 --- /dev/null +++ b/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/AccountInfoCollectionComposableInvoker.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.opentype.opentypesservice.types; + +// CHECKSTYLE:OFF (Maven checkstyle) + +public interface AccountInfoCollectionComposableInvoker + extends + org.apache.olingo.ext.proxy.api.StructuredCollectionComposableInvoker<AccountInfoCollection, AccountInfoCollection.Operations> { + + @Override + AccountInfoCollectionComposableInvoker select(String... select); + + @Override + AccountInfoCollectionComposableInvoker expand(String... expand); +} http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/0063a300/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/AccountInfoComposableInvoker.java ---------------------------------------------------------------------- diff --git a/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/AccountInfoComposableInvoker.java b/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/AccountInfoComposableInvoker.java new file mode 100644 index 0000000..60d5bed --- /dev/null +++ b/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/AccountInfoComposableInvoker.java @@ -0,0 +1,66 @@ +/* + * 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.types; + +// CHECKSTYLE:OFF (Maven checkstyle) +import org.apache.olingo.ext.proxy.api.AbstractOpenType; + +// CHECKSTYLE:ON (Maven checkstyle) + +public interface AccountInfoComposableInvoker + extends org.apache.olingo.ext.proxy.api.StructuredComposableInvoker<AccountInfo, AccountInfo.Operations> + , AbstractOpenType { + + @Override + AccountInfoComposableInvoker select(String... select); + + @Override + AccountInfoComposableInvoker expand(String... expand); + + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "FirstName", + type = "Edm.String", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.lang.String getFirstName(); + + void setFirstName(java.lang.String _firstName); + + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "LastName", + type = "Edm.String", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.lang.String getLastName(); + + void setLastName(java.lang.String _lastName); + +} http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/0063a300/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/Color.java ---------------------------------------------------------------------- diff --git a/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/Color.java b/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/Color.java new file mode 100644 index 0000000..538cb28 --- /dev/null +++ b/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/Color.java @@ -0,0 +1,44 @@ +/* + * 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.types; + +// CHECKSTYLE:OFF (Maven checkstyle) +import org.apache.olingo.commons.api.edm.EdmPrimitiveTypeKind; + +// CHECKSTYLE:ON (Maven checkstyle) + [email protected]("Microsoft.Test.OData.Services.OpenTypesServiceV4") [email protected](name = "Color", + underlyingType = EdmPrimitiveTypeKind.Int32, + isFlags = false) +public enum Color { + Red(1), + Green(2), + Blue(4); + + private java.lang.Integer value; + + public java.lang.Integer getValue() { + return value; + } + + private Color(final java.lang.Integer value) { + this.value = value; + } +} http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/0063a300/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/ContactDetails.java ---------------------------------------------------------------------- diff --git a/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/ContactDetails.java b/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/ContactDetails.java new file mode 100644 index 0000000..f601bb0 --- /dev/null +++ b/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/ContactDetails.java @@ -0,0 +1,273 @@ +/* + * 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.types; + +// CHECKSTYLE:OFF (Maven checkstyle) +import org.apache.olingo.ext.proxy.api.Annotatable; + +// CHECKSTYLE:ON (Maven checkstyle) + [email protected]("Microsoft.Test.OData.Services.OpenTypesServiceV4") [email protected](name = "ContactDetails", + isOpenType = false, + isAbstract = false) +public interface ContactDetails + extends org.apache.olingo.ext.proxy.api.ComplexType<ContactDetails>, + org.apache.olingo.ext.proxy.api.StructuredQuery<ContactDetails> { + + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "FirstContacted", + type = "Edm.Binary", + nullable = true, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + byte[] getFirstContacted(); + + void setFirstContacted(byte[] _firstContacted); + + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "LastContacted", + type = "Edm.DateTimeOffset", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.sql.Timestamp getLastContacted(); + + void setLastContacted(java.sql.Timestamp _lastContacted); + + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "Contacted", + type = "Edm.Date", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.util.Calendar getContacted(); + + void setContacted(java.util.Calendar _contacted); + + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "GUID", + type = "Edm.Guid", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.util.UUID getGUID(); + + void setGUID(java.util.UUID _gUID); + + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "PreferedContactTime", + type = "Edm.TimeOfDay", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.util.Calendar getPreferedContactTime(); + + void setPreferedContactTime(java.util.Calendar _preferedContactTime); + + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "Byte", + type = "Edm.Byte", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.lang.Short getByte(); + + void setByte(java.lang.Short _byte); + + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "SignedByte", + type = "Edm.SByte", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.lang.Byte getSignedByte(); + + void setSignedByte(java.lang.Byte _signedByte); + + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "Double", + type = "Edm.Double", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.lang.Double getDouble(); + + void setDouble(java.lang.Double _double); + + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "Single", + type = "Edm.Single", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.lang.Float getSingle(); + + void setSingle(java.lang.Float _single); + + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "Short", + type = "Edm.Int16", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.lang.Short getShort(); + + void setShort(java.lang.Short _short); + + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "Int", + type = "Edm.Int32", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.lang.Integer getInt(); + + void setInt(java.lang.Integer _int); + + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "Long", + type = "Edm.Int64", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.lang.Long getLong(); + + void setLong(java.lang.Long _long); + + Annotations annotations(); + + interface Annotations { + + @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForProperty(name = "FirstContacted", + type = "Edm.Binary") + Annotatable getFirstContactedAnnotations(); + + @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForProperty(name = "LastContacted", + type = "Edm.DateTimeOffset") + Annotatable getLastContactedAnnotations(); + + @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForProperty(name = "Contacted", + type = "Edm.Date") + Annotatable getContactedAnnotations(); + + @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForProperty(name = "GUID", + type = "Edm.Guid") + Annotatable getGUIDAnnotations(); + + @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForProperty(name = "PreferedContactTime", + type = "Edm.TimeOfDay") + Annotatable getPreferedContactTimeAnnotations(); + + @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForProperty(name = "Byte", + type = "Edm.Byte") + Annotatable getByteAnnotations(); + + @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForProperty(name = "SignedByte", + type = "Edm.SByte") + Annotatable getSignedByteAnnotations(); + + @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForProperty(name = "Double", + type = "Edm.Double") + Annotatable getDoubleAnnotations(); + + @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForProperty(name = "Single", + type = "Edm.Single") + Annotatable getSingleAnnotations(); + + @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForProperty(name = "Short", + type = "Edm.Int16") + Annotatable getShortAnnotations(); + + @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForProperty(name = "Int", + type = "Edm.Int32") + Annotatable getIntAnnotations(); + + @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForProperty(name = "Long", + type = "Edm.Int64") + Annotatable getLongAnnotations(); + + } + + Operations operations(); + + interface Operations extends org.apache.olingo.ext.proxy.api.Operations { + // No additional methods needed for now. + } +} http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/0063a300/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/ContactDetailsCollection.java ---------------------------------------------------------------------- diff --git a/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/ContactDetailsCollection.java b/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/ContactDetailsCollection.java new file mode 100644 index 0000000..b4b9f3f --- /dev/null +++ b/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/ContactDetailsCollection.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.opentype.opentypesservice.types; + +// CHECKSTYLE:OFF (Maven checkstyle) +import java.util.Collection; +// CHECKSTYLE:ON (Maven checkstyle) + +import org.apache.olingo.ext.proxy.api.AbstractTerm; + +public interface ContactDetailsCollection + extends + org.apache.olingo.ext.proxy.api.StructuredCollectionQuery<ContactDetailsCollection>, +org.apache.olingo.ext.proxy.api.ComplexCollection<ContactDetails, ContactDetailsCollection, ContactDetailsCollection> { + + 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/0063a300/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/ContactDetailsCollectionComposableInvoker.java ---------------------------------------------------------------------- diff --git a/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/ContactDetailsCollectionComposableInvoker.java b/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/ContactDetailsCollectionComposableInvoker.java new file mode 100644 index 0000000..37cc9aa --- /dev/null +++ b/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/ContactDetailsCollectionComposableInvoker.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.opentype.opentypesservice.types; + +// CHECKSTYLE:OFF (Maven checkstyle) + +public interface ContactDetailsCollectionComposableInvoker + extends + org.apache.olingo.ext.proxy.api.StructuredCollectionComposableInvoker<ContactDetailsCollection, ContactDetailsCollection.Operations> { + + @Override + ContactDetailsCollectionComposableInvoker select(String... select); + + @Override + ContactDetailsCollectionComposableInvoker expand(String... expand); +} http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/0063a300/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/ContactDetailsComposableInvoker.java ---------------------------------------------------------------------- diff --git a/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/ContactDetailsComposableInvoker.java b/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/ContactDetailsComposableInvoker.java new file mode 100644 index 0000000..45aba50 --- /dev/null +++ b/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/ContactDetailsComposableInvoker.java @@ -0,0 +1,213 @@ +/* + * 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.types; + +// CHECKSTYLE:OFF (Maven checkstyle) + +public interface ContactDetailsComposableInvoker + extends org.apache.olingo.ext.proxy.api.StructuredComposableInvoker<ContactDetails, ContactDetails.Operations> +{ + + @Override + ContactDetailsComposableInvoker select(String... select); + + @Override + ContactDetailsComposableInvoker expand(String... expand); + + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "FirstContacted", + type = "Edm.Binary", + nullable = true, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + byte[] getFirstContacted(); + + void setFirstContacted(byte[] _firstContacted); + + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "LastContacted", + type = "Edm.DateTimeOffset", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.sql.Timestamp getLastContacted(); + + void setLastContacted(java.sql.Timestamp _lastContacted); + + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "Contacted", + type = "Edm.Date", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.util.Calendar getContacted(); + + void setContacted(java.util.Calendar _contacted); + + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "GUID", + type = "Edm.Guid", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.util.UUID getGUID(); + + void setGUID(java.util.UUID _gUID); + + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "PreferedContactTime", + type = "Edm.TimeOfDay", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.util.Calendar getPreferedContactTime(); + + void setPreferedContactTime(java.util.Calendar _preferedContactTime); + + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "Byte", + type = "Edm.Byte", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.lang.Short getByte(); + + void setByte(java.lang.Short _byte); + + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "SignedByte", + type = "Edm.SByte", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.lang.Byte getSignedByte(); + + void setSignedByte(java.lang.Byte _signedByte); + + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "Double", + type = "Edm.Double", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.lang.Double getDouble(); + + void setDouble(java.lang.Double _double); + + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "Single", + type = "Edm.Single", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.lang.Float getSingle(); + + void setSingle(java.lang.Float _single); + + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "Short", + type = "Edm.Int16", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.lang.Short getShort(); + + void setShort(java.lang.Short _short); + + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "Int", + type = "Edm.Int32", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.lang.Integer getInt(); + + void setInt(java.lang.Integer _int); + + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "Long", + type = "Edm.Int64", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.lang.Long getLong(); + + void setLong(java.lang.Long _long); + +} http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/0063a300/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/IndexedRow.java ---------------------------------------------------------------------- diff --git a/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/IndexedRow.java b/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/IndexedRow.java new file mode 100644 index 0000000..ffb4da9 --- /dev/null +++ b/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/IndexedRow.java @@ -0,0 +1,87 @@ +/* + * 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.types; + +import java.util.concurrent.Future; + +import org.apache.olingo.ext.proxy.api.annotations.Key; + [email protected]("Microsoft.Test.OData.Services.OpenTypesServiceV4") [email protected](name = "IndexedRow", + openType = true, + hasStream = false, + isAbstract = false, + baseType = "Microsoft.Test.OData.Services.OpenTypesServiceV4.Row") +public interface IndexedRow extends Row { + + @Override + IndexedRow load(); + + @Override + Future<? extends IndexedRow> loadAsync(); + + @Override + IndexedRow refs(); + + @Override + IndexedRow expand(String... expand); + + @Override + IndexedRow select(String... select); + + @Override + @Key + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "Id", + type = "Edm.Guid", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.util.UUID getId(); + + @Override + void setId(java.util.UUID _id); + + @Override + Operations operations(); + + interface Operations extends + Row.Operations { + // No additional methods needed for now. + } + + @Override + Annotations annotations(); + + interface Annotations extends + Row.Annotations { + + @Override + @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForProperty(name = "Id", + type = "Edm.Guid") + org.apache.olingo.ext.proxy.api.Annotatable getIdAnnotations(); + + } + +} http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/0063a300/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/IndexedRowCollection.java ---------------------------------------------------------------------- diff --git a/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/IndexedRowCollection.java b/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/IndexedRowCollection.java new file mode 100644 index 0000000..7a6b3f3 --- /dev/null +++ b/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/IndexedRowCollection.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.opentype.opentypesservice.types; + +// CHECKSTYLE:OFF (Maven checkstyle) +import java.util.Collection; +// CHECKSTYLE:ON (Maven checkstyle) + +import org.apache.olingo.ext.proxy.api.AbstractTerm; + +public interface IndexedRowCollection + extends + org.apache.olingo.ext.proxy.api.StructuredCollectionQuery<IndexedRowCollection>, +org.apache.olingo.ext.proxy.api.EntityCollection<IndexedRow, IndexedRowCollection, IndexedRowCollection> { + + 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/0063a300/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/IndexedRowCollectionComposableInvoker.java ---------------------------------------------------------------------- diff --git a/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/IndexedRowCollectionComposableInvoker.java b/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/IndexedRowCollectionComposableInvoker.java new file mode 100644 index 0000000..07ff45e --- /dev/null +++ b/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/IndexedRowCollectionComposableInvoker.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.opentype.opentypesservice.types; + +// CHECKSTYLE:OFF (Maven checkstyle) + +public interface IndexedRowCollectionComposableInvoker + extends + org.apache.olingo.ext.proxy.api.StructuredCollectionComposableInvoker<IndexedRowCollection, IndexedRowCollection.Operations> { + + @Override + IndexedRowCollectionComposableInvoker select(String... select); + + @Override + IndexedRowCollectionComposableInvoker expand(String... expand); +} http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/0063a300/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/IndexedRowComposableInvoker.java ---------------------------------------------------------------------- diff --git a/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/IndexedRowComposableInvoker.java b/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/IndexedRowComposableInvoker.java new file mode 100644 index 0000000..14bd321 --- /dev/null +++ b/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/IndexedRowComposableInvoker.java @@ -0,0 +1,53 @@ +/* + * 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.types; + +// CHECKSTYLE:OFF (Maven checkstyle) +import org.apache.olingo.ext.proxy.api.AbstractOpenType; + +// CHECKSTYLE:ON (Maven checkstyle) +import org.apache.olingo.ext.proxy.api.annotations.Key; + +public interface IndexedRowComposableInvoker + extends org.apache.olingo.ext.proxy.api.StructuredComposableInvoker<IndexedRow, IndexedRow.Operations> + , AbstractOpenType { + + @Override + IndexedRowComposableInvoker select(String... select); + + @Override + IndexedRowComposableInvoker expand(String... expand); + + @Key + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "Id", + type = "Edm.Guid", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.util.UUID getId(); + + void setId(java.util.UUID _id); + +} http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/0063a300/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/Row.java ---------------------------------------------------------------------- diff --git a/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/Row.java b/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/Row.java new file mode 100644 index 0000000..a0a8b83 --- /dev/null +++ b/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/Row.java @@ -0,0 +1,68 @@ +/* + * 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.types; + +// CHECKSTYLE:OFF (Maven checkstyle) +import org.apache.olingo.ext.proxy.api.AbstractOpenType; +// CHECKSTYLE:ON (Maven checkstyle) +import org.apache.olingo.ext.proxy.api.annotations.Key; + [email protected]("Microsoft.Test.OData.Services.OpenTypesServiceV4") [email protected](name = "Row", + openType = true, + hasStream = false, + isAbstract = false) +public interface Row + extends org.apache.olingo.ext.proxy.api.Annotatable, + org.apache.olingo.ext.proxy.api.EntityType<Row>, org.apache.olingo.ext.proxy.api.StructuredQuery<Row>, + AbstractOpenType { + + @Key + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "Id", + type = "Edm.Guid", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.util.UUID getId(); + + void setId(java.util.UUID _id); + + 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 = "Id", + type = "Edm.Guid") + org.apache.olingo.ext.proxy.api.Annotatable getIdAnnotations(); + + } + +} http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/0063a300/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/RowCollection.java ---------------------------------------------------------------------- diff --git a/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/RowCollection.java b/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/RowCollection.java new file mode 100644 index 0000000..4d323c4 --- /dev/null +++ b/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/RowCollection.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.opentype.opentypesservice.types; + +// CHECKSTYLE:OFF (Maven checkstyle) +import java.util.Collection; +// CHECKSTYLE:ON (Maven checkstyle) + +import org.apache.olingo.ext.proxy.api.AbstractTerm; + +public interface RowCollection + extends + org.apache.olingo.ext.proxy.api.StructuredCollectionQuery<RowCollection>, +org.apache.olingo.ext.proxy.api.EntityCollection<Row, RowCollection, RowCollection> { + + 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/0063a300/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/RowCollectionComposableInvoker.java ---------------------------------------------------------------------- diff --git a/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/RowCollectionComposableInvoker.java b/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/RowCollectionComposableInvoker.java new file mode 100644 index 0000000..4d6eaa6 --- /dev/null +++ b/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/RowCollectionComposableInvoker.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.opentype.opentypesservice.types; + +// CHECKSTYLE:OFF (Maven checkstyle) + +public interface RowCollectionComposableInvoker + extends + org.apache.olingo.ext.proxy.api.StructuredCollectionComposableInvoker<RowCollection, RowCollection.Operations> { + + @Override + RowCollectionComposableInvoker select(String... select); + + @Override + RowCollectionComposableInvoker expand(String... expand); +} http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/0063a300/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/RowComposableInvoker.java ---------------------------------------------------------------------- diff --git a/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/RowComposableInvoker.java b/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/RowComposableInvoker.java new file mode 100644 index 0000000..c5f8df5 --- /dev/null +++ b/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/RowComposableInvoker.java @@ -0,0 +1,53 @@ +/* + * 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.types; + +// CHECKSTYLE:OFF (Maven checkstyle) +import org.apache.olingo.ext.proxy.api.AbstractOpenType; + +// CHECKSTYLE:ON (Maven checkstyle) +import org.apache.olingo.ext.proxy.api.annotations.Key; + +public interface RowComposableInvoker + extends org.apache.olingo.ext.proxy.api.StructuredComposableInvoker<Row, Row.Operations> + , AbstractOpenType { + + @Override + RowComposableInvoker select(String... select); + + @Override + RowComposableInvoker expand(String... expand); + + @Key + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "Id", + type = "Edm.Guid", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.util.UUID getId(); + + void setId(java.util.UUID _id); + +} http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/0063a300/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/RowIndex.java ---------------------------------------------------------------------- diff --git a/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/RowIndex.java b/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/RowIndex.java new file mode 100644 index 0000000..59c4fb1 --- /dev/null +++ b/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/RowIndex.java @@ -0,0 +1,82 @@ +/* + * 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.types; + +// CHECKSTYLE:OFF (Maven checkstyle) +import org.apache.olingo.ext.proxy.api.AbstractOpenType; +// CHECKSTYLE:ON (Maven checkstyle) +import org.apache.olingo.ext.proxy.api.annotations.Key; + [email protected]("Microsoft.Test.OData.Services.OpenTypesServiceV4") [email protected](name = "RowIndex", + openType = true, + hasStream = false, + isAbstract = false) +public interface RowIndex + extends org.apache.olingo.ext.proxy.api.Annotatable, + org.apache.olingo.ext.proxy.api.EntityType<RowIndex>, org.apache.olingo.ext.proxy.api.StructuredQuery<RowIndex>, + AbstractOpenType { + + @Key + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "Id", + type = "Edm.Int32", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.lang.Integer getId(); + + void setId(java.lang.Integer _id); + + @org.apache.olingo.ext.proxy.api.annotations.NavigationProperty(name = "Rows", + type = "Microsoft.Test.OData.Services.OpenTypesServiceV4.Row", + targetSchema = "Microsoft.Test.OData.Services.OpenTypesServiceV4", + targetContainer = "DefaultContainer", + targetEntitySet = "Row", + containsTarget = false) + Row getRows(); + + void + setRows(Row _rows); + + 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 = "Id", + type = "Edm.Int32") + org.apache.olingo.ext.proxy.api.Annotatable getIdAnnotations(); + + @org.apache.olingo.ext.proxy.api.annotations.AnnotationsForNavigationProperty(name = "Rows", + type = "Microsoft.Test.OData.Services.OpenTypesServiceV4.Row") + org.apache.olingo.ext.proxy.api.Annotatable getRowsAnnotations(); + } + +} http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/0063a300/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/RowIndexCollection.java ---------------------------------------------------------------------- diff --git a/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/RowIndexCollection.java b/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/RowIndexCollection.java new file mode 100644 index 0000000..9a03027 --- /dev/null +++ b/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/RowIndexCollection.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.opentype.opentypesservice.types; + +// CHECKSTYLE:OFF (Maven checkstyle) +import java.util.Collection; +// CHECKSTYLE:ON (Maven checkstyle) + +import org.apache.olingo.ext.proxy.api.AbstractTerm; + +public interface RowIndexCollection + extends + org.apache.olingo.ext.proxy.api.StructuredCollectionQuery<RowIndexCollection>, +org.apache.olingo.ext.proxy.api.EntityCollection<RowIndex, RowIndexCollection, RowIndexCollection> { + + 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/0063a300/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/RowIndexCollectionComposableInvoker.java ---------------------------------------------------------------------- diff --git a/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/RowIndexCollectionComposableInvoker.java b/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/RowIndexCollectionComposableInvoker.java new file mode 100644 index 0000000..14dc1ec --- /dev/null +++ b/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/RowIndexCollectionComposableInvoker.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.opentype.opentypesservice.types; + +// CHECKSTYLE:OFF (Maven checkstyle) + +public interface RowIndexCollectionComposableInvoker + extends + org.apache.olingo.ext.proxy.api.StructuredCollectionComposableInvoker<RowIndexCollection, RowIndexCollection.Operations> { + + @Override + RowIndexCollectionComposableInvoker select(String... select); + + @Override + RowIndexCollectionComposableInvoker expand(String... expand); +} http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/0063a300/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/RowIndexComposableInvoker.java ---------------------------------------------------------------------- diff --git a/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/RowIndexComposableInvoker.java b/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/RowIndexComposableInvoker.java new file mode 100644 index 0000000..2f425e2 --- /dev/null +++ b/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/RowIndexComposableInvoker.java @@ -0,0 +1,64 @@ +/* + * 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.types; + +// CHECKSTYLE:OFF (Maven checkstyle) +import org.apache.olingo.ext.proxy.api.AbstractOpenType; + +// CHECKSTYLE:ON (Maven checkstyle) +import org.apache.olingo.ext.proxy.api.annotations.Key; + +public interface RowIndexComposableInvoker + extends org.apache.olingo.ext.proxy.api.StructuredComposableInvoker<RowIndex, RowIndex.Operations> + , AbstractOpenType { + + @Override + RowIndexComposableInvoker select(String... select); + + @Override + RowIndexComposableInvoker expand(String... expand); + + @Key + @org.apache.olingo.ext.proxy.api.annotations.Property(name = "Id", + type = "Edm.Int32", + nullable = false, + defaultValue = "", + maxLenght = Integer.MAX_VALUE, + fixedLenght = false, + precision = 0, + scale = 0, + unicode = true, + collation = "", + srid = "") + java.lang.Integer getId(); + + void setId(java.lang.Integer _id); + + @org.apache.olingo.ext.proxy.api.annotations.NavigationProperty(name = "Rows", + type = "Microsoft.Test.OData.Services.OpenTypesServiceV4.Row", + targetSchema = "Microsoft.Test.OData.Services.OpenTypesServiceV4", + targetContainer = "DefaultContainer", + targetEntitySet = "Row", + containsTarget = false) + Row getRows(); + + void + setRows(Row _rows); + +} http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/0063a300/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/package-info.java ---------------------------------------------------------------------- diff --git a/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/package-info.java b/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/types/package-info.java new file mode 100644 index 0000000..c9a4bc0 --- /dev/null +++ b/fit/src/test/java/org/apache/olingo/fit/proxy/opentype/opentypesservice/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.opentype.opentypesservice.types; +
