[Bio] / Sprout / ERDBQuery.pm Repository:
ViewVC logotype

Diff of /Sprout/ERDBQuery.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1, Mon Jan 19 21:46:21 2009 UTC revision 1.2, Thu Feb 5 06:50:51 2009 UTC
# Line 79  Line 79 
79      return $retVal;      return $retVal;
80  }  }
81    
82    =head3 DefaultObjectName
83    
84        my $objectName = $query->DefaultObjectName();
85    
86    Return the name of this query's default entity or relationship.
87    
88    =cut
89    
90    sub DefaultObjectName {
91        # Get the parameters.
92        my ($self) = @_;
93        # Get the relation map.
94        my $map = $self->{_objectNames};
95        # Get the default object alias. This is always the first alias in the
96        # relation map.
97        my $retVal = $map->[0][0];
98        # Return the result.
99        return $retVal;
100    }
101    
102    
103  =head3 AnalyzeFieldName  =head3 AnalyzeFieldName
104    
105      my ($objectName, $fieldName, $type) = $query->AnalyzeFieldName($name);      my ($objectName, $fieldName, $type) = $query->AnalyzeFieldName($name);

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3