All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.mmm.entity.property.id.PropertyFactoryPk Maven / Gradle / Ivy

/* Copyright (c) The m-m-m Team, Licensed under the Apache License, Version 2.0
 * http://www.apache.org/licenses/LICENSE-2.0 */
package io.github.mmm.entity.property.id;

import io.github.mmm.entity.id.Id;
import io.github.mmm.property.PropertyMetadata;
import io.github.mmm.property.ReadableProperty;
import io.github.mmm.property.WritableProperty;
import io.github.mmm.property.factory.AbstractPropertyFactory;
import io.github.mmm.property.factory.PropertyFactory;
import io.github.mmm.property.factory.PropertyTypeInfo;

/**
 * This is the implementation of {@link PropertyFactory} for {@link PkProperty}.
 *
 * @since 1.0.0
 */
@SuppressWarnings({ "rawtypes", "unchecked" })
public class PropertyFactoryPk extends AbstractPropertyFactory, PkProperty> {

  @Override
  public Class> getValueClass() {

    return null;
  }

  @Override
  public Class>> getReadableInterface() {

    return (Class) ReadableProperty.class;
  }

  @Override
  public Class>> getWritableInterface() {

    return (Class) WritableProperty.class;
  }

  @Override
  public Class getImplementationClass() {

    return PkProperty.class;
  }

  @Override
  public PkProperty create(String name, PropertyTypeInfo> typeInfo, PropertyMetadata> metadata) {

    return new PkProperty(name, null, metadata);
  }

  @Override
  public boolean isPolymorphic() {

    return false;
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy