org.company.thesandbox.domain
Class RecordImplBase

java.lang.Object
  extended by org.company.thesandbox.domain.RecordImplBase
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
Record

public abstract class RecordImplBase
extends java.lang.Object
implements java.io.Serializable

A Record is a representation of a physical medium containing one or more musical compositions.

Author:
Generated by Mod4j BusinessDomain DSL
See Also:
Serialized Form

Field Summary
protected  org.mod4j.runtime.validation.BusinessRuleValidationSupport validation
          validation : Responsible for validating attribute constraints and businessrules for this business class.
 
Constructor Summary
protected RecordImplBase()
          Default no-argument constructor for RecordImplBase.
  RecordImplBase(java.lang.String asin2, float price2)
          Minimal constructor for RecordImplBase.
 
Method Summary
 void activateValidation(boolean value)
          Activate/deactivate validation for this business class.
 void addToContributors(Artist element)
          Implements adding single element to a collection.
 java.lang.String getAsin()
           
 java.util.Set<Artist> getContributors()
           
 java.lang.Long getId()
           
 int getMediumCode()
           
 OrderLine getOrderLine()
           
 float getPrice()
           
 Product getProduct()
           
 java.lang.String getTitle()
           
 RecordType getType()
           
 void removeFromContributors(Artist element)
          Implements removing a single element from a collection.
 void setAsin(java.lang.String asin)
           
 void setMediumCode(int mediumCode)
           
 void setOrderLine(OrderLine element)
          Implements adding single element to a collection.
 void setPrice(float price)
           
 void setProduct(Product element)
          Implements adding single element to a collection
 void setTitle(java.lang.String title)
           
 void setType(RecordType type)
           
 void z_internalRemoveorderLine(OrderLine element)
          This operation should NOT be used by clients.
 void z_internalRemoveProduct(Product element)
          This operation should NOT be used by clients.
 void z_internalSetProduct(Product element)
          This operation should NOT be used by clients.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

validation

protected org.mod4j.runtime.validation.BusinessRuleValidationSupport validation
validation : Responsible for validating attribute constraints and businessrules for this business class.

Constructor Detail

RecordImplBase

protected RecordImplBase()
Default no-argument constructor for RecordImplBase.


RecordImplBase

public RecordImplBase(java.lang.String asin2,
                      float price2)
Minimal constructor for RecordImplBase.

Parameters:
asin2 - (string)
price2 - (decimal)
Method Detail

getId

public java.lang.Long getId()
Returns:
id (Long) The identifier of this object.

getProduct

public Product getProduct()
Returns:
product (Set)

setProduct

public void setProduct(Product element)
Implements adding single element to a collection


z_internalSetProduct

public void z_internalSetProduct(Product element)
This operation should NOT be used by clients. It implements the correct addition of an element in an association.

Parameters:
element -

z_internalRemoveProduct

public void z_internalRemoveProduct(Product element)
This operation should NOT be used by clients. It implements the correct removal of an element in an association.

Parameters:
element -

getContributors

public java.util.Set<Artist> getContributors()
Returns:
contributors (Set).

addToContributors

public void addToContributors(Artist element)
Implements adding single element to a collection.


removeFromContributors

public void removeFromContributors(Artist element)
Implements removing a single element from a collection.


getOrderLine

public OrderLine getOrderLine()
Returns:
orderLine (Set)

setOrderLine

public void setOrderLine(OrderLine element)
Implements adding single element to a collection.


z_internalRemoveorderLine

public void z_internalRemoveorderLine(OrderLine element)
This operation should NOT be used by clients. It implements the correct removal of an element in an association.

Parameters:
element - Element

getAsin

public java.lang.String getAsin()
Returns:
asin (String)

getTitle

public java.lang.String getTitle()
Returns:
title (String)

getMediumCode

public int getMediumCode()
Returns:
mediumCode (int)

getPrice

public float getPrice()
Returns:
price (float)

getType

public RecordType getType()
Returns:
type (RecordType)

setAsin

public void setAsin(java.lang.String asin)
Parameters:
asin - (String)

setTitle

public void setTitle(java.lang.String title)
Parameters:
title - (String)

setMediumCode

public void setMediumCode(int mediumCode)
Parameters:
mediumCode - (int)

setPrice

public void setPrice(float price)
Parameters:
price - (float)

setType

public void setType(RecordType type)
Parameters:
type - (RecordType)

activateValidation

public void activateValidation(boolean value)
Activate/deactivate validation for this business class. When set to active the validation will immediately be executed.

Parameters:
value - (boolean)


Copyright © 2010. All Rights Reserved.