001// --------------------------------------------------------------------------------
002// Copyright 2002-2025 Echo Three, LLC
003//
004// Licensed under the Apache License, Version 2.0 (the "License");
005// you may not use this file except in compliance with the License.
006// You may obtain a copy of the License at
007//
008//     http://www.apache.org/licenses/LICENSE-2.0
009//
010// Unless required by applicable law or agreed to in writing, software
011// distributed under the License is distributed on an "AS IS" BASIS,
012// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013// See the License for the specific language governing permissions and
014// limitations under the License.
015// --------------------------------------------------------------------------------
016// Generated File -- DO NOT EDIT BY HAND
017// --------------------------------------------------------------------------------
018
019/**
020 * Vendor.java
021 */
022
023package com.echothree.model.data.vendor.server.entity;
024
025import com.echothree.model.data.vendor.common.pk.VendorPK;
026
027import com.echothree.model.data.party.common.pk.PartyPK;
028import com.echothree.model.data.vendor.common.pk.VendorTypePK;
029import com.echothree.model.data.item.common.pk.ItemAliasTypePK;
030import com.echothree.model.data.cancellationpolicy.common.pk.CancellationPolicyPK;
031import com.echothree.model.data.returnpolicy.common.pk.ReturnPolicyPK;
032import com.echothree.model.data.accounting.common.pk.GlAccountPK;
033import com.echothree.model.data.selector.common.pk.SelectorPK;
034import com.echothree.model.data.filter.common.pk.FilterPK;
035
036import com.echothree.model.data.party.server.entity.Party;
037import com.echothree.model.data.vendor.server.entity.VendorType;
038import com.echothree.model.data.item.server.entity.ItemAliasType;
039import com.echothree.model.data.cancellationpolicy.server.entity.CancellationPolicy;
040import com.echothree.model.data.returnpolicy.server.entity.ReturnPolicy;
041import com.echothree.model.data.accounting.server.entity.GlAccount;
042import com.echothree.model.data.selector.server.entity.Selector;
043import com.echothree.model.data.filter.server.entity.Filter;
044
045import com.echothree.model.data.party.server.factory.PartyFactory;
046import com.echothree.model.data.vendor.server.factory.VendorTypeFactory;
047import com.echothree.model.data.item.server.factory.ItemAliasTypeFactory;
048import com.echothree.model.data.cancellationpolicy.server.factory.CancellationPolicyFactory;
049import com.echothree.model.data.returnpolicy.server.factory.ReturnPolicyFactory;
050import com.echothree.model.data.accounting.server.factory.GlAccountFactory;
051import com.echothree.model.data.selector.server.factory.SelectorFactory;
052import com.echothree.model.data.filter.server.factory.FilterFactory;
053
054import com.echothree.model.data.vendor.common.pk.VendorPK;
055
056import com.echothree.model.data.vendor.server.value.VendorValue;
057
058import com.echothree.model.data.vendor.server.factory.VendorFactory;
059
060import com.echothree.util.common.exception.PersistenceException;
061import com.echothree.util.common.exception.PersistenceDatabaseException;
062import com.echothree.util.common.exception.PersistenceNotNullException;
063import com.echothree.util.common.exception.PersistenceReadOnlyException;
064
065import com.echothree.util.common.persistence.BasePK;
066
067import com.echothree.util.common.persistence.type.ByteArray;
068
069import com.echothree.util.server.persistence.BaseEntity;
070import com.echothree.util.server.persistence.EntityPermission;
071import com.echothree.util.server.persistence.Session;
072import com.echothree.util.server.persistence.ThreadSession;
073
074import java.io.Serializable;
075
076public class Vendor
077        extends BaseEntity
078        implements Serializable {
079    
080    private VendorPK _pk;
081    private VendorValue _value;
082    
083    /** Creates a new instance of Vendor */
084    public Vendor()
085            throws PersistenceException {
086        super();
087    }
088    
089    /** Creates a new instance of Vendor */
090    public Vendor(VendorValue value, EntityPermission entityPermission) {
091        super(entityPermission);
092        
093        _value = value;
094        _pk = value.getPrimaryKey();
095    }
096    
097    @Override
098    public VendorFactory getBaseFactoryInstance() {
099        return VendorFactory.getInstance();
100    }
101    
102    @Override
103    public boolean hasBeenModified() {
104        return _value.hasBeenModified();
105    }
106    
107    @Override
108    public int hashCode() {
109        return _pk.hashCode();
110    }
111    
112    @Override
113    public String toString() {
114        return _pk.toString();
115    }
116    
117    @Override
118    public boolean equals(Object other) {
119        if(this == other)
120            return true;
121        
122        if(other instanceof Vendor that) {
123            VendorValue thatValue = that.getVendorValue();
124            return _value.equals(thatValue);
125        } else {
126            return false;
127        }
128    }
129    
130    @Override
131    public void store(Session session)
132            throws PersistenceDatabaseException {
133        getBaseFactoryInstance().store(session, this);
134    }
135    
136    @Override
137    public void remove(Session session)
138            throws PersistenceDatabaseException {
139        getBaseFactoryInstance().remove(session, this);
140    }
141    
142    @Override
143    public void remove()
144            throws PersistenceDatabaseException {
145        getBaseFactoryInstance().remove(ThreadSession.currentSession(), this);
146    }
147    
148    public VendorValue getVendorValue() {
149        return _value;
150    }
151    
152    public void setVendorValue(VendorValue value)
153            throws PersistenceReadOnlyException {
154        checkReadWrite();
155        _value = value;
156    }
157    
158    @Override
159    public VendorPK getPrimaryKey() {
160        return _pk;
161    }
162    
163    public PartyPK getPartyPK() {
164        return _value.getPartyPK();
165    }
166    
167    public Party getParty(Session session, EntityPermission entityPermission) {
168        return PartyFactory.getInstance().getEntityFromPK(session, entityPermission, getPartyPK());
169    }
170    
171    public Party getParty(EntityPermission entityPermission) {
172        return getParty(ThreadSession.currentSession(), entityPermission);
173    }
174    
175    public Party getParty(Session session) {
176        return getParty(session, EntityPermission.READ_ONLY);
177    }
178    
179    public Party getParty() {
180        return getParty(ThreadSession.currentSession(), EntityPermission.READ_ONLY);
181    }
182    
183    public Party getPartyForUpdate(Session session) {
184        return getParty(session, EntityPermission.READ_WRITE);
185    }
186    
187    public Party getPartyForUpdate() {
188        return getParty(ThreadSession.currentSession(), EntityPermission.READ_WRITE);
189    }
190    
191    public void setPartyPK(PartyPK partyPK)
192            throws PersistenceNotNullException, PersistenceReadOnlyException {
193        checkReadWrite();
194        _value.setPartyPK(partyPK);
195    }
196    
197    public void setParty(Party entity) {
198        setPartyPK(entity == null? null: entity.getPrimaryKey());
199    }
200    
201    public boolean getPartyPKHasBeenModified() {
202        return _value.getPartyPKHasBeenModified();
203    }
204    
205    public String getVendorName() {
206        return _value.getVendorName();
207    }
208    
209    public void setVendorName(String vendorName)
210            throws PersistenceNotNullException, PersistenceReadOnlyException {
211        checkReadWrite();
212        _value.setVendorName(vendorName);
213    }
214    
215    public boolean getVendorNameHasBeenModified() {
216        return _value.getVendorNameHasBeenModified();
217    }
218    
219    public VendorTypePK getVendorTypePK() {
220        return _value.getVendorTypePK();
221    }
222    
223    public VendorType getVendorType(Session session, EntityPermission entityPermission) {
224        return VendorTypeFactory.getInstance().getEntityFromPK(session, entityPermission, getVendorTypePK());
225    }
226    
227    public VendorType getVendorType(EntityPermission entityPermission) {
228        return getVendorType(ThreadSession.currentSession(), entityPermission);
229    }
230    
231    public VendorType getVendorType(Session session) {
232        return getVendorType(session, EntityPermission.READ_ONLY);
233    }
234    
235    public VendorType getVendorType() {
236        return getVendorType(ThreadSession.currentSession(), EntityPermission.READ_ONLY);
237    }
238    
239    public VendorType getVendorTypeForUpdate(Session session) {
240        return getVendorType(session, EntityPermission.READ_WRITE);
241    }
242    
243    public VendorType getVendorTypeForUpdate() {
244        return getVendorType(ThreadSession.currentSession(), EntityPermission.READ_WRITE);
245    }
246    
247    public void setVendorTypePK(VendorTypePK vendorTypePK)
248            throws PersistenceNotNullException, PersistenceReadOnlyException {
249        checkReadWrite();
250        _value.setVendorTypePK(vendorTypePK);
251    }
252    
253    public void setVendorType(VendorType entity) {
254        setVendorTypePK(entity == null? null: entity.getPrimaryKey());
255    }
256    
257    public boolean getVendorTypePKHasBeenModified() {
258        return _value.getVendorTypePKHasBeenModified();
259    }
260    
261    public Integer getMinimumPurchaseOrderLines() {
262        return _value.getMinimumPurchaseOrderLines();
263    }
264    
265    public void setMinimumPurchaseOrderLines(Integer minimumPurchaseOrderLines)
266            throws PersistenceNotNullException, PersistenceReadOnlyException {
267        checkReadWrite();
268        _value.setMinimumPurchaseOrderLines(minimumPurchaseOrderLines);
269    }
270    
271    public boolean getMinimumPurchaseOrderLinesHasBeenModified() {
272        return _value.getMinimumPurchaseOrderLinesHasBeenModified();
273    }
274    
275    public Integer getMaximumPurchaseOrderLines() {
276        return _value.getMaximumPurchaseOrderLines();
277    }
278    
279    public void setMaximumPurchaseOrderLines(Integer maximumPurchaseOrderLines)
280            throws PersistenceNotNullException, PersistenceReadOnlyException {
281        checkReadWrite();
282        _value.setMaximumPurchaseOrderLines(maximumPurchaseOrderLines);
283    }
284    
285    public boolean getMaximumPurchaseOrderLinesHasBeenModified() {
286        return _value.getMaximumPurchaseOrderLinesHasBeenModified();
287    }
288    
289    public Long getMinimumPurchaseOrderAmount() {
290        return _value.getMinimumPurchaseOrderAmount();
291    }
292    
293    public void setMinimumPurchaseOrderAmount(Long minimumPurchaseOrderAmount)
294            throws PersistenceNotNullException, PersistenceReadOnlyException {
295        checkReadWrite();
296        _value.setMinimumPurchaseOrderAmount(minimumPurchaseOrderAmount);
297    }
298    
299    public boolean getMinimumPurchaseOrderAmountHasBeenModified() {
300        return _value.getMinimumPurchaseOrderAmountHasBeenModified();
301    }
302    
303    public Long getMaximumPurchaseOrderAmount() {
304        return _value.getMaximumPurchaseOrderAmount();
305    }
306    
307    public void setMaximumPurchaseOrderAmount(Long maximumPurchaseOrderAmount)
308            throws PersistenceNotNullException, PersistenceReadOnlyException {
309        checkReadWrite();
310        _value.setMaximumPurchaseOrderAmount(maximumPurchaseOrderAmount);
311    }
312    
313    public boolean getMaximumPurchaseOrderAmountHasBeenModified() {
314        return _value.getMaximumPurchaseOrderAmountHasBeenModified();
315    }
316    
317    public Boolean getUseItemPurchasingCategories() {
318        return _value.getUseItemPurchasingCategories();
319    }
320    
321    public void setUseItemPurchasingCategories(Boolean useItemPurchasingCategories)
322            throws PersistenceNotNullException, PersistenceReadOnlyException {
323        checkReadWrite();
324        _value.setUseItemPurchasingCategories(useItemPurchasingCategories);
325    }
326    
327    public boolean getUseItemPurchasingCategoriesHasBeenModified() {
328        return _value.getUseItemPurchasingCategoriesHasBeenModified();
329    }
330    
331    public ItemAliasTypePK getDefaultItemAliasTypePK() {
332        return _value.getDefaultItemAliasTypePK();
333    }
334    
335    public ItemAliasType getDefaultItemAliasType(Session session, EntityPermission entityPermission) {
336        ItemAliasTypePK pk = getDefaultItemAliasTypePK();
337        ItemAliasType entity = pk == null? null: ItemAliasTypeFactory.getInstance().getEntityFromPK(session, entityPermission, pk);
338        
339        return entity;
340    }
341    
342    public ItemAliasType getDefaultItemAliasType(EntityPermission entityPermission) {
343        return getDefaultItemAliasType(ThreadSession.currentSession(), entityPermission);
344    }
345    
346    public ItemAliasType getDefaultItemAliasType(Session session) {
347        return getDefaultItemAliasType(session, EntityPermission.READ_ONLY);
348    }
349    
350    public ItemAliasType getDefaultItemAliasType() {
351        return getDefaultItemAliasType(ThreadSession.currentSession(), EntityPermission.READ_ONLY);
352    }
353    
354    public ItemAliasType getDefaultItemAliasTypeForUpdate(Session session) {
355        return getDefaultItemAliasType(session, EntityPermission.READ_WRITE);
356    }
357    
358    public ItemAliasType getDefaultItemAliasTypeForUpdate() {
359        return getDefaultItemAliasType(ThreadSession.currentSession(), EntityPermission.READ_WRITE);
360    }
361    
362    public void setDefaultItemAliasTypePK(ItemAliasTypePK defaultItemAliasTypePK)
363            throws PersistenceNotNullException, PersistenceReadOnlyException {
364        checkReadWrite();
365        _value.setDefaultItemAliasTypePK(defaultItemAliasTypePK);
366    }
367    
368    public void setDefaultItemAliasType(ItemAliasType entity) {
369        setDefaultItemAliasTypePK(entity == null? null: entity.getPrimaryKey());
370    }
371    
372    public boolean getDefaultItemAliasTypePKHasBeenModified() {
373        return _value.getDefaultItemAliasTypePKHasBeenModified();
374    }
375    
376    public CancellationPolicyPK getCancellationPolicyPK() {
377        return _value.getCancellationPolicyPK();
378    }
379    
380    public CancellationPolicy getCancellationPolicy(Session session, EntityPermission entityPermission) {
381        CancellationPolicyPK pk = getCancellationPolicyPK();
382        CancellationPolicy entity = pk == null? null: CancellationPolicyFactory.getInstance().getEntityFromPK(session, entityPermission, pk);
383        
384        return entity;
385    }
386    
387    public CancellationPolicy getCancellationPolicy(EntityPermission entityPermission) {
388        return getCancellationPolicy(ThreadSession.currentSession(), entityPermission);
389    }
390    
391    public CancellationPolicy getCancellationPolicy(Session session) {
392        return getCancellationPolicy(session, EntityPermission.READ_ONLY);
393    }
394    
395    public CancellationPolicy getCancellationPolicy() {
396        return getCancellationPolicy(ThreadSession.currentSession(), EntityPermission.READ_ONLY);
397    }
398    
399    public CancellationPolicy getCancellationPolicyForUpdate(Session session) {
400        return getCancellationPolicy(session, EntityPermission.READ_WRITE);
401    }
402    
403    public CancellationPolicy getCancellationPolicyForUpdate() {
404        return getCancellationPolicy(ThreadSession.currentSession(), EntityPermission.READ_WRITE);
405    }
406    
407    public void setCancellationPolicyPK(CancellationPolicyPK cancellationPolicyPK)
408            throws PersistenceNotNullException, PersistenceReadOnlyException {
409        checkReadWrite();
410        _value.setCancellationPolicyPK(cancellationPolicyPK);
411    }
412    
413    public void setCancellationPolicy(CancellationPolicy entity) {
414        setCancellationPolicyPK(entity == null? null: entity.getPrimaryKey());
415    }
416    
417    public boolean getCancellationPolicyPKHasBeenModified() {
418        return _value.getCancellationPolicyPKHasBeenModified();
419    }
420    
421    public ReturnPolicyPK getReturnPolicyPK() {
422        return _value.getReturnPolicyPK();
423    }
424    
425    public ReturnPolicy getReturnPolicy(Session session, EntityPermission entityPermission) {
426        ReturnPolicyPK pk = getReturnPolicyPK();
427        ReturnPolicy entity = pk == null? null: ReturnPolicyFactory.getInstance().getEntityFromPK(session, entityPermission, pk);
428        
429        return entity;
430    }
431    
432    public ReturnPolicy getReturnPolicy(EntityPermission entityPermission) {
433        return getReturnPolicy(ThreadSession.currentSession(), entityPermission);
434    }
435    
436    public ReturnPolicy getReturnPolicy(Session session) {
437        return getReturnPolicy(session, EntityPermission.READ_ONLY);
438    }
439    
440    public ReturnPolicy getReturnPolicy() {
441        return getReturnPolicy(ThreadSession.currentSession(), EntityPermission.READ_ONLY);
442    }
443    
444    public ReturnPolicy getReturnPolicyForUpdate(Session session) {
445        return getReturnPolicy(session, EntityPermission.READ_WRITE);
446    }
447    
448    public ReturnPolicy getReturnPolicyForUpdate() {
449        return getReturnPolicy(ThreadSession.currentSession(), EntityPermission.READ_WRITE);
450    }
451    
452    public void setReturnPolicyPK(ReturnPolicyPK returnPolicyPK)
453            throws PersistenceNotNullException, PersistenceReadOnlyException {
454        checkReadWrite();
455        _value.setReturnPolicyPK(returnPolicyPK);
456    }
457    
458    public void setReturnPolicy(ReturnPolicy entity) {
459        setReturnPolicyPK(entity == null? null: entity.getPrimaryKey());
460    }
461    
462    public boolean getReturnPolicyPKHasBeenModified() {
463        return _value.getReturnPolicyPKHasBeenModified();
464    }
465    
466    public GlAccountPK getApGlAccountPK() {
467        return _value.getApGlAccountPK();
468    }
469    
470    public GlAccount getApGlAccount(Session session, EntityPermission entityPermission) {
471        GlAccountPK pk = getApGlAccountPK();
472        GlAccount entity = pk == null? null: GlAccountFactory.getInstance().getEntityFromPK(session, entityPermission, pk);
473        
474        return entity;
475    }
476    
477    public GlAccount getApGlAccount(EntityPermission entityPermission) {
478        return getApGlAccount(ThreadSession.currentSession(), entityPermission);
479    }
480    
481    public GlAccount getApGlAccount(Session session) {
482        return getApGlAccount(session, EntityPermission.READ_ONLY);
483    }
484    
485    public GlAccount getApGlAccount() {
486        return getApGlAccount(ThreadSession.currentSession(), EntityPermission.READ_ONLY);
487    }
488    
489    public GlAccount getApGlAccountForUpdate(Session session) {
490        return getApGlAccount(session, EntityPermission.READ_WRITE);
491    }
492    
493    public GlAccount getApGlAccountForUpdate() {
494        return getApGlAccount(ThreadSession.currentSession(), EntityPermission.READ_WRITE);
495    }
496    
497    public void setApGlAccountPK(GlAccountPK apGlAccountPK)
498            throws PersistenceNotNullException, PersistenceReadOnlyException {
499        checkReadWrite();
500        _value.setApGlAccountPK(apGlAccountPK);
501    }
502    
503    public void setApGlAccount(GlAccount entity) {
504        setApGlAccountPK(entity == null? null: entity.getPrimaryKey());
505    }
506    
507    public boolean getApGlAccountPKHasBeenModified() {
508        return _value.getApGlAccountPKHasBeenModified();
509    }
510    
511    public Boolean getHoldUntilComplete() {
512        return _value.getHoldUntilComplete();
513    }
514    
515    public void setHoldUntilComplete(Boolean holdUntilComplete)
516            throws PersistenceNotNullException, PersistenceReadOnlyException {
517        checkReadWrite();
518        _value.setHoldUntilComplete(holdUntilComplete);
519    }
520    
521    public boolean getHoldUntilCompleteHasBeenModified() {
522        return _value.getHoldUntilCompleteHasBeenModified();
523    }
524    
525    public Boolean getAllowBackorders() {
526        return _value.getAllowBackorders();
527    }
528    
529    public void setAllowBackorders(Boolean allowBackorders)
530            throws PersistenceNotNullException, PersistenceReadOnlyException {
531        checkReadWrite();
532        _value.setAllowBackorders(allowBackorders);
533    }
534    
535    public boolean getAllowBackordersHasBeenModified() {
536        return _value.getAllowBackordersHasBeenModified();
537    }
538    
539    public Boolean getAllowSubstitutions() {
540        return _value.getAllowSubstitutions();
541    }
542    
543    public void setAllowSubstitutions(Boolean allowSubstitutions)
544            throws PersistenceNotNullException, PersistenceReadOnlyException {
545        checkReadWrite();
546        _value.setAllowSubstitutions(allowSubstitutions);
547    }
548    
549    public boolean getAllowSubstitutionsHasBeenModified() {
550        return _value.getAllowSubstitutionsHasBeenModified();
551    }
552    
553    public Boolean getAllowCombiningShipments() {
554        return _value.getAllowCombiningShipments();
555    }
556    
557    public void setAllowCombiningShipments(Boolean allowCombiningShipments)
558            throws PersistenceNotNullException, PersistenceReadOnlyException {
559        checkReadWrite();
560        _value.setAllowCombiningShipments(allowCombiningShipments);
561    }
562    
563    public boolean getAllowCombiningShipmentsHasBeenModified() {
564        return _value.getAllowCombiningShipmentsHasBeenModified();
565    }
566    
567    public Boolean getRequireReference() {
568        return _value.getRequireReference();
569    }
570    
571    public void setRequireReference(Boolean requireReference)
572            throws PersistenceNotNullException, PersistenceReadOnlyException {
573        checkReadWrite();
574        _value.setRequireReference(requireReference);
575    }
576    
577    public boolean getRequireReferenceHasBeenModified() {
578        return _value.getRequireReferenceHasBeenModified();
579    }
580    
581    public Boolean getAllowReferenceDuplicates() {
582        return _value.getAllowReferenceDuplicates();
583    }
584    
585    public void setAllowReferenceDuplicates(Boolean allowReferenceDuplicates)
586            throws PersistenceNotNullException, PersistenceReadOnlyException {
587        checkReadWrite();
588        _value.setAllowReferenceDuplicates(allowReferenceDuplicates);
589    }
590    
591    public boolean getAllowReferenceDuplicatesHasBeenModified() {
592        return _value.getAllowReferenceDuplicatesHasBeenModified();
593    }
594    
595    public String getReferenceValidationPattern() {
596        return _value.getReferenceValidationPattern();
597    }
598    
599    public void setReferenceValidationPattern(String referenceValidationPattern)
600            throws PersistenceNotNullException, PersistenceReadOnlyException {
601        checkReadWrite();
602        _value.setReferenceValidationPattern(referenceValidationPattern);
603    }
604    
605    public boolean getReferenceValidationPatternHasBeenModified() {
606        return _value.getReferenceValidationPatternHasBeenModified();
607    }
608    
609    public SelectorPK getVendorItemSelectorPK() {
610        return _value.getVendorItemSelectorPK();
611    }
612    
613    public Selector getVendorItemSelector(Session session, EntityPermission entityPermission) {
614        SelectorPK pk = getVendorItemSelectorPK();
615        Selector entity = pk == null? null: SelectorFactory.getInstance().getEntityFromPK(session, entityPermission, pk);
616        
617        return entity;
618    }
619    
620    public Selector getVendorItemSelector(EntityPermission entityPermission) {
621        return getVendorItemSelector(ThreadSession.currentSession(), entityPermission);
622    }
623    
624    public Selector getVendorItemSelector(Session session) {
625        return getVendorItemSelector(session, EntityPermission.READ_ONLY);
626    }
627    
628    public Selector getVendorItemSelector() {
629        return getVendorItemSelector(ThreadSession.currentSession(), EntityPermission.READ_ONLY);
630    }
631    
632    public Selector getVendorItemSelectorForUpdate(Session session) {
633        return getVendorItemSelector(session, EntityPermission.READ_WRITE);
634    }
635    
636    public Selector getVendorItemSelectorForUpdate() {
637        return getVendorItemSelector(ThreadSession.currentSession(), EntityPermission.READ_WRITE);
638    }
639    
640    public void setVendorItemSelectorPK(SelectorPK vendorItemSelectorPK)
641            throws PersistenceNotNullException, PersistenceReadOnlyException {
642        checkReadWrite();
643        _value.setVendorItemSelectorPK(vendorItemSelectorPK);
644    }
645    
646    public void setVendorItemSelector(Selector entity) {
647        setVendorItemSelectorPK(entity == null? null: entity.getPrimaryKey());
648    }
649    
650    public boolean getVendorItemSelectorPKHasBeenModified() {
651        return _value.getVendorItemSelectorPKHasBeenModified();
652    }
653    
654    public FilterPK getVendorItemCostFilterPK() {
655        return _value.getVendorItemCostFilterPK();
656    }
657    
658    public Filter getVendorItemCostFilter(Session session, EntityPermission entityPermission) {
659        FilterPK pk = getVendorItemCostFilterPK();
660        Filter entity = pk == null? null: FilterFactory.getInstance().getEntityFromPK(session, entityPermission, pk);
661        
662        return entity;
663    }
664    
665    public Filter getVendorItemCostFilter(EntityPermission entityPermission) {
666        return getVendorItemCostFilter(ThreadSession.currentSession(), entityPermission);
667    }
668    
669    public Filter getVendorItemCostFilter(Session session) {
670        return getVendorItemCostFilter(session, EntityPermission.READ_ONLY);
671    }
672    
673    public Filter getVendorItemCostFilter() {
674        return getVendorItemCostFilter(ThreadSession.currentSession(), EntityPermission.READ_ONLY);
675    }
676    
677    public Filter getVendorItemCostFilterForUpdate(Session session) {
678        return getVendorItemCostFilter(session, EntityPermission.READ_WRITE);
679    }
680    
681    public Filter getVendorItemCostFilterForUpdate() {
682        return getVendorItemCostFilter(ThreadSession.currentSession(), EntityPermission.READ_WRITE);
683    }
684    
685    public void setVendorItemCostFilterPK(FilterPK vendorItemCostFilterPK)
686            throws PersistenceNotNullException, PersistenceReadOnlyException {
687        checkReadWrite();
688        _value.setVendorItemCostFilterPK(vendorItemCostFilterPK);
689    }
690    
691    public void setVendorItemCostFilter(Filter entity) {
692        setVendorItemCostFilterPK(entity == null? null: entity.getPrimaryKey());
693    }
694    
695    public boolean getVendorItemCostFilterPKHasBeenModified() {
696        return _value.getVendorItemCostFilterPKHasBeenModified();
697    }
698    
699    public Long getFromTime() {
700        return _value.getFromTime();
701    }
702    
703    public void setFromTime(Long fromTime)
704            throws PersistenceNotNullException, PersistenceReadOnlyException {
705        checkReadWrite();
706        _value.setFromTime(fromTime);
707    }
708    
709    public boolean getFromTimeHasBeenModified() {
710        return _value.getFromTimeHasBeenModified();
711    }
712    
713    public Long getThruTime() {
714        return _value.getThruTime();
715    }
716    
717    public void setThruTime(Long thruTime)
718            throws PersistenceNotNullException, PersistenceReadOnlyException {
719        checkReadWrite();
720        _value.setThruTime(thruTime);
721    }
722    
723    public boolean getThruTimeHasBeenModified() {
724        return _value.getThruTimeHasBeenModified();
725    }
726    
727}