001// --------------------------------------------------------------------------------
002// Copyright 2002-2024 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) {
123            Vendor that = (Vendor)other;
124            
125            VendorValue thatValue = that.getVendorValue();
126            return _value.equals(thatValue);
127        } else {
128            return false;
129        }
130    }
131    
132    @Override
133    public void store(Session session)
134            throws PersistenceDatabaseException {
135        getBaseFactoryInstance().store(session, this);
136    }
137    
138    @Override
139    public void remove(Session session)
140            throws PersistenceDatabaseException {
141        getBaseFactoryInstance().remove(session, this);
142    }
143    
144    @Override
145    public void remove()
146            throws PersistenceDatabaseException {
147        getBaseFactoryInstance().remove(ThreadSession.currentSession(), this);
148    }
149    
150    public VendorValue getVendorValue() {
151        return _value;
152    }
153    
154    public void setVendorValue(VendorValue value)
155            throws PersistenceReadOnlyException {
156        checkReadWrite();
157        _value = value;
158    }
159    
160    @Override
161    public VendorPK getPrimaryKey() {
162        return _pk;
163    }
164    
165    public PartyPK getPartyPK() {
166        return _value.getPartyPK();
167    }
168    
169    public Party getParty(Session session, EntityPermission entityPermission) {
170        return PartyFactory.getInstance().getEntityFromPK(session, entityPermission, getPartyPK());
171    }
172    
173    public Party getParty(EntityPermission entityPermission) {
174        return getParty(ThreadSession.currentSession(), entityPermission);
175    }
176    
177    public Party getParty(Session session) {
178        return getParty(session, EntityPermission.READ_ONLY);
179    }
180    
181    public Party getParty() {
182        return getParty(ThreadSession.currentSession(), EntityPermission.READ_ONLY);
183    }
184    
185    public Party getPartyForUpdate(Session session) {
186        return getParty(session, EntityPermission.READ_WRITE);
187    }
188    
189    public Party getPartyForUpdate() {
190        return getParty(ThreadSession.currentSession(), EntityPermission.READ_WRITE);
191    }
192    
193    public void setPartyPK(PartyPK partyPK)
194            throws PersistenceNotNullException, PersistenceReadOnlyException {
195        checkReadWrite();
196        _value.setPartyPK(partyPK);
197    }
198    
199    public void setParty(Party entity) {
200        setPartyPK(entity == null? null: entity.getPrimaryKey());
201    }
202    
203    public boolean getPartyPKHasBeenModified() {
204        return _value.getPartyPKHasBeenModified();
205    }
206    
207    public String getVendorName() {
208        return _value.getVendorName();
209    }
210    
211    public void setVendorName(String vendorName)
212            throws PersistenceNotNullException, PersistenceReadOnlyException {
213        checkReadWrite();
214        _value.setVendorName(vendorName);
215    }
216    
217    public boolean getVendorNameHasBeenModified() {
218        return _value.getVendorNameHasBeenModified();
219    }
220    
221    public VendorTypePK getVendorTypePK() {
222        return _value.getVendorTypePK();
223    }
224    
225    public VendorType getVendorType(Session session, EntityPermission entityPermission) {
226        return VendorTypeFactory.getInstance().getEntityFromPK(session, entityPermission, getVendorTypePK());
227    }
228    
229    public VendorType getVendorType(EntityPermission entityPermission) {
230        return getVendorType(ThreadSession.currentSession(), entityPermission);
231    }
232    
233    public VendorType getVendorType(Session session) {
234        return getVendorType(session, EntityPermission.READ_ONLY);
235    }
236    
237    public VendorType getVendorType() {
238        return getVendorType(ThreadSession.currentSession(), EntityPermission.READ_ONLY);
239    }
240    
241    public VendorType getVendorTypeForUpdate(Session session) {
242        return getVendorType(session, EntityPermission.READ_WRITE);
243    }
244    
245    public VendorType getVendorTypeForUpdate() {
246        return getVendorType(ThreadSession.currentSession(), EntityPermission.READ_WRITE);
247    }
248    
249    public void setVendorTypePK(VendorTypePK vendorTypePK)
250            throws PersistenceNotNullException, PersistenceReadOnlyException {
251        checkReadWrite();
252        _value.setVendorTypePK(vendorTypePK);
253    }
254    
255    public void setVendorType(VendorType entity) {
256        setVendorTypePK(entity == null? null: entity.getPrimaryKey());
257    }
258    
259    public boolean getVendorTypePKHasBeenModified() {
260        return _value.getVendorTypePKHasBeenModified();
261    }
262    
263    public Integer getMinimumPurchaseOrderLines() {
264        return _value.getMinimumPurchaseOrderLines();
265    }
266    
267    public void setMinimumPurchaseOrderLines(Integer minimumPurchaseOrderLines)
268            throws PersistenceNotNullException, PersistenceReadOnlyException {
269        checkReadWrite();
270        _value.setMinimumPurchaseOrderLines(minimumPurchaseOrderLines);
271    }
272    
273    public boolean getMinimumPurchaseOrderLinesHasBeenModified() {
274        return _value.getMinimumPurchaseOrderLinesHasBeenModified();
275    }
276    
277    public Integer getMaximumPurchaseOrderLines() {
278        return _value.getMaximumPurchaseOrderLines();
279    }
280    
281    public void setMaximumPurchaseOrderLines(Integer maximumPurchaseOrderLines)
282            throws PersistenceNotNullException, PersistenceReadOnlyException {
283        checkReadWrite();
284        _value.setMaximumPurchaseOrderLines(maximumPurchaseOrderLines);
285    }
286    
287    public boolean getMaximumPurchaseOrderLinesHasBeenModified() {
288        return _value.getMaximumPurchaseOrderLinesHasBeenModified();
289    }
290    
291    public Long getMinimumPurchaseOrderAmount() {
292        return _value.getMinimumPurchaseOrderAmount();
293    }
294    
295    public void setMinimumPurchaseOrderAmount(Long minimumPurchaseOrderAmount)
296            throws PersistenceNotNullException, PersistenceReadOnlyException {
297        checkReadWrite();
298        _value.setMinimumPurchaseOrderAmount(minimumPurchaseOrderAmount);
299    }
300    
301    public boolean getMinimumPurchaseOrderAmountHasBeenModified() {
302        return _value.getMinimumPurchaseOrderAmountHasBeenModified();
303    }
304    
305    public Long getMaximumPurchaseOrderAmount() {
306        return _value.getMaximumPurchaseOrderAmount();
307    }
308    
309    public void setMaximumPurchaseOrderAmount(Long maximumPurchaseOrderAmount)
310            throws PersistenceNotNullException, PersistenceReadOnlyException {
311        checkReadWrite();
312        _value.setMaximumPurchaseOrderAmount(maximumPurchaseOrderAmount);
313    }
314    
315    public boolean getMaximumPurchaseOrderAmountHasBeenModified() {
316        return _value.getMaximumPurchaseOrderAmountHasBeenModified();
317    }
318    
319    public Boolean getUseItemPurchasingCategories() {
320        return _value.getUseItemPurchasingCategories();
321    }
322    
323    public void setUseItemPurchasingCategories(Boolean useItemPurchasingCategories)
324            throws PersistenceNotNullException, PersistenceReadOnlyException {
325        checkReadWrite();
326        _value.setUseItemPurchasingCategories(useItemPurchasingCategories);
327    }
328    
329    public boolean getUseItemPurchasingCategoriesHasBeenModified() {
330        return _value.getUseItemPurchasingCategoriesHasBeenModified();
331    }
332    
333    public ItemAliasTypePK getDefaultItemAliasTypePK() {
334        return _value.getDefaultItemAliasTypePK();
335    }
336    
337    public ItemAliasType getDefaultItemAliasType(Session session, EntityPermission entityPermission) {
338        ItemAliasTypePK pk = getDefaultItemAliasTypePK();
339        ItemAliasType entity = pk == null? null: ItemAliasTypeFactory.getInstance().getEntityFromPK(session, entityPermission, pk);
340        
341        return entity;
342    }
343    
344    public ItemAliasType getDefaultItemAliasType(EntityPermission entityPermission) {
345        return getDefaultItemAliasType(ThreadSession.currentSession(), entityPermission);
346    }
347    
348    public ItemAliasType getDefaultItemAliasType(Session session) {
349        return getDefaultItemAliasType(session, EntityPermission.READ_ONLY);
350    }
351    
352    public ItemAliasType getDefaultItemAliasType() {
353        return getDefaultItemAliasType(ThreadSession.currentSession(), EntityPermission.READ_ONLY);
354    }
355    
356    public ItemAliasType getDefaultItemAliasTypeForUpdate(Session session) {
357        return getDefaultItemAliasType(session, EntityPermission.READ_WRITE);
358    }
359    
360    public ItemAliasType getDefaultItemAliasTypeForUpdate() {
361        return getDefaultItemAliasType(ThreadSession.currentSession(), EntityPermission.READ_WRITE);
362    }
363    
364    public void setDefaultItemAliasTypePK(ItemAliasTypePK defaultItemAliasTypePK)
365            throws PersistenceNotNullException, PersistenceReadOnlyException {
366        checkReadWrite();
367        _value.setDefaultItemAliasTypePK(defaultItemAliasTypePK);
368    }
369    
370    public void setDefaultItemAliasType(ItemAliasType entity) {
371        setDefaultItemAliasTypePK(entity == null? null: entity.getPrimaryKey());
372    }
373    
374    public boolean getDefaultItemAliasTypePKHasBeenModified() {
375        return _value.getDefaultItemAliasTypePKHasBeenModified();
376    }
377    
378    public CancellationPolicyPK getCancellationPolicyPK() {
379        return _value.getCancellationPolicyPK();
380    }
381    
382    public CancellationPolicy getCancellationPolicy(Session session, EntityPermission entityPermission) {
383        CancellationPolicyPK pk = getCancellationPolicyPK();
384        CancellationPolicy entity = pk == null? null: CancellationPolicyFactory.getInstance().getEntityFromPK(session, entityPermission, pk);
385        
386        return entity;
387    }
388    
389    public CancellationPolicy getCancellationPolicy(EntityPermission entityPermission) {
390        return getCancellationPolicy(ThreadSession.currentSession(), entityPermission);
391    }
392    
393    public CancellationPolicy getCancellationPolicy(Session session) {
394        return getCancellationPolicy(session, EntityPermission.READ_ONLY);
395    }
396    
397    public CancellationPolicy getCancellationPolicy() {
398        return getCancellationPolicy(ThreadSession.currentSession(), EntityPermission.READ_ONLY);
399    }
400    
401    public CancellationPolicy getCancellationPolicyForUpdate(Session session) {
402        return getCancellationPolicy(session, EntityPermission.READ_WRITE);
403    }
404    
405    public CancellationPolicy getCancellationPolicyForUpdate() {
406        return getCancellationPolicy(ThreadSession.currentSession(), EntityPermission.READ_WRITE);
407    }
408    
409    public void setCancellationPolicyPK(CancellationPolicyPK cancellationPolicyPK)
410            throws PersistenceNotNullException, PersistenceReadOnlyException {
411        checkReadWrite();
412        _value.setCancellationPolicyPK(cancellationPolicyPK);
413    }
414    
415    public void setCancellationPolicy(CancellationPolicy entity) {
416        setCancellationPolicyPK(entity == null? null: entity.getPrimaryKey());
417    }
418    
419    public boolean getCancellationPolicyPKHasBeenModified() {
420        return _value.getCancellationPolicyPKHasBeenModified();
421    }
422    
423    public ReturnPolicyPK getReturnPolicyPK() {
424        return _value.getReturnPolicyPK();
425    }
426    
427    public ReturnPolicy getReturnPolicy(Session session, EntityPermission entityPermission) {
428        ReturnPolicyPK pk = getReturnPolicyPK();
429        ReturnPolicy entity = pk == null? null: ReturnPolicyFactory.getInstance().getEntityFromPK(session, entityPermission, pk);
430        
431        return entity;
432    }
433    
434    public ReturnPolicy getReturnPolicy(EntityPermission entityPermission) {
435        return getReturnPolicy(ThreadSession.currentSession(), entityPermission);
436    }
437    
438    public ReturnPolicy getReturnPolicy(Session session) {
439        return getReturnPolicy(session, EntityPermission.READ_ONLY);
440    }
441    
442    public ReturnPolicy getReturnPolicy() {
443        return getReturnPolicy(ThreadSession.currentSession(), EntityPermission.READ_ONLY);
444    }
445    
446    public ReturnPolicy getReturnPolicyForUpdate(Session session) {
447        return getReturnPolicy(session, EntityPermission.READ_WRITE);
448    }
449    
450    public ReturnPolicy getReturnPolicyForUpdate() {
451        return getReturnPolicy(ThreadSession.currentSession(), EntityPermission.READ_WRITE);
452    }
453    
454    public void setReturnPolicyPK(ReturnPolicyPK returnPolicyPK)
455            throws PersistenceNotNullException, PersistenceReadOnlyException {
456        checkReadWrite();
457        _value.setReturnPolicyPK(returnPolicyPK);
458    }
459    
460    public void setReturnPolicy(ReturnPolicy entity) {
461        setReturnPolicyPK(entity == null? null: entity.getPrimaryKey());
462    }
463    
464    public boolean getReturnPolicyPKHasBeenModified() {
465        return _value.getReturnPolicyPKHasBeenModified();
466    }
467    
468    public GlAccountPK getApGlAccountPK() {
469        return _value.getApGlAccountPK();
470    }
471    
472    public GlAccount getApGlAccount(Session session, EntityPermission entityPermission) {
473        GlAccountPK pk = getApGlAccountPK();
474        GlAccount entity = pk == null? null: GlAccountFactory.getInstance().getEntityFromPK(session, entityPermission, pk);
475        
476        return entity;
477    }
478    
479    public GlAccount getApGlAccount(EntityPermission entityPermission) {
480        return getApGlAccount(ThreadSession.currentSession(), entityPermission);
481    }
482    
483    public GlAccount getApGlAccount(Session session) {
484        return getApGlAccount(session, EntityPermission.READ_ONLY);
485    }
486    
487    public GlAccount getApGlAccount() {
488        return getApGlAccount(ThreadSession.currentSession(), EntityPermission.READ_ONLY);
489    }
490    
491    public GlAccount getApGlAccountForUpdate(Session session) {
492        return getApGlAccount(session, EntityPermission.READ_WRITE);
493    }
494    
495    public GlAccount getApGlAccountForUpdate() {
496        return getApGlAccount(ThreadSession.currentSession(), EntityPermission.READ_WRITE);
497    }
498    
499    public void setApGlAccountPK(GlAccountPK apGlAccountPK)
500            throws PersistenceNotNullException, PersistenceReadOnlyException {
501        checkReadWrite();
502        _value.setApGlAccountPK(apGlAccountPK);
503    }
504    
505    public void setApGlAccount(GlAccount entity) {
506        setApGlAccountPK(entity == null? null: entity.getPrimaryKey());
507    }
508    
509    public boolean getApGlAccountPKHasBeenModified() {
510        return _value.getApGlAccountPKHasBeenModified();
511    }
512    
513    public Boolean getHoldUntilComplete() {
514        return _value.getHoldUntilComplete();
515    }
516    
517    public void setHoldUntilComplete(Boolean holdUntilComplete)
518            throws PersistenceNotNullException, PersistenceReadOnlyException {
519        checkReadWrite();
520        _value.setHoldUntilComplete(holdUntilComplete);
521    }
522    
523    public boolean getHoldUntilCompleteHasBeenModified() {
524        return _value.getHoldUntilCompleteHasBeenModified();
525    }
526    
527    public Boolean getAllowBackorders() {
528        return _value.getAllowBackorders();
529    }
530    
531    public void setAllowBackorders(Boolean allowBackorders)
532            throws PersistenceNotNullException, PersistenceReadOnlyException {
533        checkReadWrite();
534        _value.setAllowBackorders(allowBackorders);
535    }
536    
537    public boolean getAllowBackordersHasBeenModified() {
538        return _value.getAllowBackordersHasBeenModified();
539    }
540    
541    public Boolean getAllowSubstitutions() {
542        return _value.getAllowSubstitutions();
543    }
544    
545    public void setAllowSubstitutions(Boolean allowSubstitutions)
546            throws PersistenceNotNullException, PersistenceReadOnlyException {
547        checkReadWrite();
548        _value.setAllowSubstitutions(allowSubstitutions);
549    }
550    
551    public boolean getAllowSubstitutionsHasBeenModified() {
552        return _value.getAllowSubstitutionsHasBeenModified();
553    }
554    
555    public Boolean getAllowCombiningShipments() {
556        return _value.getAllowCombiningShipments();
557    }
558    
559    public void setAllowCombiningShipments(Boolean allowCombiningShipments)
560            throws PersistenceNotNullException, PersistenceReadOnlyException {
561        checkReadWrite();
562        _value.setAllowCombiningShipments(allowCombiningShipments);
563    }
564    
565    public boolean getAllowCombiningShipmentsHasBeenModified() {
566        return _value.getAllowCombiningShipmentsHasBeenModified();
567    }
568    
569    public Boolean getRequireReference() {
570        return _value.getRequireReference();
571    }
572    
573    public void setRequireReference(Boolean requireReference)
574            throws PersistenceNotNullException, PersistenceReadOnlyException {
575        checkReadWrite();
576        _value.setRequireReference(requireReference);
577    }
578    
579    public boolean getRequireReferenceHasBeenModified() {
580        return _value.getRequireReferenceHasBeenModified();
581    }
582    
583    public Boolean getAllowReferenceDuplicates() {
584        return _value.getAllowReferenceDuplicates();
585    }
586    
587    public void setAllowReferenceDuplicates(Boolean allowReferenceDuplicates)
588            throws PersistenceNotNullException, PersistenceReadOnlyException {
589        checkReadWrite();
590        _value.setAllowReferenceDuplicates(allowReferenceDuplicates);
591    }
592    
593    public boolean getAllowReferenceDuplicatesHasBeenModified() {
594        return _value.getAllowReferenceDuplicatesHasBeenModified();
595    }
596    
597    public String getReferenceValidationPattern() {
598        return _value.getReferenceValidationPattern();
599    }
600    
601    public void setReferenceValidationPattern(String referenceValidationPattern)
602            throws PersistenceNotNullException, PersistenceReadOnlyException {
603        checkReadWrite();
604        _value.setReferenceValidationPattern(referenceValidationPattern);
605    }
606    
607    public boolean getReferenceValidationPatternHasBeenModified() {
608        return _value.getReferenceValidationPatternHasBeenModified();
609    }
610    
611    public SelectorPK getVendorItemSelectorPK() {
612        return _value.getVendorItemSelectorPK();
613    }
614    
615    public Selector getVendorItemSelector(Session session, EntityPermission entityPermission) {
616        SelectorPK pk = getVendorItemSelectorPK();
617        Selector entity = pk == null? null: SelectorFactory.getInstance().getEntityFromPK(session, entityPermission, pk);
618        
619        return entity;
620    }
621    
622    public Selector getVendorItemSelector(EntityPermission entityPermission) {
623        return getVendorItemSelector(ThreadSession.currentSession(), entityPermission);
624    }
625    
626    public Selector getVendorItemSelector(Session session) {
627        return getVendorItemSelector(session, EntityPermission.READ_ONLY);
628    }
629    
630    public Selector getVendorItemSelector() {
631        return getVendorItemSelector(ThreadSession.currentSession(), EntityPermission.READ_ONLY);
632    }
633    
634    public Selector getVendorItemSelectorForUpdate(Session session) {
635        return getVendorItemSelector(session, EntityPermission.READ_WRITE);
636    }
637    
638    public Selector getVendorItemSelectorForUpdate() {
639        return getVendorItemSelector(ThreadSession.currentSession(), EntityPermission.READ_WRITE);
640    }
641    
642    public void setVendorItemSelectorPK(SelectorPK vendorItemSelectorPK)
643            throws PersistenceNotNullException, PersistenceReadOnlyException {
644        checkReadWrite();
645        _value.setVendorItemSelectorPK(vendorItemSelectorPK);
646    }
647    
648    public void setVendorItemSelector(Selector entity) {
649        setVendorItemSelectorPK(entity == null? null: entity.getPrimaryKey());
650    }
651    
652    public boolean getVendorItemSelectorPKHasBeenModified() {
653        return _value.getVendorItemSelectorPKHasBeenModified();
654    }
655    
656    public FilterPK getVendorItemCostFilterPK() {
657        return _value.getVendorItemCostFilterPK();
658    }
659    
660    public Filter getVendorItemCostFilter(Session session, EntityPermission entityPermission) {
661        FilterPK pk = getVendorItemCostFilterPK();
662        Filter entity = pk == null? null: FilterFactory.getInstance().getEntityFromPK(session, entityPermission, pk);
663        
664        return entity;
665    }
666    
667    public Filter getVendorItemCostFilter(EntityPermission entityPermission) {
668        return getVendorItemCostFilter(ThreadSession.currentSession(), entityPermission);
669    }
670    
671    public Filter getVendorItemCostFilter(Session session) {
672        return getVendorItemCostFilter(session, EntityPermission.READ_ONLY);
673    }
674    
675    public Filter getVendorItemCostFilter() {
676        return getVendorItemCostFilter(ThreadSession.currentSession(), EntityPermission.READ_ONLY);
677    }
678    
679    public Filter getVendorItemCostFilterForUpdate(Session session) {
680        return getVendorItemCostFilter(session, EntityPermission.READ_WRITE);
681    }
682    
683    public Filter getVendorItemCostFilterForUpdate() {
684        return getVendorItemCostFilter(ThreadSession.currentSession(), EntityPermission.READ_WRITE);
685    }
686    
687    public void setVendorItemCostFilterPK(FilterPK vendorItemCostFilterPK)
688            throws PersistenceNotNullException, PersistenceReadOnlyException {
689        checkReadWrite();
690        _value.setVendorItemCostFilterPK(vendorItemCostFilterPK);
691    }
692    
693    public void setVendorItemCostFilter(Filter entity) {
694        setVendorItemCostFilterPK(entity == null? null: entity.getPrimaryKey());
695    }
696    
697    public boolean getVendorItemCostFilterPKHasBeenModified() {
698        return _value.getVendorItemCostFilterPKHasBeenModified();
699    }
700    
701    public Long getFromTime() {
702        return _value.getFromTime();
703    }
704    
705    public void setFromTime(Long fromTime)
706            throws PersistenceNotNullException, PersistenceReadOnlyException {
707        checkReadWrite();
708        _value.setFromTime(fromTime);
709    }
710    
711    public boolean getFromTimeHasBeenModified() {
712        return _value.getFromTimeHasBeenModified();
713    }
714    
715    public Long getThruTime() {
716        return _value.getThruTime();
717    }
718    
719    public void setThruTime(Long thruTime)
720            throws PersistenceNotNullException, PersistenceReadOnlyException {
721        checkReadWrite();
722        _value.setThruTime(thruTime);
723    }
724    
725    public boolean getThruTimeHasBeenModified() {
726        return _value.getThruTimeHasBeenModified();
727    }
728    
729}