Class BidirectA
- java.lang.Object
-
- com.anaptecs.jeaf.junit.openapi.base.BidirectA
-
- All Implemented Interfaces:
com.anaptecs.jeaf.core.api.ServiceObject,java.io.Serializable
@Valid public class BidirectA extends java.lang.Object implements com.anaptecs.jeaf.core.api.ServiceObject- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBidirectA.BuilderClass implements builder to create a new instance of classBidirectA.
-
Constructor Summary
Constructors Modifier Constructor Description protectedBidirectA()Default constructor is only intended to be used for deserialization by tools like Jackson for JSON.protectedBidirectA(BidirectA.Builder pBuilder)Initialize object using the passed builder.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddToTransientBs(BidirectB pTransientBs)Method adds the passed object totransientBs.voidaddToTransientBs(java.util.Collection<BidirectB> pTransientBs)Method adds all passed objects totransientBs.static BidirectA.Builderbuilder()Method returns a new builder.static BidirectA.Builderbuilder(BidirectA pObject)Method creates a new builder and initialize it with the data from the passed object.static BidirectA.Builderbuilder(BidirectA pParent, BidirectA pTransientChild)Method creates a new builder and initializes it with the passed attributes.voidclearTransientBs()Method removes all objects fromtransientBs.BidirectAgetParent()Method returns associationparent.java.util.Set<BidirectB>getTransientBs()Method returns associationtransientBs.BidirectAgetTransientChild()Method returns associationtransientChild.voidremoveFromTransientBs(BidirectB pTransientBs)Method removes the passed object fromtransientBs.voidsetParent(BidirectA pParent)Method sets associationparent.voidsetTransientChild(BidirectA pTransientChild)Method sets associationtransientChild.java.lang.StringtoString()Method creates a new String with the values of all attributes of this class.java.lang.StringBuildertoStringBuilder(java.lang.String pIndent)Method returns a StringBuilder that can be used to create a String representation of this object.voidunsetParent()Method unsetsparent.voidunsetTransientChild()Method unsetstransientChild.
-
-
-
Constructor Detail
-
BidirectA
protected BidirectA()
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.
-
BidirectA
protected BidirectA(BidirectA.Builder pBuilder)
Initialize object using the passed builder.- Parameters:
pBuilder- Builder that should be used to initialize this object. The parameter must not be null.
-
-
Method Detail
-
builder
public static BidirectA.Builder builder()
Method returns a new builder.- Returns:
BidirectA.BuilderNew builder that can be used to create new BidirectA objects.
-
builder
public static BidirectA.Builder builder(BidirectA pObject)
Method creates a new builder and initialize it with the data from the passed object.- Parameters:
pObject- Object that should be used to initialize the builder. The parameter may be null.- Returns:
BidirectA.BuilderNew builder that can be used to create new BidirectA objects. The method never returns null.
-
builder
public static BidirectA.Builder builder(BidirectA pParent, BidirectA pTransientChild)
Method creates a new builder and initializes it with the passed attributes.
-
getTransientBs
public java.util.Set<BidirectB> getTransientBs()
Method returns associationtransientBs.- Returns:
SetValue to whichtransientBsis set. The method never returns null and the returned collection is modifiable.
-
addToTransientBs
public void addToTransientBs(BidirectB pTransientBs)
Method adds the passed object totransientBs.- Parameters:
pTransientBs- Object that should be added totransientBs. The parameter must not be null.
-
addToTransientBs
public void addToTransientBs(java.util.Collection<BidirectB> pTransientBs)
Method adds all passed objects totransientBs.- Parameters:
pTransientBs- Collection with all objects that should be added totransientBs. The parameter must not be null.
-
removeFromTransientBs
public void removeFromTransientBs(BidirectB pTransientBs)
Method removes the passed object fromtransientBs.- Parameters:
pTransientBs- Object that should be removed fromtransientBs. The parameter must not be null.
-
clearTransientBs
public void clearTransientBs()
Method removes all objects fromtransientBs.
-
setParent
public void setParent(BidirectA pParent)
Method sets associationparent.- Parameters:
pParent- Value to whichparentshould be set.
-
unsetParent
public final void unsetParent()
Method unsetsparent.
-
getTransientChild
public BidirectA getTransientChild()
Method returns associationtransientChild.- Returns:
BidirectAValue to whichtransientChildis set.
-
setTransientChild
public void setTransientChild(BidirectA pTransientChild)
Method sets associationtransientChild.- Parameters:
pTransientChild- Value to whichtransientChildshould be set.
-
unsetTransientChild
public final void unsetTransientChild()
Method unsetstransientChild.
-
toStringBuilder
public java.lang.StringBuilder toStringBuilder(java.lang.String pIndent)
Method returns a StringBuilder that can be used to create a String representation of this object. The returned StringBuilder also takes care about attributes of super classes.- Returns:
StringBuilderStringBuilder representing this object. The method never returns null.
-
toString
public java.lang.String toString()
Method creates a new String with the values of all attributes of this class. All references to other objects will be ignored.- Overrides:
toStringin classjava.lang.Object- Returns:
StringString representation of this object. The method never returns null.
-
-