Package org.apache.openejb.jee.jpa
Class CascadeType
- java.lang.Object
-
- org.apache.openejb.jee.jpa.CascadeType
-
public class CascadeType extends Object
public enum CascadeType { ALL, PERSIST, MERGE, REMOVE, REFRESH, DETACH};Java class for cascade-type complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="cascade-type"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="cascade-all" type="{http://java.sun.com/xml/ns/persistence/orm}emptyType" minOccurs="0"/> <element name="cascade-persist" type="{http://java.sun.com/xml/ns/persistence/orm}emptyType" minOccurs="0"/> <element name="cascade-merge" type="{http://java.sun.com/xml/ns/persistence/orm}emptyType" minOccurs="0"/> <element name="cascade-remove" type="{http://java.sun.com/xml/ns/persistence/orm}emptyType" minOccurs="0"/> <element name="cascade-refresh" type="{http://java.sun.com/xml/ns/persistence/orm}emptyType" minOccurs="0"/> <element name="cascade-detach" type="{http://java.sun.com/xml/ns/persistence/orm}emptyType" minOccurs="0"/> </sequence> </restriction> </complexContent> </complexType>
-
-
Field Summary
Fields Modifier and Type Field Description protected EmptyTypecascadeAllprotected EmptyTypecascadeDetachprotected EmptyTypecascadeMergeprotected EmptyTypecascadePersistprotected EmptyTypecascadeRefreshprotected EmptyTypecascadeRemove
-
Constructor Summary
Constructors Constructor Description CascadeType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisCascadeAll()Gets the value of the cascadeAll property.booleanisCascadeDetach()Gets the value of the cascadeDetach property.booleanisCascadeMerge()Gets the value of the cascadeMerge property.booleanisCascadePersist()Gets the value of the cascadePersist property.booleanisCascadeRefresh()Gets the value of the cascadeRefresh property.booleanisCascadeRemove()Gets the value of the cascadeRemove property.voidsetCascadeAll(boolean value)Sets the value of the cascadeAll property.voidsetCascadeDetach(boolean value)Sets the value of the cascadeDetach property.voidsetCascadeMerge(boolean value)Sets the value of the cascadeMerge property.voidsetCascadePersist(boolean value)Sets the value of the cascadePersist property.voidsetCascadeRefresh(boolean value)Sets the value of the cascadeRefresh property.voidsetCascadeRemove(boolean value)Sets the value of the cascadeRemove property.
-
-
-
Method Detail
-
isCascadeAll
public boolean isCascadeAll()
Gets the value of the cascadeAll property.- Returns:
- possible object is
boolean
-
setCascadeAll
public void setCascadeAll(boolean value)
Sets the value of the cascadeAll property.- Parameters:
value- allowed object isboolean
-
isCascadePersist
public boolean isCascadePersist()
Gets the value of the cascadePersist property.- Returns:
- possible object is
boolean
-
setCascadePersist
public void setCascadePersist(boolean value)
Sets the value of the cascadePersist property.- Parameters:
value- allowed object isboolean
-
isCascadeMerge
public boolean isCascadeMerge()
Gets the value of the cascadeMerge property.- Returns:
- possible object is
boolean
-
setCascadeMerge
public void setCascadeMerge(boolean value)
Sets the value of the cascadeMerge property.- Parameters:
value- allowed object isboolean
-
isCascadeRemove
public boolean isCascadeRemove()
Gets the value of the cascadeRemove property.- Returns:
- possible object is
boolean
-
setCascadeRemove
public void setCascadeRemove(boolean value)
Sets the value of the cascadeRemove property.- Parameters:
value- allowed object isboolean
-
isCascadeRefresh
public boolean isCascadeRefresh()
Gets the value of the cascadeRefresh property.- Returns:
- possible object is
boolean
-
setCascadeRefresh
public void setCascadeRefresh(boolean value)
Sets the value of the cascadeRefresh property.- Parameters:
value- allowed object isboolean
-
isCascadeDetach
public boolean isCascadeDetach()
Gets the value of the cascadeDetach property.- Returns:
- possible object is
boolean
-
setCascadeDetach
public void setCascadeDetach(boolean value)
Sets the value of the cascadeDetach property.- Parameters:
value- allowed object isboolean
-
-