org.company.thesandbox.domain
Class ProductImplBase

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

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

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 ProductImplBase()
          Default no-argument constructor for ProductImplBase
  ProductImplBase(java.lang.String productNumnber, int price)
          Minimal constructor for ProductImplBase
 
Method Summary
 void activateValidation(boolean value)
          Activate/deactivate validation for this business class.
 void addToRecord(Record element)
          Implements the setter of association end
 java.lang.Long getId()
           
 int getPrice()
           
 java.lang.String getProductNumnber()
           
 java.util.Set<Record> getRecord()
           
 void removeFromRecord(Record element)
           
 void setPrice(int price)
           
 void setProductNumnber(java.lang.String productNumnber)
           
 void z_internalAddToRecord(Record element)
          Should NOT be used by clients! Implements the correct setting of the link for + owner : Customer when a single element is added to it.
 void z_internalRemoveFromRecord(Record element)
          Should NOT be used by clients! Implements the correct setting of the link for + owner : Customer when a single element is removed to it.
 
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

ProductImplBase

protected ProductImplBase()
Default no-argument constructor for ProductImplBase


ProductImplBase

public ProductImplBase(java.lang.String productNumnber,
                       int price)
Minimal constructor for ProductImplBase

Parameters:
productNumnber - (string)
price - (integer)
Method Detail

getId

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

getRecord

public java.util.Set<Record> getRecord()

addToRecord

public void addToRecord(Record element)
Implements the setter of association end

Parameters:
element -

removeFromRecord

public void removeFromRecord(Record element)

z_internalAddToRecord

public void z_internalAddToRecord(Record element)
Should NOT be used by clients! Implements the correct setting of the link for + owner : Customer when a single element is added to it.

Parameters:
element -

z_internalRemoveFromRecord

public void z_internalRemoveFromRecord(Record element)
Should NOT be used by clients! Implements the correct setting of the link for + owner : Customer when a single element is removed to it.

Parameters:
element -

getProductNumnber

public java.lang.String getProductNumnber()
Returns:
productNumnber (String)

getPrice

public int getPrice()
Returns:
price (int)

setProductNumnber

public void setProductNumnber(java.lang.String productNumnber)
Parameters:
productNumnber - (String)

setPrice

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

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.