http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/8a58a678/lib/commons-api/src/main/java/org/apache/olingo/commons/api/edm/provider/annotation/NavigationPropertyPath.java ---------------------------------------------------------------------- diff --git a/lib/commons-api/src/main/java/org/apache/olingo/commons/api/edm/provider/annotation/NavigationPropertyPath.java b/lib/commons-api/src/main/java/org/apache/olingo/commons/api/edm/provider/annotation/NavigationPropertyPath.java new file mode 100644 index 0000000..8538f53 --- /dev/null +++ b/lib/commons-api/src/main/java/org/apache/olingo/commons/api/edm/provider/annotation/NavigationPropertyPath.java @@ -0,0 +1,25 @@ +/* + * 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.commons.api.edm.provider.annotation; + +public interface NavigationPropertyPath extends DynamicAnnotationExpression { + + String getValue(); + +}
http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/8a58a678/lib/commons-api/src/main/java/org/apache/olingo/commons/api/edm/provider/annotation/Not.java ---------------------------------------------------------------------- diff --git a/lib/commons-api/src/main/java/org/apache/olingo/commons/api/edm/provider/annotation/Not.java b/lib/commons-api/src/main/java/org/apache/olingo/commons/api/edm/provider/annotation/Not.java new file mode 100644 index 0000000..1acdede --- /dev/null +++ b/lib/commons-api/src/main/java/org/apache/olingo/commons/api/edm/provider/annotation/Not.java @@ -0,0 +1,24 @@ +/* + * 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.commons.api.edm.provider.annotation; + +public interface Not extends DynamicAnnotationExpression { + + DynamicAnnotationExpression getExpression(); +} http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/8a58a678/lib/commons-api/src/main/java/org/apache/olingo/commons/api/edm/provider/annotation/Null.java ---------------------------------------------------------------------- diff --git a/lib/commons-api/src/main/java/org/apache/olingo/commons/api/edm/provider/annotation/Null.java b/lib/commons-api/src/main/java/org/apache/olingo/commons/api/edm/provider/annotation/Null.java new file mode 100644 index 0000000..40345ee --- /dev/null +++ b/lib/commons-api/src/main/java/org/apache/olingo/commons/api/edm/provider/annotation/Null.java @@ -0,0 +1,25 @@ +/* + * 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.commons.api.edm.provider.annotation; + +import org.apache.olingo.commons.api.edm.provider.Annotatable; + +public interface Null extends DynamicAnnotationExpression, Annotatable { +//No additional methods needed for now. +} http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/8a58a678/lib/commons-api/src/main/java/org/apache/olingo/commons/api/edm/provider/annotation/Path.java ---------------------------------------------------------------------- diff --git a/lib/commons-api/src/main/java/org/apache/olingo/commons/api/edm/provider/annotation/Path.java b/lib/commons-api/src/main/java/org/apache/olingo/commons/api/edm/provider/annotation/Path.java new file mode 100644 index 0000000..7edd73e --- /dev/null +++ b/lib/commons-api/src/main/java/org/apache/olingo/commons/api/edm/provider/annotation/Path.java @@ -0,0 +1,25 @@ +/* + * 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.commons.api.edm.provider.annotation; + +public interface Path extends DynamicAnnotationExpression { + + String getValue(); + +} http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/8a58a678/lib/commons-api/src/main/java/org/apache/olingo/commons/api/edm/provider/annotation/PropertyPath.java ---------------------------------------------------------------------- diff --git a/lib/commons-api/src/main/java/org/apache/olingo/commons/api/edm/provider/annotation/PropertyPath.java b/lib/commons-api/src/main/java/org/apache/olingo/commons/api/edm/provider/annotation/PropertyPath.java new file mode 100644 index 0000000..a7d26d2 --- /dev/null +++ b/lib/commons-api/src/main/java/org/apache/olingo/commons/api/edm/provider/annotation/PropertyPath.java @@ -0,0 +1,25 @@ +/* + * 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.commons.api.edm.provider.annotation; + +public interface PropertyPath extends DynamicAnnotationExpression { + + String getValue(); + +} http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/8a58a678/lib/commons-api/src/main/java/org/apache/olingo/commons/api/edm/provider/annotation/PropertyValue.java ---------------------------------------------------------------------- diff --git a/lib/commons-api/src/main/java/org/apache/olingo/commons/api/edm/provider/annotation/PropertyValue.java b/lib/commons-api/src/main/java/org/apache/olingo/commons/api/edm/provider/annotation/PropertyValue.java new file mode 100644 index 0000000..acdf92e --- /dev/null +++ b/lib/commons-api/src/main/java/org/apache/olingo/commons/api/edm/provider/annotation/PropertyValue.java @@ -0,0 +1,29 @@ +/* + * 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.commons.api.edm.provider.annotation; + +import org.apache.olingo.commons.api.edm.provider.Annotatable; + +public interface PropertyValue extends DynamicAnnotationExpression, Annotatable { + + String getProperty(); + + AnnotationExpression getValue(); + +} http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/8a58a678/lib/commons-api/src/main/java/org/apache/olingo/commons/api/edm/provider/annotation/Record.java ---------------------------------------------------------------------- diff --git a/lib/commons-api/src/main/java/org/apache/olingo/commons/api/edm/provider/annotation/Record.java b/lib/commons-api/src/main/java/org/apache/olingo/commons/api/edm/provider/annotation/Record.java new file mode 100644 index 0000000..1344c30 --- /dev/null +++ b/lib/commons-api/src/main/java/org/apache/olingo/commons/api/edm/provider/annotation/Record.java @@ -0,0 +1,31 @@ +/* + * 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.commons.api.edm.provider.annotation; + +import java.util.List; + +import org.apache.olingo.commons.api.edm.provider.Annotatable; + +public interface Record extends DynamicAnnotationExpression, Annotatable { + + List<PropertyValue> getPropertyValues(); + + String getType(); + +} http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/8a58a678/lib/commons-api/src/main/java/org/apache/olingo/commons/api/edm/provider/annotation/TwoParamsOpDynamicAnnotationExpression.java ---------------------------------------------------------------------- diff --git a/lib/commons-api/src/main/java/org/apache/olingo/commons/api/edm/provider/annotation/TwoParamsOpDynamicAnnotationExpression.java b/lib/commons-api/src/main/java/org/apache/olingo/commons/api/edm/provider/annotation/TwoParamsOpDynamicAnnotationExpression.java new file mode 100644 index 0000000..c07c9a3 --- /dev/null +++ b/lib/commons-api/src/main/java/org/apache/olingo/commons/api/edm/provider/annotation/TwoParamsOpDynamicAnnotationExpression.java @@ -0,0 +1,50 @@ +/* + * 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.commons.api.edm.provider.annotation; + +public interface TwoParamsOpDynamicAnnotationExpression extends DynamicAnnotationExpression { + + public static enum Type { + + And, + Or, + Eq, + Ne, + Gt, + Ge, + Lt, + Le; + + public static Type fromString(final String value) { + Type result = null; + for (Type type : values()) { + if (value.equals(type.name())) { + result = type; + } + } + return result; + } + } + + Type getType(); + + DynamicAnnotationExpression getLeftExpression(); + + DynamicAnnotationExpression getRightExpression(); +} http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/8a58a678/lib/commons-api/src/main/java/org/apache/olingo/commons/api/edm/provider/annotation/UrlRef.java ---------------------------------------------------------------------- diff --git a/lib/commons-api/src/main/java/org/apache/olingo/commons/api/edm/provider/annotation/UrlRef.java b/lib/commons-api/src/main/java/org/apache/olingo/commons/api/edm/provider/annotation/UrlRef.java new file mode 100644 index 0000000..0d82502 --- /dev/null +++ b/lib/commons-api/src/main/java/org/apache/olingo/commons/api/edm/provider/annotation/UrlRef.java @@ -0,0 +1,25 @@ +/* + * 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.commons.api.edm.provider.annotation; + +public interface UrlRef extends DynamicAnnotationExpression { + + AnnotationExpression getValue(); + +} http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/8a58a678/lib/commons-core/src/main/java/org/apache/olingo/commons/core/edm/AbstractEdmBindingTarget.java ---------------------------------------------------------------------- diff --git a/lib/commons-core/src/main/java/org/apache/olingo/commons/core/edm/AbstractEdmBindingTarget.java b/lib/commons-core/src/main/java/org/apache/olingo/commons/core/edm/AbstractEdmBindingTarget.java index ecfe38f..d3d9bf6 100644 --- a/lib/commons-core/src/main/java/org/apache/olingo/commons/core/edm/AbstractEdmBindingTarget.java +++ b/lib/commons-core/src/main/java/org/apache/olingo/commons/core/edm/AbstractEdmBindingTarget.java @@ -69,13 +69,16 @@ public abstract class AbstractEdmBindingTarget extends EdmNamedImpl implements E @Override public EdmBindingTarget getRelatedBindingTarget(final String path) { + if(path == null){ + return null; + } EdmBindingTarget bindingTarget = null; boolean found = false; for (final Iterator<EdmNavigationPropertyBinding> itor = getNavigationPropertyBindings().iterator(); itor.hasNext() && !found;) { final EdmNavigationPropertyBinding binding = itor.next(); - if (binding.getPath().equals(path)) { + if (path.startsWith(binding.getPath())) { final Target edmTarget = new Target.Builder(binding.getTarget(), container).build(); final EdmEntityContainer entityContainer = edm.getEntityContainer(edmTarget.getEntityContainer()); http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/8a58a678/lib/commons-core/src/main/java/org/apache/olingo/commons/core/edm/AbstractEdmParameter.java ---------------------------------------------------------------------- diff --git a/lib/commons-core/src/main/java/org/apache/olingo/commons/core/edm/AbstractEdmParameter.java b/lib/commons-core/src/main/java/org/apache/olingo/commons/core/edm/AbstractEdmParameter.java index 6b71894..0264573 100644 --- a/lib/commons-core/src/main/java/org/apache/olingo/commons/core/edm/AbstractEdmParameter.java +++ b/lib/commons-core/src/main/java/org/apache/olingo/commons/core/edm/AbstractEdmParameter.java @@ -20,7 +20,6 @@ package org.apache.olingo.commons.core.edm; import org.apache.olingo.commons.api.edm.Edm; import org.apache.olingo.commons.api.edm.EdmException; -import org.apache.olingo.commons.api.edm.EdmMapping; import org.apache.olingo.commons.api.edm.EdmParameter; import org.apache.olingo.commons.api.edm.EdmType; import org.apache.olingo.commons.api.edm.FullQualifiedName; @@ -47,20 +46,4 @@ public abstract class AbstractEdmParameter extends EdmElementImpl implements Edm return typeImpl; } - - @Override - public abstract EdmMapping getMapping(); - - @Override - public abstract Boolean isNullable(); - - @Override - public abstract Integer getMaxLength(); - - @Override - public abstract Integer getPrecision(); - - @Override - public abstract Integer getScale(); - } http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/8a58a678/lib/server-api/src/main/java/org/apache/olingo/server/api/OData.java ---------------------------------------------------------------------- diff --git a/lib/server-api/src/main/java/org/apache/olingo/server/api/OData.java b/lib/server-api/src/main/java/org/apache/olingo/server/api/OData.java index eddd0da..8db1ada 100644 --- a/lib/server-api/src/main/java/org/apache/olingo/server/api/OData.java +++ b/lib/server-api/src/main/java/org/apache/olingo/server/api/OData.java @@ -21,11 +21,11 @@ package org.apache.olingo.server.api; import java.util.List; import org.apache.olingo.commons.api.ODataRuntimeException; +import org.apache.olingo.commons.api.edm.provider.EdmProvider; import org.apache.olingo.commons.api.format.ODataFormat; import org.apache.olingo.server.api.deserializer.DeserializerException; import org.apache.olingo.server.api.deserializer.FixedFormatDeserializer; import org.apache.olingo.server.api.deserializer.ODataDeserializer; -import org.apache.olingo.server.api.edm.provider.EdmProvider; import org.apache.olingo.server.api.edmx.EdmxReference; import org.apache.olingo.server.api.serializer.FixedFormatSerializer; import org.apache.olingo.server.api.serializer.ODataSerializer; http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/8a58a678/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/Action.java ---------------------------------------------------------------------- diff --git a/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/Action.java b/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/Action.java deleted file mode 100644 index c33d139..0000000 --- a/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/Action.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * 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.server.api.edm.provider; - -import java.util.List; - -public class Action extends Operation { - - @Override - public Action setName(final String name) { - this.name = name; - return this; - } - - @Override - public Action setBound(final boolean isBound) { - this.isBound = isBound; - return this; - } - - @Override - public Action setEntitySetPath(final EntitySetPath entitySetPath) { - this.entitySetPath = entitySetPath; - return this; - } - - @Override - public Action setParameters(final List<Parameter> parameters) { - this.parameters = parameters; - return this; - } - - @Override - public Action setReturnType(final ReturnType returnType) { - this.returnType = returnType; - return this; - } -} http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/8a58a678/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/ActionImport.java ---------------------------------------------------------------------- diff --git a/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/ActionImport.java b/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/ActionImport.java deleted file mode 100644 index 5086818..0000000 --- a/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/ActionImport.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * 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.server.api.edm.provider; - -import org.apache.olingo.commons.api.edm.FullQualifiedName; -import org.apache.olingo.commons.api.edm.Target; - -public class ActionImport extends OperationImport { - - private FullQualifiedName action; - - @Override - public ActionImport setName(final String name) { - this.name = name; - return this; - } - - @Override - public ActionImport setEntitySet(final Target entitySet) { - this.entitySet = entitySet; - return this; - } - - public FullQualifiedName getAction() { - return action; - } - - public ActionImport setAction(final FullQualifiedName action) { - this.action = action; - return this; - } -} http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/8a58a678/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/AliasInfo.java ---------------------------------------------------------------------- diff --git a/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/AliasInfo.java b/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/AliasInfo.java deleted file mode 100644 index 9cff2c8..0000000 --- a/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/AliasInfo.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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.server.api.edm.provider; - -public class AliasInfo { - - private String namespace; - - private String alias; - - public String getNamespace() { - return namespace; - } - - public AliasInfo setNamespace(final String namespace) { - this.namespace = namespace; - return this; - } - - public String getAlias() { - return alias; - } - - public AliasInfo setAlias(final String alias) { - this.alias = alias; - return this; - } - -} http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/8a58a678/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/Annotation.java ---------------------------------------------------------------------- diff --git a/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/Annotation.java b/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/Annotation.java deleted file mode 100644 index a4a4937..0000000 --- a/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/Annotation.java +++ /dev/null @@ -1,72 +0,0 @@ -/* - * 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.server.api.edm.provider; - -import org.apache.olingo.commons.api.edm.FullQualifiedName; - -import java.util.List; - -public class Annotation { - - private FullQualifiedName term; - - // Target should be a target path -// private String targetPath; - private String qualifier; - - private Expression expression; - - private List<Annotation> annotation; - - public FullQualifiedName getTerm() { - return term; - } - - public Annotation setTerm(final FullQualifiedName term) { - this.term = term; - return this; - } - - public String getQualifier() { - return qualifier; - } - - public Annotation setQualifier(final String qualifier) { - this.qualifier = qualifier; - return this; - } - - public Expression getExpression() { - return expression; - } - - public Annotation setExpression(final Expression expression) { - this.expression = expression; - return this; - } - - public List<Annotation> getAnnotation() { - return annotation; - } - - public Annotation setAnnotation(final List<Annotation> annotation) { - this.annotation = annotation; - return this; - } -} http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/8a58a678/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/BindingTarget.java ---------------------------------------------------------------------- diff --git a/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/BindingTarget.java b/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/BindingTarget.java deleted file mode 100644 index 1ca52ff..0000000 --- a/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/BindingTarget.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * 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.server.api.edm.provider; - -import org.apache.olingo.commons.api.edm.FullQualifiedName; - -import java.util.List; - -public abstract class BindingTarget { - - protected String name; - - protected FullQualifiedName type; - - protected List<NavigationPropertyBinding> navigationPropertyBindings; - - public String getName() { - return name; - } - - public BindingTarget setName(final String name) { - this.name = name; - return this; - } - - public FullQualifiedName getType() { - return type; - } - - public BindingTarget setType(final FullQualifiedName type) { - this.type = type; - return this; - } - - public List<NavigationPropertyBinding> getNavigationPropertyBindings() { - return navigationPropertyBindings; - } - - public BindingTarget setNavigationPropertyBindings(final List<NavigationPropertyBinding> navigationPropertyBindings) { - this.navigationPropertyBindings = navigationPropertyBindings; - return this; - } - -} http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/8a58a678/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/ComplexType.java ---------------------------------------------------------------------- diff --git a/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/ComplexType.java b/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/ComplexType.java deleted file mode 100644 index 9ef47ca..0000000 --- a/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/ComplexType.java +++ /dev/null @@ -1,62 +0,0 @@ -/* - * 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.server.api.edm.provider; - -import org.apache.olingo.commons.api.edm.FullQualifiedName; - -import java.util.List; - -public class ComplexType extends StructuredType { - - @Override - public ComplexType setName(final String name) { - this.name = name; - return this; - } - - @Override - public ComplexType setOpenType(final boolean isOpenType) { - this.isOpenType = isOpenType; - return this; - } - - @Override - public ComplexType setBaseType(final FullQualifiedName baseType) { - this.baseType = baseType; - return this; - } - - @Override - public ComplexType setAbstract(final boolean isAbstract) { - this.isAbstract = isAbstract; - return this; - } - - @Override - public ComplexType setProperties(final List<Property> properties) { - this.properties = properties; - return this; - } - - @Override - public ComplexType setNavigationProperties(final List<NavigationProperty> navigationProperties) { - this.navigationProperties = navigationProperties; - return this; - } -} http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/8a58a678/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/EdmProvider.java ---------------------------------------------------------------------- diff --git a/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/EdmProvider.java b/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/EdmProvider.java deleted file mode 100644 index 9058e6b..0000000 --- a/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/EdmProvider.java +++ /dev/null @@ -1,195 +0,0 @@ -/* - * 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.server.api.edm.provider; - -import org.apache.olingo.commons.api.ODataException; -import org.apache.olingo.commons.api.edm.FullQualifiedName; - -import java.util.List; - -public abstract class EdmProvider { - - /** - * This method should return an {@link EnumType} or <b>null</b> if nothing is found - * - * @param enumTypeName - * @return {@link EnumType} for given name - * @throws ODataException - */ - public EnumType getEnumType(final FullQualifiedName enumTypeName) throws ODataException { - return null; - } - - /** - * This method should return an {@link TypeDefinition} or <b>null</b> if nothing is found - * - * @param typeDefinitionName - * @return {@link TypeDefinition} for given name - * @throws ODataException - */ - public TypeDefinition getTypeDefinition(final FullQualifiedName typeDefinitionName) throws ODataException { - return null; - } - - /** - * This method should return an {@link EntityType} or <b>null</b> if nothing is found - * - * @param entityTypeName - * @return {@link EntityType} for the given name - * @throws ODataException - */ - public EntityType getEntityType(final FullQualifiedName entityTypeName) throws ODataException { - return null; - } - - /** - * This method should return a {@link ComplexType} or <b>null</b> if nothing is found. - * - * @param complexTypeName - * @return {@link ComplexType} for the given name - * @throws ODataException - */ - public ComplexType getComplexType(final FullQualifiedName complexTypeName) throws ODataException { - return null; - } - - /** - * This method should return a list of all {@link Action} for the FullQualifiedname or <b>null</b> if nothing is found - * - * @param actionName - * @return List of {@link Action} or null - * @throws ODataException - */ - public List<Action> getActions(final FullQualifiedName actionName) throws ODataException { - return null; - } - - /** - * This method should return a list of all {@link Function} for the FullQualifiedname or <b>null</b> if nothing is - * found - * - * @param functionName - * @return List of {@link Function} or null - * @throws ODataException - */ - public List<Function> getFunctions(final FullQualifiedName functionName) throws ODataException { - return null; - } - - /** - * This method should return a {@link Term} for the FullQualifiedName or <b>null</b> if nothing is found. - * @param termName the name of the Term - * @return {@link Term} or null - * @throws ODataException - */ - public Term getTerm(final FullQualifiedName termName) throws ODataException { - return null; - } - - /** - * This method should return an {@link EntitySet} or <b>null</b> if nothing is found - * - * @param entityContainer this EntitySet is contained in - * @param entitySetName - * @return {@link EntitySet} for the given container and entityset name - * @throws ODataException - */ - public EntitySet getEntitySet(final FullQualifiedName entityContainer, final String entitySetName) - throws ODataException { - return null; - } - - /** - * This method should return an {@link Singleton} or <b>null</b> if nothing is found - * - * @param entityContainer this Singleton is contained in - * @param singletonName - * @return {@link Singleton} for given container and singleton name - * @throws ODataException - */ - public Singleton getSingleton(final FullQualifiedName entityContainer, final String singletonName) - throws ODataException { - return null; - } - - /** - * This method should return an {@link ActionImport} or <b>null</b> if nothing is found - * - * @param entityContainer this ActionImport is contained in - * @param actionImportName - * @return {@link ActionImport} for the given container and ActionImport name - * @throws ODataException - */ - public ActionImport getActionImport(final FullQualifiedName entityContainer, final String actionImportName) - throws ODataException { - return null; - } - - /** - * This method should return a {@link FunctionImport} or <b>null</b> if nothing is found - * - * @param entityContainer this FunctionImport is contained in - * @param functionImportName - * @return {@link FunctionImport} for the given container name and function import name - * @throws ODataException - */ - public FunctionImport getFunctionImport(final FullQualifiedName entityContainer, final String functionImportName) - throws ODataException { - return null; - } - - /** - * This method should return an {@link EntityContainerInfo} or <b>null</b> if nothing is found - * - * @param entityContainerName (null for default container) - * @return {@link EntityContainerInfo} for the given name - * @throws ODataException - */ - public EntityContainerInfo getEntityContainerInfo(final FullQualifiedName entityContainerName) throws ODataException { - return null; - } - - /** - * This method should return a list of all namespaces which have an alias - * - * @return List of alias info - * @throws ODataException - */ - public List<AliasInfo> getAliasInfos() throws ODataException { - return null; - } - - /** - * This method should return a collection of all {@link Schema} - * - * @return List<{@link Schema}> - * @throws ODataException - */ - public List<Schema> getSchemas() throws ODataException { - return null; - } - - /** - * Returns the entity container of this edm - * @return {@link EntityContainer} of this edm - */ - public EntityContainer getEntityContainer() throws ODataException { - return null; - } -} http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/8a58a678/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/EntityContainer.java ---------------------------------------------------------------------- diff --git a/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/EntityContainer.java b/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/EntityContainer.java deleted file mode 100644 index 3b993e1..0000000 --- a/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/EntityContainer.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * 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.server.api.edm.provider; - -import org.apache.olingo.commons.api.edm.FullQualifiedName; - -import java.util.List; - -public class EntityContainer { - - private String name; - - private FullQualifiedName extendsContainer; - - private List<EntitySet> entitySets; - - private List<ActionImport> actionImports; - - private List<FunctionImport> functionImports; - - private List<Singleton> singletons; - - // Annotations - public String getName() { - return name; - } - - public EntityContainer setName(final String name) { - this.name = name; - return this; - } - - public FullQualifiedName getExtendsContainer() { - return extendsContainer; - } - - public EntityContainer setExtendsContainer(final FullQualifiedName extendsContainer) { - this.extendsContainer = extendsContainer; - return this; - } - - public List<EntitySet> getEntitySets() { - return entitySets; - } - - public EntityContainer setEntitySets(final List<EntitySet> entitySets) { - this.entitySets = entitySets; - return this; - } - - public List<ActionImport> getActionImports() { - return actionImports; - } - - public EntityContainer setActionImports(final List<ActionImport> actionImports) { - this.actionImports = actionImports; - return this; - } - - public List<FunctionImport> getFunctionImports() { - return functionImports; - } - - public EntityContainer setFunctionImports(final List<FunctionImport> functionImports) { - this.functionImports = functionImports; - return this; - } - - public List<Singleton> getSingletons() { - return singletons; - } - - public EntityContainer setSingletons(final List<Singleton> singletons) { - this.singletons = singletons; - return this; - } -} http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/8a58a678/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/EntityContainerInfo.java ---------------------------------------------------------------------- diff --git a/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/EntityContainerInfo.java b/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/EntityContainerInfo.java deleted file mode 100644 index 806d71a..0000000 --- a/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/EntityContainerInfo.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * 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.server.api.edm.provider; - -import org.apache.olingo.commons.api.edm.FullQualifiedName; - -public class EntityContainerInfo { - - private FullQualifiedName containerName; - - private FullQualifiedName extendsContainer; - - public FullQualifiedName getContainerName() { - return containerName; - } - - public EntityContainerInfo setContainerName(final FullQualifiedName containerName) { - this.containerName = containerName; - return this; - } - - public FullQualifiedName getExtendsContainer() { - return extendsContainer; - } - - public EntityContainerInfo setExtendsContainer(final FullQualifiedName extendsContainer) { - this.extendsContainer = extendsContainer; - return this; - } - -} http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/8a58a678/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/EntitySet.java ---------------------------------------------------------------------- diff --git a/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/EntitySet.java b/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/EntitySet.java deleted file mode 100644 index 361d15a..0000000 --- a/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/EntitySet.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * 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.server.api.edm.provider; - -import org.apache.olingo.commons.api.edm.FullQualifiedName; - -import java.util.List; - -public class EntitySet extends BindingTarget { - - private boolean includeInServiceDocument = true; - - @Override - public EntitySet setName(final String name) { - this.name = name; - return this; - } - - @Override - public EntitySet setNavigationPropertyBindings(final List<NavigationPropertyBinding> navigationPropertyBindings) { - this.navigationPropertyBindings = navigationPropertyBindings; - return this; - } - - @Override - public EntitySet setType(final FullQualifiedName entityType) { - type = entityType; - return this; - } - - public boolean isIncludeInServiceDocument() { - return includeInServiceDocument; - } - - public EntitySet setIncludeInServiceDocument(final boolean includeInServiceDocument) { - this.includeInServiceDocument = includeInServiceDocument; - return this; - } -} http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/8a58a678/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/EntitySetPath.java ---------------------------------------------------------------------- diff --git a/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/EntitySetPath.java b/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/EntitySetPath.java deleted file mode 100644 index a487654..0000000 --- a/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/EntitySetPath.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * 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.server.api.edm.provider; - -public class EntitySetPath { - - private String bindingParameter; - - private String path; - - public String getBindingParameter() { - return bindingParameter; - } - - public EntitySetPath setBindingParameter(final String bindingParameter) { - this.bindingParameter = bindingParameter; - return this; - } - - public String getPath() { - return path; - } - - public EntitySetPath setPath(final String path) { - this.path = path; - return this; - } -} http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/8a58a678/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/EntityType.java ---------------------------------------------------------------------- diff --git a/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/EntityType.java b/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/EntityType.java deleted file mode 100644 index 3f3db5b..0000000 --- a/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/EntityType.java +++ /dev/null @@ -1,84 +0,0 @@ -/* - * 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.server.api.edm.provider; - -import org.apache.olingo.commons.api.edm.FullQualifiedName; - -import java.util.List; - -public class EntityType extends StructuredType { - - private List<PropertyRef> key; - - private boolean hasStream; - - public boolean hasStream() { - return hasStream; - } - - public EntityType setHasStream(final boolean hasStream) { - this.hasStream = hasStream; - return this; - } - - public List<PropertyRef> getKey() { - return key; - } - - public EntityType setKey(final List<PropertyRef> key) { - this.key = key; - return this; - } - - @Override - public EntityType setName(final String name) { - this.name = name; - return this; - } - - @Override - public EntityType setOpenType(final boolean isOpenType) { - this.isOpenType = isOpenType; - return this; - } - - @Override - public EntityType setBaseType(final FullQualifiedName baseType) { - this.baseType = baseType; - return this; - } - - @Override - public EntityType setAbstract(final boolean isAbstract) { - this.isAbstract = isAbstract; - return this; - } - - @Override - public EntityType setProperties(final List<Property> properties) { - this.properties = properties; - return this; - } - - @Override - public EntityType setNavigationProperties(final List<NavigationProperty> navigationProperties) { - this.navigationProperties = navigationProperties; - return this; - } -} http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/8a58a678/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/EnumMember.java ---------------------------------------------------------------------- diff --git a/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/EnumMember.java b/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/EnumMember.java deleted file mode 100644 index 6b83ab0..0000000 --- a/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/EnumMember.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * 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.server.api.edm.provider; - -public class EnumMember { - - private String name; - - private String value; - - public String getName() { - return name; - } - - public EnumMember setName(final String name) { - this.name = name; - return this; - } - - public String getValue() { - return value; - } - - public EnumMember setValue(final String value) { - this.value = value; - return this; - } -} http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/8a58a678/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/EnumType.java ---------------------------------------------------------------------- diff --git a/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/EnumType.java b/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/EnumType.java deleted file mode 100644 index ee213e5..0000000 --- a/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/EnumType.java +++ /dev/null @@ -1,73 +0,0 @@ -/* - * 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.server.api.edm.provider; - -import org.apache.olingo.commons.api.edm.FullQualifiedName; - -import java.util.List; - -public class EnumType { - - private String name; - - private boolean isFlags; - - // Underlying Type can only be primitve... - private FullQualifiedName underlyingType; - - private List<EnumMember> members; - - // Facets - // Annotations? - public String getName() { - return name; - } - - public EnumType setName(final String name) { - this.name = name; - return this; - } - - public boolean isFlags() { - return isFlags; - } - - public EnumType setFlags(final boolean isFlags) { - this.isFlags = isFlags; - return this; - } - - public FullQualifiedName getUnderlyingType() { - return underlyingType; - } - - public EnumType setUnderlyingType(final FullQualifiedName underlyingType) { - this.underlyingType = underlyingType; - return this; - } - - public List<EnumMember> getMembers() { - return members; - } - - public EnumType setMembers(final List<EnumMember> members) { - this.members = members; - return this; - } -} http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/8a58a678/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/Expression.java ---------------------------------------------------------------------- diff --git a/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/Expression.java b/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/Expression.java deleted file mode 100644 index 83091ca..0000000 --- a/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/Expression.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * 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.server.api.edm.provider; - -public class Expression { -//TODO: Expression implementation -} http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/8a58a678/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/Function.java ---------------------------------------------------------------------- diff --git a/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/Function.java b/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/Function.java deleted file mode 100644 index 18f24b2..0000000 --- a/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/Function.java +++ /dev/null @@ -1,65 +0,0 @@ -/* - * 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.server.api.edm.provider; - -import java.util.List; - -public class Function extends Operation { - - private boolean isComposable; - - public boolean isComposable() { - return isComposable; - } - - public Function setComposable(final boolean isComposable) { - this.isComposable = isComposable; - return this; - } - - @Override - public Function setName(final String name) { - this.name = name; - return this; - } - - @Override - public Function setBound(final boolean isBound) { - this.isBound = isBound; - return this; - } - - @Override - public Function setEntitySetPath(final EntitySetPath entitySetPath) { - this.entitySetPath = entitySetPath; - return this; - } - - @Override - public Function setParameters(final List<Parameter> parameters) { - this.parameters = parameters; - return this; - } - - @Override - public Function setReturnType(final ReturnType returnType) { - this.returnType = returnType; - return this; - } -} http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/8a58a678/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/FunctionImport.java ---------------------------------------------------------------------- diff --git a/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/FunctionImport.java b/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/FunctionImport.java deleted file mode 100644 index a180d5b..0000000 --- a/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/FunctionImport.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * 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.server.api.edm.provider; - -import org.apache.olingo.commons.api.edm.FullQualifiedName; -import org.apache.olingo.commons.api.edm.Target; - -public class FunctionImport extends OperationImport { - - private FullQualifiedName function; - - private boolean includeInServiceDocument; - - @Override - public String getName() { - return name; - } - - @Override - public FunctionImport setName(final String name) { - this.name = name; - return this; - } - - @Override - public FunctionImport setEntitySet(final Target entitySet) { - this.entitySet = entitySet; - return this; - } - - public FullQualifiedName getFunction() { - return function; - } - - public FunctionImport setFunction(final FullQualifiedName function) { - this.function = function; - return this; - } - - public boolean isIncludeInServiceDocument() { - return includeInServiceDocument; - } - - public FunctionImport setIncludeInServiceDocument(final boolean includeInServiceDocument) { - this.includeInServiceDocument = includeInServiceDocument; - return this; - } -} http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/8a58a678/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/Mapping.java ---------------------------------------------------------------------- diff --git a/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/Mapping.java b/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/Mapping.java deleted file mode 100644 index b6f4830..0000000 --- a/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/Mapping.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * 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.server.api.edm.provider; - -import org.apache.olingo.commons.api.edm.EdmMapping; - -/** - * Content of this class does not appear within the CSDL metadata document. This class is used to perform server - * internal mapping for edm primitive types to java types. - */ -public class Mapping implements EdmMapping { - - private Class<?> mappedJavaClass; - - /** - * Sets the class to be used during deserialization to transform an EDM primitive type into this java class. To see - * which classes work for which primitive type refer to {@link org.apache.olingo.commons.api.edm.EdmPrimitiveType}. - * @param mappedJavaClass class to which is mapped - * @return this for method chaining - */ - public Mapping setMappedJavaClass(Class<?> mappedJavaClass) { - this.mappedJavaClass = mappedJavaClass; - return this; - } - - /* (non-Javadoc) - * @see org.apache.olingo.commons.api.edm.EdmMapping#getMappedJavaClass() - */ - @Override - public Class<?> getMappedJavaClass() { - return mappedJavaClass; - } - -} http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/8a58a678/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/NavigationProperty.java ---------------------------------------------------------------------- diff --git a/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/NavigationProperty.java b/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/NavigationProperty.java deleted file mode 100644 index 73f43ff..0000000 --- a/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/NavigationProperty.java +++ /dev/null @@ -1,118 +0,0 @@ -/* - * 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.server.api.edm.provider; - -import org.apache.olingo.commons.api.edm.FullQualifiedName; -import org.apache.olingo.commons.api.edm.constants.EdmOnDelete; - -import java.util.List; - -public class NavigationProperty { - - private String name; - - private FullQualifiedName type; - - private boolean isCollection; - - private String partner; - - private boolean containsTarget; - - private List<ReferentialConstraint> referentialConstraints; - - // Facets - private Boolean nullable; - - // Refactor this onDelete - private EdmOnDelete onDelete; - -//Annotations? - public String getName() { - return name; - } - - public boolean isCollection() { - return isCollection; - } - - public NavigationProperty setCollection(final boolean isCollection) { - this.isCollection = isCollection; - return this; - } - - public NavigationProperty setName(final String name) { - this.name = name; - return this; - } - - public FullQualifiedName getType() { - return type; - } - - public NavigationProperty setType(final FullQualifiedName type) { - this.type = type; - return this; - } - - public String getPartner() { - return partner; - } - - public NavigationProperty setPartner(final String partner) { - this.partner = partner; - return this; - } - - public boolean isContainsTarget() { - return containsTarget; - } - - public NavigationProperty setContainsTarget(final boolean containsTarget) { - this.containsTarget = containsTarget; - return this; - } - - public List<ReferentialConstraint> getReferentialConstraints() { - return referentialConstraints; - } - - public NavigationProperty setReferentialConstraints(final List<ReferentialConstraint> referentialConstraints) { - this.referentialConstraints = referentialConstraints; - return this; - } - - public Boolean getNullable() { - return nullable; - } - - public NavigationProperty setNullable(final Boolean nullable) { - this.nullable = nullable; - return this; - } - - public EdmOnDelete getOnDelete() { - return onDelete; - } - - public NavigationProperty setOnDelete(final EdmOnDelete onDelete) { - this.onDelete = onDelete; - return this; - } -} http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/8a58a678/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/NavigationPropertyBinding.java ---------------------------------------------------------------------- diff --git a/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/NavigationPropertyBinding.java b/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/NavigationPropertyBinding.java deleted file mode 100644 index c32decc..0000000 --- a/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/NavigationPropertyBinding.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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.server.api.edm.provider; - -import org.apache.olingo.commons.api.edm.Target; - -public class NavigationPropertyBinding { - - private String path; - - private Target target; - - public String getPath() { - return path; - } - - public NavigationPropertyBinding setPath(final String path) { - this.path = path; - return this; - } - - public Target getTarget() { - return target; - } - - public NavigationPropertyBinding setTarget(final Target target) { - this.target = target; - return this; - } -} http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/8a58a678/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/Operation.java ---------------------------------------------------------------------- diff --git a/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/Operation.java b/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/Operation.java deleted file mode 100644 index 0b522d3..0000000 --- a/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/Operation.java +++ /dev/null @@ -1,81 +0,0 @@ -/* - * 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.server.api.edm.provider; - -import java.util.List; - -public abstract class Operation { - - protected String name; - - protected boolean isBound; - - // Do we need EntitySetPath as a class? - protected EntitySetPath entitySetPath; - - protected List<Parameter> parameters; - - protected ReturnType returnType; - - // Annotations? - public String getName() { - return name; - } - - public Operation setName(final String name) { - this.name = name; - return this; - } - - public boolean isBound() { - return isBound; - } - - public Operation setBound(final boolean isBound) { - this.isBound = isBound; - return this; - } - - public EntitySetPath getEntitySetPath() { - return entitySetPath; - } - - public Operation setEntitySetPath(final EntitySetPath entitySetPath) { - this.entitySetPath = entitySetPath; - return this; - } - - public List<Parameter> getParameters() { - return parameters; - } - - public Operation setParameters(final List<Parameter> parameters) { - this.parameters = parameters; - return this; - } - - public ReturnType getReturnType() { - return returnType; - } - - public Operation setReturnType(final ReturnType returnType) { - this.returnType = returnType; - return this; - } -} http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/8a58a678/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/OperationImport.java ---------------------------------------------------------------------- diff --git a/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/OperationImport.java b/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/OperationImport.java deleted file mode 100644 index cabe656..0000000 --- a/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/OperationImport.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * 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.server.api.edm.provider; - -import org.apache.olingo.commons.api.edm.Target; - -public abstract class OperationImport { - - protected String name; - - protected Target entitySet; - - // Annotations? - public String getName() { - return name; - } - - public OperationImport setName(final String name) { - this.name = name; - return this; - } - - public Target getEntitySet() { - return entitySet; - } - - public OperationImport setEntitySet(final Target entitySet) { - this.entitySet = entitySet; - return this; - } -} http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/8a58a678/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/Parameter.java ---------------------------------------------------------------------- diff --git a/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/Parameter.java b/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/Parameter.java deleted file mode 100644 index b9bb6a5..0000000 --- a/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/Parameter.java +++ /dev/null @@ -1,113 +0,0 @@ -/* - * 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.server.api.edm.provider; - -import org.apache.olingo.commons.api.edm.FullQualifiedName; - -public class Parameter { - - private String name; - - private FullQualifiedName type; - - private boolean isCollection; - - private Mapping mapping; - - // Facets? - private Boolean nullable; - - private Integer maxLength; - - private Integer precision; - - private Integer scale; - - public String getName() { - return name; - } - - public Parameter setName(final String name) { - this.name = name; - return this; - } - - public FullQualifiedName getType() { - return type; - } - - public Parameter setType(final FullQualifiedName type) { - this.type = type; - return this; - } - - public boolean isCollection() { - return isCollection; - } - - public Parameter setCollection(final boolean isCollection) { - this.isCollection = isCollection; - return this; - } - - public Boolean getNullable() { - return nullable; - } - - public Parameter setNullable(final Boolean nullable) { - this.nullable = nullable; - return this; - } - - public Integer getMaxLength() { - return maxLength; - } - - public Parameter setMaxLength(final Integer maxLength) { - this.maxLength = maxLength; - return this; - } - - public Integer getPrecision() { - return precision; - } - - public Parameter setPrecision(final Integer precision) { - this.precision = precision; - return this; - } - - public Integer getScale() { - return scale; - } - - public Parameter setScale(final Integer scale) { - this.scale = scale; - return this; - } - - public Mapping getMapping() { - return mapping; - } - - public Parameter setMapping(final Mapping mapping) { - this.mapping = mapping; - return this; - } -} http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/8a58a678/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/Property.java ---------------------------------------------------------------------- diff --git a/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/Property.java b/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/Property.java deleted file mode 100644 index d58cb6a..0000000 --- a/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/Property.java +++ /dev/null @@ -1,148 +0,0 @@ -/* - * 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.server.api.edm.provider; - -import org.apache.olingo.commons.api.edm.FullQualifiedName; - -public class Property { - - private String name; - - // Can be simple or complex - private FullQualifiedName type; - - private boolean collection; - - // TODO: Mimetype and mapping what here - private String mimeType; - - private Mapping mapping; - - // Facets - private String defaultValue; - - private Boolean nullable; - - private Integer maxLength; - - private Integer precision; - - private Integer scale; - - private Boolean unicode; - - public String getName() { - return name; - } - - public Property setName(final String name) { - this.name = name; - return this; - } - - public FullQualifiedName getType() { - return type; - } - - public Property setType(final FullQualifiedName type) { - this.type = type; - return this; - } - - public boolean isCollection() { - return collection; - } - - public Property setCollection(final boolean isCollection) { - collection = isCollection; - return this; - } - - public String getDefaultValue() { - return defaultValue; - } - - public Property setDefaultValue(final String defaultValue) { - this.defaultValue = defaultValue; - return this; - } - - public Boolean getNullable() { - return nullable; - } - - public Property setNullable(final Boolean nullable) { - this.nullable = nullable; - return this; - } - - public Integer getMaxLength() { - return maxLength; - } - - public Property setMaxLength(final Integer maxLength) { - this.maxLength = maxLength; - return this; - } - - public Integer getPrecision() { - return precision; - } - - public Property setPrecision(final Integer precision) { - this.precision = precision; - return this; - } - - public Integer getScale() { - return scale; - } - - public Property setScale(final Integer scale) { - this.scale = scale; - return this; - } - - public Boolean isUnicode() { - return unicode; - } - - public Property setUnicode(final Boolean isUnicode) { - unicode = isUnicode; - return this; - } - - public String getMimeType() { - return mimeType; - } - - public Property setMimeType(final String mimeType) { - this.mimeType = mimeType; - return this; - } - - public Mapping getMapping() { - return mapping; - } - - public Property setMapping(final Mapping mapping) { - this.mapping = mapping; - return this; - } -} http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/8a58a678/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/PropertyRef.java ---------------------------------------------------------------------- diff --git a/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/PropertyRef.java b/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/PropertyRef.java deleted file mode 100644 index 3c98a42..0000000 --- a/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/PropertyRef.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * 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.server.api.edm.provider; - -public class PropertyRef { - - private String name; - - private String alias; - - public String getPropertyName() { - return name; - } - - public PropertyRef setName(final String name) { - this.name = name; - return this; - } - - public String getAlias() { - return alias; - } - - public PropertyRef setAlias(final String alias) { - this.alias = alias; - return this; - } -} http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/8a58a678/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/ReferentialConstraint.java ---------------------------------------------------------------------- diff --git a/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/ReferentialConstraint.java b/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/ReferentialConstraint.java deleted file mode 100644 index bc444fe..0000000 --- a/lib/server-api/src/main/java/org/apache/olingo/server/api/edm/provider/ReferentialConstraint.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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.server.api.edm.provider; - -public class ReferentialConstraint { - - private String property; - - private String referencedProperty; - - // Annotations - public String getProperty() { - return property; - } - - public ReferentialConstraint setProperty(final String property) { - this.property = property; - return this; - } - - public String getReferencedProperty() { - return referencedProperty; - } - - public ReferentialConstraint setReferencedProperty(final String referencedProperty) { - this.referencedProperty = referencedProperty; - return this; - } -}
