/** * personium.io * Copyright 2014 FUJITSU LIMITED * * Licensed 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 com.fujitsu.dc.core.model.impl.es.odata; import java.io.Serializable; /** * PropertyおよびComplexTypePropertyのAlias管理クラス. */ public class PropertyAlias implements Serializable { private static final long serialVersionUID = 1L; /** * EntityTYpe名. * EntityTypeまたはComplexType */ private String entityTypeName; /** * Edmx上のProperty名/ComplexTypeProperty名. */ private String propertyName; /** * Property/ComplexTypePropertyが紐付いているEntityType名. */ private String propertyType; /** * Property/ComplexTypePropertyのデータ格納時に設定されるAlias名. */ private String alias; /** * コンストラクタ. * @param entityTypeName EntityTYpe名 * @param propertyName Edmx上のProperty名/ComplexTypeProperty名 * @param propertyType Property/ComplexTypePropertyが紐付いているプロパティの型(e.g. Edm.String, complexXXX) * @param alias Property/ComplexTypePropertyのデータ格納時に設定されるAlias名 */ public PropertyAlias( String entityTypeName, String propertyName, String propertyType, String alias) { this.entityTypeName = entityTypeName; this.propertyName = propertyName; this.propertyType = propertyType; this.alias = alias; } /** * @return the type */ public String getEntityTypeName() { return entityTypeName; } /** * @return the propertyName */ public String getPropertyName() { return propertyName; } /** * @return the entityName */ public String getPropertyType() { return propertyType; } /** * @return the alias */ public String getAlias() { return alias; } }