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

com.anaptecs.spring.base.MasterDataObject Maven / Gradle / Ivy

The newest version!

/*
 * anaptecs GmbH, Ricarda-Huch-Str. 71, 72760 Reutlingen, Germany
 * 
 * Copyright 2004 - 2019. All rights reserved.
 */
package com.anaptecs.spring.base;

public class MasterDataObject extends MasterDataObjectBase {
  /**
   * Default serial version UID.
   */
  private static final long serialVersionUID = 1L;

  /**
   * Default constructor is only intended to be used for deserialization by tools like Jackson for JSON. For "normal"
   * object creation builder should be used instead.
   */
  protected MasterDataObject( ) {
  }

  /**
   * Initialize object. Nothing special to do.
   */
  protected MasterDataObject( MasterDataObject.BuilderBase pBuilder ) {
    super(pBuilder);
  }

  /**
   * Method returns a new builder.
   * 
   * @return {@link Builder} New builder that can be used to create new MasterDataObject objects.
   */
  public static Builder builder( ) {
    return new Builder();
  }

  /**
   * Method creates a new builder and initializes it with the passed attributes.
   */
  public static Builder builder( com.anaptecs.spring.base.Entity pEntity, java.lang.String pObjectID,
      String pInternalProperty ) {
    Builder lBuilder = builder();
    lBuilder.setEntity(pEntity);
    lBuilder.setObjectID(pObjectID);
    lBuilder.setInternalProperty(pInternalProperty);
    return lBuilder;
  }

  /**
   * Class implements builder to create a new instance of class MasterDataObject. As the class has readonly attributes
   * or associations instances can not be created directly. Instead this builder class has to be used.
   */
  public static class Builder extends MasterDataObject.BuilderBase {
    /**
     * Use {@link MasterDataObject#builder()} instead of protected constructor to create new builder.
     */
    protected Builder( ) {
    }

    /**
     * Use {@link MasterDataObject#builder(MasterDataObject)} instead of protected constructor to create new builder.
     */
    protected Builder( MasterDataObject pObject ) {
      super(pObject);
    }
  }

  /**
   * Method returns attribute {@link #derivedProperty}.
* * @return {@link String} Value to which {@link #derivedProperty} is set. */ public String getDerivedProperty( ) { // TODO Implement method for derived property "derivedProperty". return null; } /** * Method returns association {@link #derivedDataUnits}.
* * @return {@link java.util.List} Value to which {@link #derivedDataUnits} is set. * The method never returns null and the returned collection is unmodifiable. */ public java.util.List getDerivedDataUnits( ) { // TODO Implement method for derived property "derivedDataUnits". return null; } /** * Method returns association {@link #derivedEntity}.
* * @return {@link com.anaptecs.spring.base.Entity} Value to which {@link #derivedEntity} is set. */ public com.anaptecs.spring.base.Entity getDerivedEntity( ) { // TODO Implement method for derived property "derivedEntity". return null; } /** * Method returns attribute {@link #derivedArray}.
* * @return int[] Value to which {@link #derivedArray} is set. */ public int[] getDerivedArray( ) { // TODO Implement method for derived property "derivedArray". return null; } /** * Method returns attribute {@link #derivedBoolean}.
* * @return boolean Value to which {@link #derivedBoolean} is set. */ public boolean getDerivedBoolean( ) { // TODO Implement method for derived property "derivedBoolean". return false; } /** * Method returns attribute {@link #derivedInt}.
* * @return int Value to which {@link #derivedInt} is set. */ public int getDerivedInt( ) { // TODO Implement method for derived property "derivedInt". return 0; } /** * Method returns attribute {@link #derivedString}.
* * @return {@link String} Value to which {@link #derivedString} is set. */ public String getDerivedString( ) { // TODO Implement method for derived property "derivedString". return null; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy