Created
June 12, 2019 11:46
-
-
Save stalep/7e0b0323f7d657caa125da0950cecd9c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* File generated by the template based ISKV code generator | |
* | |
* Generated at: 12.03.19 11:56 | |
* Modelelement: partner.business.DynamicContainerKeyModel | |
* Template : framework/generator/designlang/stereotypes/businessmodel/hibernate/hibernateclass.vm | |
* | |
* @formatter:off | |
*/ | |
// Package | |
package partner.business; | |
// Import | |
import framework.base.JNDIConstants; | |
import framework.business.Model; | |
import framework.business.ModelEntity; | |
import framework.business.PersistenceUtil; | |
import framework.business.PersistentEntity; | |
import framework.business.PersistentEntityFactory; | |
import framework.business.workflow.ActivityDefinitionEntity; | |
import framework.business.workflow.ActivityDefinitionModel; | |
import java.io.Serializable; | |
import java.math.BigDecimal; | |
import java.util.Date; | |
import java.util.Iterator; | |
import java.util.LinkedHashSet; | |
import java.util.Set; | |
import javax.persistence.Basic; | |
import javax.persistence.Column; | |
import javax.persistence.Entity; | |
import javax.persistence.FetchType; | |
import javax.persistence.Inheritance; | |
import javax.persistence.InheritanceType; | |
import javax.persistence.JoinColumn; | |
import javax.persistence.ManyToOne; | |
import javax.persistence.OneToMany; | |
import javax.persistence.Table; | |
import org.hibernate.Session; | |
import org.hibernate.SessionFactory; | |
import org.hibernate.annotations.CollectionType; | |
import org.hibernate.annotations.LazyGroup; | |
import org.hibernate.annotations.LazyToOne; | |
import org.hibernate.annotations.LazyToOneOption; | |
import partner.business.aktionssteuerung.aktionelement.AktionElementDynamicContainerEntity; | |
import partner.business.autoaktion.AktionEntity; | |
import partner.business.autoaktion.EreignisEntity; | |
import partner.business.zusatzregister.DynamicContainerKeyDefaultValueHistorieEntity; | |
import partner.business.zusatzregister.DynamicContainerTabValEntity; | |
/** | |
* Generated Hibernate Entity Class for businessmodel DynamicContainerKeyModel. | |
* <p> | |
* For framework use only! | |
*/ | |
@Entity(name="partner.business.DynamicContainerKeyEntity") | |
@Inheritance(strategy = InheritanceType.TABLE_PER_CLASS) | |
@Table(name="PP_DCKey") | |
public abstract class DynamicContainerKeyEntity extends ModelEntity | |
implements Serializable | |
{ | |
@SuppressWarnings("unused") | |
private static final String version = "Subversion Revision: $Revision$"; | |
public static Class META_INFO_CLASS = DynamicContainerKeyModelMetaInfo.class; | |
private static final String SESSION_FACTORY_NAME = JNDIConstants.SESSION_FACTORY_PATH + "ProduktivDB" + JNDIConstants.FACTORY_SUFFIX; | |
public static SessionFactory getSessionFactory() { | |
return PersistenceUtil.getSessionFactoryByName(SESSION_FACTORY_NAME); | |
} | |
public String getSessionFactoryName() { | |
return SESSION_FACTORY_NAME; | |
} | |
public Session getSession() { | |
return getSessionFactory().getCurrentSession(); | |
} | |
public static final class DynamicContainerKeyEntityFactory implements PersistentEntityFactory { | |
public PersistentEntity create(Model pModel) { | |
return null; | |
} | |
public PersistentEntity findByPrimaryKey(Long pPrimaryKey) { | |
Session lSession = PersistenceUtil.getSessionByName(SESSION_FACTORY_NAME); | |
DynamicContainerKeyEntity lDynamicContainerKeyEntity = null; | |
lDynamicContainerKeyEntity = (DynamicContainerKeyEntity) lSession.get(DynamicContainerKeyEntity.class, pPrimaryKey); | |
return lDynamicContainerKeyEntity; | |
} | |
} | |
private static final DynamicContainerKeyEntityFactory mFactory = new DynamicContainerKeyEntityFactory(); | |
public static PersistentEntityFactory getFactory() { | |
return mFactory; | |
} | |
@Basic | |
@Column(name="Widget") | |
String WidgetIntern = null; | |
@Basic | |
@Column(name="Key") | |
String Key = null; | |
@Basic | |
@Column(name="Name") | |
String Name = null; | |
@Basic | |
@Column(name="Order") | |
Integer Order = null; | |
@Basic | |
@Column(name="Hidden") | |
Boolean Hidden = null; | |
@Basic | |
@Column(name="DefaultValue") | |
String DefaultValue = null; | |
@Basic | |
@Column(name="DefaultValueGeaendert") | |
Boolean DefaultValueGeaendert = null; | |
@Basic | |
@Column(name="DefaultValueFreigabe") | |
Boolean DefaultValueFreigabe = null; | |
@Basic | |
@Column(name="DefValAendAm") | |
Date DefaultValueAenderungVerarbeitetAm = null; | |
@Basic | |
@Column(name="Codetable") | |
String Codetable = null; | |
@Basic | |
@Column(name="Fachattribut") | |
String Fachattribut = null; | |
@Basic | |
@Column(name="Recht") | |
String Recht = null; | |
@Basic | |
@Column(name="Bemerkung") | |
String Bemerkung = null; | |
@Basic | |
@Column(name="Command") | |
String Command = null; | |
@Basic | |
@Column(name="Editable") | |
Boolean Editable = null; | |
@Basic | |
@Column(name="System") | |
Boolean System = null; | |
@Basic | |
@Column(name="Precision") | |
Integer Precision = null; | |
@Basic | |
@Column(name="MinValue") | |
BigDecimal MinValue = null; | |
@Basic | |
@Column(name="MaxValue") | |
BigDecimal MaxValue = null; | |
@Basic | |
@Column(name="InputWidth") | |
Integer InputWidth = null; | |
@Basic | |
@Column(name="Rolle") | |
Short RolleEingeschraenkt = null; | |
@Basic | |
@Column(name="PartnerArt") | |
Short PartnerArtEingeschraenkt = null; | |
@Basic | |
@Column(name="BehoerdenTyp") | |
Short BehoerdenTypEingeschraenkt = null; | |
@Basic | |
@Column(name="Breite") | |
Integer Breite = null; | |
@Basic | |
@Column(name="Hoehe") | |
Integer Hoehe = null; | |
@Basic | |
@Column(name="KontaktInhaltFachlich") | |
Short KontaktInhaltFachlich = null; | |
@Basic | |
@Column(name="KontaktRichtung") | |
Short KontaktRichtung = null; | |
@Basic | |
@Column(name="KontaktWeg") | |
Short KontaktWeg = null; | |
@Basic | |
@Column(name="KontaktAenderbar") | |
Boolean KontaktAenderbar = null; | |
@Basic | |
@Column(name="Info") | |
String Info = null; | |
@Basic | |
@Column(name="Pflichtfeld") | |
Boolean Pflichtfeld = null; | |
@Basic | |
@Column(name="Infofenster") | |
Boolean AnzeigeInfofenster = null; | |
@Basic | |
@Column(name="Suchbar") | |
Boolean Suchbar = null; | |
@Basic | |
@Column(name="BlaetterSperren") | |
Boolean BlaetterSperren = null; | |
@Basic | |
@Column(name="MaxAnzahlBlaetter") | |
Integer MaxAnzahlBlaetter = null; | |
@Basic | |
@Column(name="Dummy") | |
Boolean Dummy = null; | |
@Basic | |
@Column(name="VorbelegtKopie") | |
Boolean VorbelegtInKopie = null; | |
@Basic | |
@Column(name="VorbelegtFolge") | |
Boolean VorbelegtInFolgeimpuls = null; | |
@Basic | |
@Column(name="Geloescht") | |
Boolean Geloescht = null; | |
@OneToMany(targetEntity=DynamicContainerComboBoxValueEntity.class, mappedBy="Key", fetch=FetchType.LAZY) | |
@LazyToOne(LazyToOneOption.NO_PROXY) | |
@LazyGroup("ComboBoxValues") | |
@CollectionType(type="baseutil.technology.hibernate.IskvLinkedSetCollectionType") | |
protected Set ComboBoxValues = null; | |
@OneToMany(targetEntity=DynamicContainerValueEntity.class, mappedBy="Key", fetch=FetchType.LAZY) | |
@LazyToOne(LazyToOneOption.NO_PROXY) | |
@LazyGroup("Value") | |
@CollectionType(type="baseutil.technology.hibernate.IskvLinkedSetCollectionType") | |
protected Set Value = null; | |
@OneToMany(targetEntity=DynamicContainerKeyRolleEntity.class, mappedBy="Key", fetch=FetchType.LAZY) | |
@LazyToOne(LazyToOneOption.NO_PROXY) | |
@LazyGroup("Rolle") | |
@CollectionType(type="baseutil.technology.hibernate.IskvLinkedSetCollectionType") | |
protected Set Rolle = null; | |
@ManyToOne(fetch=FetchType.LAZY) | |
@LazyToOne(LazyToOneOption.NO_PROXY) | |
@LazyGroup("Stichwort") | |
@JoinColumn(name="Stichwort_Stichwort_Id") | |
protected StichwortEntity Stichwort = null; | |
@ManyToOne(fetch=FetchType.LAZY) | |
@LazyToOne(LazyToOneOption.NO_PROXY) | |
@LazyGroup("AufgabenDef") | |
@JoinColumn(name="AufgabenDef_ActivityDef_Id") | |
protected ActivityDefinitionEntity AufgabenDef = null; | |
@OneToMany(targetEntity=EreignisEntity.class, mappedBy="DCKey", fetch=FetchType.LAZY) | |
@LazyToOne(LazyToOneOption.NO_PROXY) | |
@LazyGroup("Ereignisse") | |
@CollectionType(type="baseutil.technology.hibernate.IskvLinkedSetCollectionType") | |
protected Set Ereignisse = null; | |
@OneToMany(targetEntity=AktionEntity.class, mappedBy="DCKey", fetch=FetchType.LAZY) | |
@LazyToOne(LazyToOneOption.NO_PROXY) | |
@LazyGroup("Aktionen") | |
@CollectionType(type="baseutil.technology.hibernate.IskvLinkedSetCollectionType") | |
protected Set Aktionen = null; | |
@OneToMany(targetEntity=DynamicContainerTabValEntity.class, mappedBy="TabKey", fetch=FetchType.LAZY) | |
@LazyToOne(LazyToOneOption.NO_PROXY) | |
@LazyGroup("TabVal") | |
@CollectionType(type="baseutil.technology.hibernate.IskvLinkedSetCollectionType") | |
protected Set TabVal = null; | |
@OneToMany(targetEntity=DynamicContainerKeyDefaultValueHistorieEntity.class, mappedBy="DCKey", fetch=FetchType.LAZY) | |
@LazyToOne(LazyToOneOption.NO_PROXY) | |
@LazyGroup("DCDefValHist") | |
@CollectionType(type="baseutil.technology.hibernate.IskvLinkedSetCollectionType") | |
protected Set DCDefValHist = null; | |
@OneToMany(targetEntity=DynamicContainerKeyViewOrderEntity.class, mappedBy="DCKey", fetch=FetchType.LAZY) | |
@LazyToOne(LazyToOneOption.NO_PROXY) | |
@LazyGroup("DCKeyOrder") | |
@CollectionType(type="baseutil.technology.hibernate.IskvLinkedSetCollectionType") | |
protected Set DCKeyOrder = null; | |
@OneToMany(targetEntity=AktionElementDynamicContainerEntity.class, mappedBy="Key", fetch=FetchType.LAZY) | |
@LazyToOne(LazyToOneOption.NO_PROXY) | |
@LazyGroup("AktionElementDynamicContainer") | |
@CollectionType(type="baseutil.technology.hibernate.IskvLinkedSetCollectionType") | |
protected Set AktionElementDynamicContainer = null; | |
@ManyToOne(fetch=FetchType.LAZY) | |
@LazyToOne(LazyToOneOption.NO_PROXY) | |
@LazyGroup("ParentRegister") | |
@JoinColumn(name="Register_DCKey_Id") | |
protected DynamicContainerKeyEntity ParentRegister = null; | |
@OneToMany(targetEntity=DynamicContainerKeyEntity.class, mappedBy="ParentRegister", fetch=FetchType.LAZY) | |
@LazyToOne(LazyToOneOption.NO_PROXY) | |
@LazyGroup("RegisterKeys") | |
@CollectionType(type="baseutil.technology.hibernate.IskvLinkedSetCollectionType") | |
protected Set RegisterKeys = null; | |
@ManyToOne(fetch=FetchType.LAZY) | |
@LazyToOne(LazyToOneOption.NO_PROXY) | |
@LazyGroup("ParentPanel") | |
@JoinColumn(name="Panel_DCKey_Id") | |
protected DynamicContainerKeyEntity ParentPanel = null; | |
@OneToMany(targetEntity=DynamicContainerKeyEntity.class, mappedBy="ParentPanel", fetch=FetchType.LAZY) | |
@LazyToOne(LazyToOneOption.NO_PROXY) | |
@LazyGroup("PanelKeys") | |
@CollectionType(type="baseutil.technology.hibernate.IskvLinkedSetCollectionType") | |
protected Set PanelKeys = null; | |
public String getWidgetIntern() { | |
return WidgetIntern; | |
} | |
public void setWidgetIntern(String pWidgetIntern) { | |
WidgetIntern = pWidgetIntern; | |
} | |
public String getKey() { | |
return Key; | |
} | |
public void setKey(String pKey) { | |
Key = pKey; | |
} | |
public String getName() { | |
return Name; | |
} | |
public void setName(String pName) { | |
Name = pName; | |
} | |
public Integer getOrder() { | |
return Order; | |
} | |
public void setOrder(Integer pOrder) { | |
Order = pOrder; | |
} | |
public Boolean getHidden() { | |
return Hidden; | |
} | |
public void setHidden(Boolean pHidden) { | |
Hidden = pHidden; | |
} | |
public String getDefaultValue() { | |
return DefaultValue; | |
} | |
public void setDefaultValue(String pDefaultValue) { | |
DefaultValue = pDefaultValue; | |
} | |
public Boolean getDefaultValueGeaendert() { | |
return DefaultValueGeaendert; | |
} | |
public void setDefaultValueGeaendert(Boolean pDefaultValueGeaendert) { | |
DefaultValueGeaendert = pDefaultValueGeaendert; | |
} | |
public Boolean getDefaultValueFreigabe() { | |
return DefaultValueFreigabe; | |
} | |
public void setDefaultValueFreigabe(Boolean pDefaultValueFreigabe) { | |
DefaultValueFreigabe = pDefaultValueFreigabe; | |
} | |
public Date getDefaultValueAenderungVerarbeitetAm() { | |
return DefaultValueAenderungVerarbeitetAm; | |
} | |
public void setDefaultValueAenderungVerarbeitetAm(Date pDefaultValueAenderungVerarbeitetAm) { | |
DefaultValueAenderungVerarbeitetAm = pDefaultValueAenderungVerarbeitetAm; | |
} | |
public String getCodetable() { | |
return Codetable; | |
} | |
public void setCodetable(String pCodetable) { | |
Codetable = pCodetable; | |
} | |
public String getFachattribut() { | |
return Fachattribut; | |
} | |
public void setFachattribut(String pFachattribut) { | |
Fachattribut = pFachattribut; | |
} | |
public String getRecht() { | |
return Recht; | |
} | |
public void setRecht(String pRecht) { | |
Recht = pRecht; | |
} | |
public String getBemerkung() { | |
return Bemerkung; | |
} | |
public void setBemerkung(String pBemerkung) { | |
Bemerkung = pBemerkung; | |
} | |
public String getCommand() { | |
return Command; | |
} | |
public void setCommand(String pCommand) { | |
Command = pCommand; | |
} | |
public Boolean getEditable() { | |
return Editable; | |
} | |
public void setEditable(Boolean pEditable) { | |
Editable = pEditable; | |
} | |
public Boolean getSystem() { | |
return System; | |
} | |
public void setSystem(Boolean pSystem) { | |
System = pSystem; | |
} | |
public Integer getPrecision() { | |
return Precision; | |
} | |
public void setPrecision(Integer pPrecision) { | |
Precision = pPrecision; | |
} | |
public BigDecimal getMinValue() { | |
return MinValue; | |
} | |
public void setMinValue(BigDecimal pMinValue) { | |
MinValue = pMinValue; | |
} | |
public BigDecimal getMaxValue() { | |
return MaxValue; | |
} | |
public void setMaxValue(BigDecimal pMaxValue) { | |
MaxValue = pMaxValue; | |
} | |
public Integer getInputWidth() { | |
return InputWidth; | |
} | |
public void setInputWidth(Integer pInputWidth) { | |
InputWidth = pInputWidth; | |
} | |
public Short getRolleEingeschraenkt() { | |
return RolleEingeschraenkt; | |
} | |
public void setRolleEingeschraenkt(Short pRolleEingeschraenkt) { | |
RolleEingeschraenkt = pRolleEingeschraenkt; | |
} | |
public Short getPartnerArtEingeschraenkt() { | |
return PartnerArtEingeschraenkt; | |
} | |
public void setPartnerArtEingeschraenkt(Short pPartnerArtEingeschraenkt) { | |
PartnerArtEingeschraenkt = pPartnerArtEingeschraenkt; | |
} | |
public Short getBehoerdenTypEingeschraenkt() { | |
return BehoerdenTypEingeschraenkt; | |
} | |
public void setBehoerdenTypEingeschraenkt(Short pBehoerdenTypEingeschraenkt) { | |
BehoerdenTypEingeschraenkt = pBehoerdenTypEingeschraenkt; | |
} | |
public Integer getBreite() { | |
return Breite; | |
} | |
public void setBreite(Integer pBreite) { | |
Breite = pBreite; | |
} | |
public Integer getHoehe() { | |
return Hoehe; | |
} | |
public void setHoehe(Integer pHoehe) { | |
Hoehe = pHoehe; | |
} | |
public Short getKontaktInhaltFachlich() { | |
return KontaktInhaltFachlich; | |
} | |
public void setKontaktInhaltFachlich(Short pKontaktInhaltFachlich) { | |
KontaktInhaltFachlich = pKontaktInhaltFachlich; | |
} | |
public Short getKontaktRichtung() { | |
return KontaktRichtung; | |
} | |
public void setKontaktRichtung(Short pKontaktRichtung) { | |
KontaktRichtung = pKontaktRichtung; | |
} | |
public Short getKontaktWeg() { | |
return KontaktWeg; | |
} | |
public void setKontaktWeg(Short pKontaktWeg) { | |
KontaktWeg = pKontaktWeg; | |
} | |
public Boolean getKontaktAenderbar() { | |
return KontaktAenderbar; | |
} | |
public void setKontaktAenderbar(Boolean pKontaktAenderbar) { | |
KontaktAenderbar = pKontaktAenderbar; | |
} | |
public String getInfo() { | |
return Info; | |
} | |
public void setInfo(String pInfo) { | |
Info = pInfo; | |
} | |
public Boolean getPflichtfeld() { | |
return Pflichtfeld; | |
} | |
public void setPflichtfeld(Boolean pPflichtfeld) { | |
Pflichtfeld = pPflichtfeld; | |
} | |
public Boolean getAnzeigeInfofenster() { | |
return AnzeigeInfofenster; | |
} | |
public void setAnzeigeInfofenster(Boolean pAnzeigeInfofenster) { | |
AnzeigeInfofenster = pAnzeigeInfofenster; | |
} | |
public Boolean getSuchbar() { | |
return Suchbar; | |
} | |
public void setSuchbar(Boolean pSuchbar) { | |
Suchbar = pSuchbar; | |
} | |
public Boolean getBlaetterSperren() { | |
return BlaetterSperren; | |
} | |
public void setBlaetterSperren(Boolean pBlaetterSperren) { | |
BlaetterSperren = pBlaetterSperren; | |
} | |
public Integer getMaxAnzahlBlaetter() { | |
return MaxAnzahlBlaetter; | |
} | |
public void setMaxAnzahlBlaetter(Integer pMaxAnzahlBlaetter) { | |
MaxAnzahlBlaetter = pMaxAnzahlBlaetter; | |
} | |
public Boolean getDummy() { | |
return Dummy; | |
} | |
public void setDummy(Boolean pDummy) { | |
Dummy = pDummy; | |
} | |
public Boolean getVorbelegtInKopie() { | |
return VorbelegtInKopie; | |
} | |
public void setVorbelegtInKopie(Boolean pVorbelegtInKopie) { | |
VorbelegtInKopie = pVorbelegtInKopie; | |
} | |
public Boolean getVorbelegtInFolgeimpuls() { | |
return VorbelegtInFolgeimpuls; | |
} | |
public void setVorbelegtInFolgeimpuls(Boolean pVorbelegtInFolgeimpuls) { | |
VorbelegtInFolgeimpuls = pVorbelegtInFolgeimpuls; | |
} | |
public Boolean getGeloescht() { | |
return Geloescht; | |
} | |
public void setGeloescht(Boolean pGeloescht) { | |
Geloescht = pGeloescht; | |
} | |
public Set getComboBoxValues() { | |
if ( ComboBoxValues==null ) { | |
ComboBoxValues = new LinkedHashSet(); | |
} | |
return ComboBoxValues; | |
} | |
public void setComboBoxValues(Set pComboBoxValues) { | |
// Assure referential integrity | |
clearComboBoxValues(); | |
for (Iterator iter = pComboBoxValues.iterator();iter.hasNext();) { | |
DynamicContainerComboBoxValueEntity lDynamicContainerComboBoxValueEntity = (DynamicContainerComboBoxValueEntity) iter.next(); | |
lDynamicContainerComboBoxValueEntity.setKey(this); | |
} | |
ComboBoxValues = pComboBoxValues; | |
} | |
public void addComboBoxValues(DynamicContainerComboBoxValueEntity pComboBoxValues) { | |
if ( ComboBoxValues==null ) { | |
ComboBoxValues = new LinkedHashSet(); | |
} | |
pComboBoxValues.setKey(this); | |
ComboBoxValues.add(pComboBoxValues); | |
} | |
public void clearComboBoxValues() { | |
if (ComboBoxValues!=null) { | |
// Assure referential integrity | |
for (Iterator iter = ComboBoxValues.iterator();iter.hasNext();) { | |
DynamicContainerComboBoxValueEntity lDynamicContainerComboBoxValueEntity = (DynamicContainerComboBoxValueEntity) iter.next(); | |
lDynamicContainerComboBoxValueEntity.setKey(null); | |
} | |
ComboBoxValues.clear(); | |
} | |
} | |
public Set getValue() { | |
if ( Value==null ) { | |
Value = new LinkedHashSet(); | |
} | |
return Value; | |
} | |
public void setValue(Set pValue) { | |
Value = pValue; | |
} | |
public void addValue(DynamicContainerValueEntity pValue) { | |
if ( Value==null ) { | |
Value = new LinkedHashSet(); | |
} | |
Value.add(pValue); | |
} | |
public void clearValue() { | |
if (Value!=null) { | |
Value.clear(); | |
} | |
} | |
public Set getRolle() { | |
if ( Rolle==null ) { | |
Rolle = new LinkedHashSet(); | |
} | |
return Rolle; | |
} | |
public void setRolle(Set pRolle) { | |
Rolle = pRolle; | |
} | |
public void addRolle(DynamicContainerKeyRolleEntity pRolle) { | |
if ( Rolle==null ) { | |
Rolle = new LinkedHashSet(); | |
} | |
Rolle.add(pRolle); | |
} | |
public void clearRolle() { | |
if (Rolle!=null) { | |
Rolle.clear(); | |
} | |
} | |
public StichwortEntity getStichwort() { | |
return Stichwort; | |
} | |
public void setStichwort(StichwortEntity pStichwort) { | |
if (Stichwort != pStichwort) { | |
Stichwort = pStichwort; | |
} | |
} | |
public ActivityDefinitionEntity getAufgabenDef() { | |
return AufgabenDef; | |
} | |
public void setAufgabenDef(ActivityDefinitionEntity pAufgabenDef) { | |
if (AufgabenDef != pAufgabenDef) { | |
AufgabenDef = pAufgabenDef; | |
} | |
} | |
public Set getEreignisse() { | |
if ( Ereignisse==null ) { | |
Ereignisse = new LinkedHashSet(); | |
} | |
return Ereignisse; | |
} | |
public void setEreignisse(Set pEreignisse) { | |
Ereignisse = pEreignisse; | |
} | |
public void addEreignisse(EreignisEntity pEreignisse) { | |
if ( Ereignisse==null ) { | |
Ereignisse = new LinkedHashSet(); | |
} | |
Ereignisse.add(pEreignisse); | |
} | |
public void clearEreignisse() { | |
if (Ereignisse!=null) { | |
Ereignisse.clear(); | |
} | |
} | |
public Set getAktionen() { | |
if ( Aktionen==null ) { | |
Aktionen = new LinkedHashSet(); | |
} | |
return Aktionen; | |
} | |
public void setAktionen(Set pAktionen) { | |
Aktionen = pAktionen; | |
} | |
public void addAktionen(AktionEntity pAktionen) { | |
if ( Aktionen==null ) { | |
Aktionen = new LinkedHashSet(); | |
} | |
Aktionen.add(pAktionen); | |
} | |
public void clearAktionen() { | |
if (Aktionen!=null) { | |
Aktionen.clear(); | |
} | |
} | |
public Set getTabVal() { | |
if ( TabVal==null ) { | |
TabVal = new LinkedHashSet(); | |
} | |
return TabVal; | |
} | |
public void setTabVal(Set pTabVal) { | |
TabVal = pTabVal; | |
} | |
public void addTabVal(DynamicContainerTabValEntity pTabVal) { | |
if ( TabVal==null ) { | |
TabVal = new LinkedHashSet(); | |
} | |
TabVal.add(pTabVal); | |
} | |
public void clearTabVal() { | |
if (TabVal!=null) { | |
TabVal.clear(); | |
} | |
} | |
public Set getDCDefValHist() { | |
if ( DCDefValHist==null ) { | |
DCDefValHist = new LinkedHashSet(); | |
} | |
return DCDefValHist; | |
} | |
public void setDCDefValHist(Set pDCDefValHist) { | |
// Assure referential integrity | |
clearDCDefValHist(); | |
for (Iterator iter = pDCDefValHist.iterator();iter.hasNext();) { | |
DynamicContainerKeyDefaultValueHistorieEntity lDynamicContainerKeyDefaultValueHistorieEntity = (DynamicContainerKeyDefaultValueHistorieEntity) iter.next(); | |
lDynamicContainerKeyDefaultValueHistorieEntity.setDCKey(this); | |
} | |
DCDefValHist = pDCDefValHist; | |
} | |
public void addDCDefValHist(DynamicContainerKeyDefaultValueHistorieEntity pDCDefValHist) { | |
if ( DCDefValHist==null ) { | |
DCDefValHist = new LinkedHashSet(); | |
} | |
pDCDefValHist.setDCKey(this); | |
DCDefValHist.add(pDCDefValHist); | |
} | |
public void clearDCDefValHist() { | |
if (DCDefValHist!=null) { | |
// Assure referential integrity | |
for (Iterator iter = DCDefValHist.iterator();iter.hasNext();) { | |
DynamicContainerKeyDefaultValueHistorieEntity lDynamicContainerKeyDefaultValueHistorieEntity = (DynamicContainerKeyDefaultValueHistorieEntity) iter.next(); | |
lDynamicContainerKeyDefaultValueHistorieEntity.setDCKey(null); | |
} | |
DCDefValHist.clear(); | |
} | |
} | |
public Set getDCKeyOrder() { | |
if ( DCKeyOrder==null ) { | |
DCKeyOrder = new LinkedHashSet(); | |
} | |
return DCKeyOrder; | |
} | |
public void setDCKeyOrder(Set pDCKeyOrder) { | |
DCKeyOrder = pDCKeyOrder; | |
} | |
public void addDCKeyOrder(DynamicContainerKeyViewOrderEntity pDCKeyOrder) { | |
if ( DCKeyOrder==null ) { | |
DCKeyOrder = new LinkedHashSet(); | |
} | |
DCKeyOrder.add(pDCKeyOrder); | |
} | |
public void clearDCKeyOrder() { | |
if (DCKeyOrder!=null) { | |
DCKeyOrder.clear(); | |
} | |
} | |
public Set getAktionElementDynamicContainer() { | |
if ( AktionElementDynamicContainer==null ) { | |
AktionElementDynamicContainer = new LinkedHashSet(); | |
} | |
return AktionElementDynamicContainer; | |
} | |
public void setAktionElementDynamicContainer(Set pAktionElementDynamicContainer) { | |
AktionElementDynamicContainer = pAktionElementDynamicContainer; | |
} | |
public void addAktionElementDynamicContainer(AktionElementDynamicContainerEntity pAktionElementDynamicContainer) { | |
if ( AktionElementDynamicContainer==null ) { | |
AktionElementDynamicContainer = new LinkedHashSet(); | |
} | |
AktionElementDynamicContainer.add(pAktionElementDynamicContainer); | |
} | |
public void clearAktionElementDynamicContainer() { | |
if (AktionElementDynamicContainer!=null) { | |
AktionElementDynamicContainer.clear(); | |
} | |
} | |
public DynamicContainerKeyEntity getParentRegister() { | |
return ParentRegister; | |
} | |
public void setParentRegister(DynamicContainerKeyEntity pParentRegister) { | |
if (ParentRegister != pParentRegister) { | |
ParentRegister = pParentRegister; | |
} | |
} | |
public Set getRegisterKeys() { | |
if ( RegisterKeys==null ) { | |
RegisterKeys = new LinkedHashSet(); | |
} | |
return RegisterKeys; | |
} | |
public void setRegisterKeys(Set pRegisterKeys) { | |
RegisterKeys = pRegisterKeys; | |
} | |
public void addRegisterKeys(DynamicContainerKeyEntity pRegisterKeys) { | |
if ( RegisterKeys==null ) { | |
RegisterKeys = new LinkedHashSet(); | |
} | |
RegisterKeys.add(pRegisterKeys); | |
} | |
public void clearRegisterKeys() { | |
if (RegisterKeys!=null) { | |
RegisterKeys.clear(); | |
} | |
} | |
public DynamicContainerKeyEntity getParentPanel() { | |
return ParentPanel; | |
} | |
public void setParentPanel(DynamicContainerKeyEntity pParentPanel) { | |
if (ParentPanel != pParentPanel) { | |
ParentPanel = pParentPanel; | |
} | |
} | |
public Set getPanelKeys() { | |
if ( PanelKeys==null ) { | |
PanelKeys = new LinkedHashSet(); | |
} | |
return PanelKeys; | |
} | |
public void setPanelKeys(Set pPanelKeys) { | |
PanelKeys = pPanelKeys; | |
} | |
public void addPanelKeys(DynamicContainerKeyEntity pPanelKeys) { | |
if ( PanelKeys==null ) { | |
PanelKeys = new LinkedHashSet(); | |
} | |
PanelKeys.add(pPanelKeys); | |
} | |
public void clearPanelKeys() { | |
if (PanelKeys!=null) { | |
PanelKeys.clear(); | |
} | |
} | |
public void fillModel(Model pModel) { | |
DynamicContainerKeyModel lModel = (DynamicContainerKeyModel) pModel; | |
lModel._internal_setWidgetIntern(getWidgetIntern()); | |
lModel._internal_setKey(getKey()); | |
lModel._internal_setName(getName()); | |
lModel._internal_setOrder(getOrder()); | |
lModel._internal_setHidden(getHidden()); | |
lModel._internal_setDefaultValue(getDefaultValue()); | |
lModel._internal_setDefaultValueGeaendert(getDefaultValueGeaendert()); | |
lModel._internal_setDefaultValueFreigabe(getDefaultValueFreigabe()); | |
lModel._internal_setDefaultValueAenderungVerarbeitetAm(getDefaultValueAenderungVerarbeitetAm()); | |
lModel._internal_setCodetable(getCodetable()); | |
lModel._internal_setFachattribut(getFachattribut()); | |
lModel._internal_setRecht(getRecht()); | |
lModel._internal_setBemerkung(getBemerkung()); | |
lModel._internal_setCommand(getCommand()); | |
lModel._internal_setEditable(getEditable()); | |
lModel._internal_setSystem(getSystem()); | |
lModel._internal_setPrecision(getPrecision()); | |
lModel._internal_setMinValue(getMinValue()); | |
lModel._internal_setMaxValue(getMaxValue()); | |
lModel._internal_setInputWidth(getInputWidth()); | |
lModel._internal_setRolleEingeschraenkt(getRolleEingeschraenkt()); | |
lModel._internal_setPartnerArtEingeschraenkt(getPartnerArtEingeschraenkt()); | |
lModel._internal_setBehoerdenTypEingeschraenkt(getBehoerdenTypEingeschraenkt()); | |
lModel._internal_setBreite(getBreite()); | |
lModel._internal_setHoehe(getHoehe()); | |
lModel._internal_setKontaktInhaltFachlich(getKontaktInhaltFachlich()); | |
lModel._internal_setKontaktRichtung(getKontaktRichtung()); | |
lModel._internal_setKontaktWeg(getKontaktWeg()); | |
lModel._internal_setKontaktAenderbar(getKontaktAenderbar()); | |
lModel._internal_setInfo(getInfo()); | |
lModel._internal_setPflichtfeld(getPflichtfeld()); | |
lModel._internal_setAnzeigeInfofenster(getAnzeigeInfofenster()); | |
lModel._internal_setSuchbar(getSuchbar()); | |
lModel._internal_setBlaetterSperren(getBlaetterSperren()); | |
lModel._internal_setMaxAnzahlBlaetter(getMaxAnzahlBlaetter()); | |
lModel._internal_setDummy(getDummy()); | |
lModel._internal_setVorbelegtInKopie(getVorbelegtInKopie()); | |
lModel._internal_setVorbelegtInFolgeimpuls(getVorbelegtInFolgeimpuls()); | |
lModel._internal_setGeloescht(getGeloescht()); | |
super.fillModel(pModel); | |
} | |
/** | |
* Stores the state of this object into the database.<br> | |
* Only to be called from the Context's endBTRX() method. | |
*/ | |
public void save(Model pModel) { | |
DynamicContainerKeyModel lModel = (DynamicContainerKeyModel) pModel; | |
if (lModel.isWidgetInternChanged()) { | |
setWidgetIntern(lModel._internal_getWidgetIntern()); | |
} | |
if (lModel.isKeyChanged()) { | |
setKey(lModel._internal_getKey()); | |
} | |
if (lModel.isNameChanged()) { | |
setName(lModel._internal_getName()); | |
} | |
if (lModel.isOrderChanged()) { | |
setOrder(lModel._internal_getOrder()); | |
} | |
if (lModel.isHiddenChanged()) { | |
setHidden(lModel._internal_getHidden()); | |
} | |
if (lModel.isDefaultValueChanged()) { | |
setDefaultValue(lModel._internal_getDefaultValue()); | |
} | |
if (lModel.isDefaultValueGeaendertChanged()) { | |
setDefaultValueGeaendert(lModel._internal_getDefaultValueGeaendert()); | |
} | |
if (lModel.isDefaultValueFreigabeChanged()) { | |
setDefaultValueFreigabe(lModel._internal_getDefaultValueFreigabe()); | |
} | |
if (lModel.isDefaultValueAenderungVerarbeitetAmChanged()) { | |
setDefaultValueAenderungVerarbeitetAm(lModel._internal_getDefaultValueAenderungVerarbeitetAm()); | |
} | |
if (lModel.isCodetableChanged()) { | |
setCodetable(lModel._internal_getCodetable()); | |
} | |
if (lModel.isFachattributChanged()) { | |
setFachattribut(lModel._internal_getFachattribut()); | |
} | |
if (lModel.isRechtChanged()) { | |
setRecht(lModel._internal_getRecht()); | |
} | |
if (lModel.isBemerkungChanged()) { | |
setBemerkung(lModel._internal_getBemerkung()); | |
} | |
if (lModel.isCommandChanged()) { | |
setCommand(lModel._internal_getCommand()); | |
} | |
if (lModel.isEditableChanged()) { | |
setEditable(lModel._internal_getEditable()); | |
} | |
if (lModel.isSystemChanged()) { | |
setSystem(lModel._internal_getSystem()); | |
} | |
if (lModel.isPrecisionChanged()) { | |
setPrecision(lModel._internal_getPrecision()); | |
} | |
if (lModel.isMinValueChanged()) { | |
setMinValue(lModel._internal_getMinValue()); | |
} | |
if (lModel.isMaxValueChanged()) { | |
setMaxValue(lModel._internal_getMaxValue()); | |
} | |
if (lModel.isInputWidthChanged()) { | |
setInputWidth(lModel._internal_getInputWidth()); | |
} | |
if (lModel.isRolleEingeschraenktChanged()) { | |
setRolleEingeschraenkt(lModel._internal_getRolleEingeschraenkt()); | |
} | |
if (lModel.isPartnerArtEingeschraenktChanged()) { | |
setPartnerArtEingeschraenkt(lModel._internal_getPartnerArtEingeschraenkt()); | |
} | |
if (lModel.isBehoerdenTypEingeschraenktChanged()) { | |
setBehoerdenTypEingeschraenkt(lModel._internal_getBehoerdenTypEingeschraenkt()); | |
} | |
if (lModel.isBreiteChanged()) { | |
setBreite(lModel._internal_getBreite()); | |
} | |
if (lModel.isHoeheChanged()) { | |
setHoehe(lModel._internal_getHoehe()); | |
} | |
if (lModel.isKontaktInhaltFachlichChanged()) { | |
setKontaktInhaltFachlich(lModel._internal_getKontaktInhaltFachlich()); | |
} | |
if (lModel.isKontaktRichtungChanged()) { | |
setKontaktRichtung(lModel._internal_getKontaktRichtung()); | |
} | |
if (lModel.isKontaktWegChanged()) { | |
setKontaktWeg(lModel._internal_getKontaktWeg()); | |
} | |
if (lModel.isKontaktAenderbarChanged()) { | |
setKontaktAenderbar(lModel._internal_getKontaktAenderbar()); | |
} | |
if (lModel.isInfoChanged()) { | |
setInfo(lModel._internal_getInfo()); | |
} | |
if (lModel.isPflichtfeldChanged()) { | |
setPflichtfeld(lModel._internal_getPflichtfeld()); | |
} | |
if (lModel.isAnzeigeInfofensterChanged()) { | |
setAnzeigeInfofenster(lModel._internal_getAnzeigeInfofenster()); | |
} | |
if (lModel.isSuchbarChanged()) { | |
setSuchbar(lModel._internal_getSuchbar()); | |
} | |
if (lModel.isBlaetterSperrenChanged()) { | |
setBlaetterSperren(lModel._internal_getBlaetterSperren()); | |
} | |
if (lModel.isMaxAnzahlBlaetterChanged()) { | |
setMaxAnzahlBlaetter(lModel._internal_getMaxAnzahlBlaetter()); | |
} | |
if (lModel.isDummyChanged()) { | |
setDummy(lModel._internal_getDummy()); | |
} | |
if (lModel.isVorbelegtInKopieChanged()) { | |
setVorbelegtInKopie(lModel._internal_getVorbelegtInKopie()); | |
} | |
if (lModel.isVorbelegtInFolgeimpulsChanged()) { | |
setVorbelegtInFolgeimpuls(lModel._internal_getVorbelegtInFolgeimpuls()); | |
} | |
if (lModel.isGeloeschtChanged()) { | |
setGeloescht(lModel._internal_getGeloescht()); | |
} | |
super.save(lModel); | |
} | |
/** | |
* Stores all relations of this object into the database.<br> | |
* Only to be called from the Context's endBTRX() method. | |
*/ | |
public void saveRelations(Model pModel) { | |
DynamicContainerKeyModel lModel = (DynamicContainerKeyModel) pModel; | |
if (lModel.getComboBoxValuesLink().getChanged()) { | |
if (lModel.getComboBoxValuesLink().getIsLoaded()) { | |
clearComboBoxValues(); | |
} | |
final Iterator lIterator = lModel.getComboBoxValuesLink().iterator(); | |
while (lIterator.hasNext()) { | |
final Model lObject = (Model) lIterator.next(); | |
addComboBoxValues((DynamicContainerComboBoxValueEntity) lObject.getEntity()); | |
} | |
} | |
if (lModel.getRolleLink().getChanged()) { | |
if (lModel.getRolleLink().getIsLoaded()) { | |
clearRolle(); | |
} | |
final Iterator lIterator = lModel.getRolleLink().iterator(); | |
while (lIterator.hasNext()) { | |
final Model lObject = (Model) lIterator.next(); | |
addRolle((DynamicContainerKeyRolleEntity) lObject.getEntity()); | |
} | |
} | |
if (lModel.getStichwortLink().getChanged()) { | |
StichwortEntity lStichwort = lModel.getStichwort() != null ? | |
(StichwortEntity) ((Model)lModel.getStichwort()).getEntity() : null; | |
setStichwort(lStichwort); | |
} | |
if (lModel.getAufgabenDefLink().getChanged()) { | |
ActivityDefinitionEntity lAufgabenDef = lModel.getAufgabenDef() != null ? | |
(ActivityDefinitionEntity) ((Model)lModel.getAufgabenDef()).getEntity() : null; | |
setAufgabenDef(lAufgabenDef); | |
} | |
if (lModel.getEreignisseLink().getChanged()) { | |
if (lModel.getEreignisseLink().getIsLoaded()) { | |
clearEreignisse(); | |
} | |
final Iterator lIterator = lModel.getEreignisseLink().iterator(); | |
while (lIterator.hasNext()) { | |
final Model lObject = (Model) lIterator.next(); | |
addEreignisse((EreignisEntity) lObject.getEntity()); | |
} | |
} | |
if (lModel.getAktionenLink().getChanged()) { | |
if (lModel.getAktionenLink().getIsLoaded()) { | |
clearAktionen(); | |
} | |
final Iterator lIterator = lModel.getAktionenLink().iterator(); | |
while (lIterator.hasNext()) { | |
final Model lObject = (Model) lIterator.next(); | |
addAktionen((AktionEntity) lObject.getEntity()); | |
} | |
} | |
if (lModel.getDCDefValHistLink().getChanged()) { | |
if (lModel.getDCDefValHistLink().getIsLoaded()) { | |
clearDCDefValHist(); | |
} | |
final Iterator lIterator = lModel.getDCDefValHistLink().iterator(); | |
while (lIterator.hasNext()) { | |
final Model lObject = (Model) lIterator.next(); | |
addDCDefValHist((DynamicContainerKeyDefaultValueHistorieEntity) lObject.getEntity()); | |
} | |
} | |
if (lModel.getDCKeyOrderLink().getChanged()) { | |
if (lModel.getDCKeyOrderLink().getIsLoaded()) { | |
clearDCKeyOrder(); | |
} | |
final Iterator lIterator = lModel.getDCKeyOrderLink().iterator(); | |
while (lIterator.hasNext()) { | |
final Model lObject = (Model) lIterator.next(); | |
addDCKeyOrder((DynamicContainerKeyViewOrderEntity) lObject.getEntity()); | |
} | |
} | |
if (lModel.getParentRegisterLink().getChanged()) { | |
DynamicContainerKeyEntity lParentRegister = lModel.getParentRegister() != null ? | |
(DynamicContainerKeyEntity) ((Model)lModel.getParentRegister()).getEntity() : null; | |
setParentRegister(lParentRegister); | |
} | |
if (lModel.getRegisterKeysLink().getChanged()) { | |
if (lModel.getRegisterKeysLink().getIsLoaded()) { | |
clearRegisterKeys(); | |
} | |
final Iterator lIterator = lModel.getRegisterKeysLink().iterator(); | |
while (lIterator.hasNext()) { | |
final Model lObject = (Model) lIterator.next(); | |
addRegisterKeys((DynamicContainerKeyEntity) lObject.getEntity()); | |
} | |
} | |
if (lModel.getParentPanelLink().getChanged()) { | |
DynamicContainerKeyEntity lParentPanel = lModel.getParentPanel() != null ? | |
(DynamicContainerKeyEntity) ((Model)lModel.getParentPanel()).getEntity() : null; | |
setParentPanel(lParentPanel); | |
} | |
if (lModel.getPanelKeysLink().getChanged()) { | |
if (lModel.getPanelKeysLink().getIsLoaded()) { | |
clearPanelKeys(); | |
} | |
final Iterator lIterator = lModel.getPanelKeysLink().iterator(); | |
while (lIterator.hasNext()) { | |
final Model lObject = (Model) lIterator.next(); | |
addPanelKeys((DynamicContainerKeyEntity) lObject.getEntity()); | |
} | |
} | |
} | |
/** | |
* Deletes the entity from the database. | |
* <p> | |
* In addition the entity is removed from all relationships which are not handled by referential | |
* integrity code of the model class. | |
* This are all relations which are not navigable from the model object. | |
*/ | |
public void remove() { | |
if (ComboBoxValues!=null) { | |
for (Iterator iter = ComboBoxValues.iterator();iter.hasNext();) { | |
DynamicContainerComboBoxValueEntity lDynamicContainerComboBoxValueEntity = (DynamicContainerComboBoxValueEntity) iter.next(); | |
lDynamicContainerComboBoxValueEntity.setKey(null); | |
} | |
} | |
// Could not activate database referential integrity ensurances because of foreign key location | |
if (Value!=null) { | |
for (Iterator iter = Value.iterator();iter.hasNext();) { | |
DynamicContainerValueEntity lDynamicContainerValueEntity = (DynamicContainerValueEntity) iter.next(); | |
lDynamicContainerValueEntity.setKey(null); | |
} | |
} | |
// Could not activate database referential integrity ensurances because of foreign key location | |
if (TabVal!=null) { | |
for (Iterator iter = TabVal.iterator();iter.hasNext();) { | |
DynamicContainerTabValEntity lDynamicContainerTabValEntity = (DynamicContainerTabValEntity) iter.next(); | |
lDynamicContainerTabValEntity.setTabKey(null); | |
} | |
} | |
// Could not activate database referential integrity ensurances because of foreign key location | |
if (DCDefValHist!=null) { | |
for (Iterator iter = DCDefValHist.iterator();iter.hasNext();) { | |
DynamicContainerKeyDefaultValueHistorieEntity lDynamicContainerKeyDefaultValueHistorieEntity = (DynamicContainerKeyDefaultValueHistorieEntity) iter.next(); | |
lDynamicContainerKeyDefaultValueHistorieEntity.setDCKey(null); | |
} | |
} | |
// Could not activate database referential integrity ensurances because of foreign key location | |
if (AktionElementDynamicContainer!=null) { | |
for (Iterator iter = AktionElementDynamicContainer.iterator();iter.hasNext();) { | |
AktionElementDynamicContainerEntity lAktionElementDynamicContainerEntity = (AktionElementDynamicContainerEntity) iter.next(); | |
lAktionElementDynamicContainerEntity.setKey(null); | |
} | |
} | |
super.remove(); | |
} | |
/** | |
* The class name that is used in model reference. | |
* @return the classname of the highest businessmodel in this models class hierarchie | |
*/ | |
public String getModelReferenceDiscriminator() { | |
return "partner.business.DynamicContainerKeyModel"; | |
} | |
// This ensures that necessary initializations take place when hibernate mapping is created | |
static { | |
new DynamicContainerKeyModelMetaInfo().init(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment