//// BXPGFromItem.m// BaseTen//// Copyright (C) 2006-2008 Marko Karppinen & Co. LLC.//// Before using this software, please review the available licensing options// by visiting http://www.karppinen.fi/baseten/licensing/ or by contacting// us at sales@karppinen.fi. Without an additional license, this software// may be distributed only in compliance with the GNU General Public License.////// This program is free software; you can redistribute it and/or modify// it under the terms of the GNU General Public License, version 2.0,// as published by the Free Software Foundation.//// This program is distributed in the hope that it will be useful,// but WITHOUT ANY WARRANTY; without even the implied warranty of// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the// GNU General Public License for more details.//// You should have received a copy of the GNU General Public License// along with this program; if not, write to the Free Software// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA//// $Id$//#import "BXPGFromItem.h"@implementationBXPGFromItem-(void)dealloc{[mAliasrelease];[superdealloc];}-(NSString*)alias{returnmAlias;}-(void)setAlias:(NSString*)aString{if(mAlias!=aString){[mAliasrelease];mAlias=[aStringretain];}}-(BXEntityDescription*)entity{[selfdoesNotRecognizeSelector:_cmd];returnnil;}@end@implementationBXPGRelationshipFromItem-(void)dealloc{[mRelationshiprelease];[mPreviousrelease];[superdealloc];}-(void)setRelationship:(BXRelationshipDescription*)aRel{if(mRelationship!=aRel){[mRelationshiprelease];mRelationship=[aRelretain];}}-(BXRelationshipDescription*)relationship{returnmRelationship;}-(BXPGFromItem*)previous{returnmPrevious;}-(void)setPrevious:(BXPGFromItem*)anItem{if(mPrevious!=anItem){[mPreviousrelease];mPrevious=[anItemretain];}}-(BXEntityDescription*)entity{return[mRelationshipdestinationEntity];}-(NSString*)BXPGVisitFromItem:(id<BXPGFromItemVisitor>)visitor{return[visitorvisitRelationshipJoinItem:self];}@end@implementationBXPGPrimaryRelationFromItem-(void)dealloc{[mEntityrelease];[superdealloc];}-(BXEntityDescription*)entity{returnmEntity;}-(void)setEntity:(BXEntityDescription*)anEntity{if(mEntity!=anEntity){[mEntityrelease];mEntity=[anEntityretain];}}-(NSString*)BXPGVisitFromItem:(id<BXPGFromItemVisitor>)visitor{return[visitorvisitPrimaryRelation:self];}@end@implementationBXPGHelperTableRelationshipFromItem-(void)dealloc{[mHelperAliasrelease];[superdealloc];}-(NSString*)helperAlias{returnmHelperAlias;}-(void)setHelperAlias:(NSString*)aString{if(mHelperAlias!=aString){[mHelperAliasrelease];mHelperAlias=[aStringretain];}}@end