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

com.rapleaf.jack.DefaultAssociationMetadata Maven / Gradle / Ivy

There is a newer version: 1.8
Show newest version
package com.rapleaf.jack;

public class DefaultAssociationMetadata implements IAssociationMetadata {


  private final AssociationType type;
  private final Class model;
  private final Class associatedModel;
  private final String keyFieldName;

  public DefaultAssociationMetadata(AssociationType type, Class model, Class associatedModel, String keyFieldName) {
    this.type = type;
    this.model = model;
    this.associatedModel = associatedModel;
    this.keyFieldName = keyFieldName;
  }

  @Override
  public AssociationType getType() {
    return this.type;
  }

  @Override
  public Class getModelClass() {
    return this.model;
  }

  @Override
  public Class getAssociatedModelClass() {
    return this.associatedModel;
  }

  @Override
  public String getForeignKeyFieldName() {
    return this.keyFieldName;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy