The Field class can be used to model an expression that takes part of the output items of a SELECT.  
 More...
#include <Field.h>
The Field class can be used to model an expression that takes part of the output items of a SELECT. 
- See also
 - Fields 
 
Definition at line 50 of file Field.h.
 
      
        
          | te::da::Field::Field  | 
          ( | 
          const Expression &  | 
          e,  | 
        
        
           | 
           | 
          const std::string &  | 
          alias = std::string("")  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Constructor. 
- Parameters
 - 
  
    | e | The output expression to be used in a Select clause.  | 
    | alias | An alias to the output expression.  | 
  
   
 
 
      
        
          | te::da::Field::Field  | 
          ( | 
          Expression *  | 
          e,  | 
        
        
           | 
           | 
          std::string *  | 
          alias = 0  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Constructor. 
- Parameters
 - 
  
    | e | The output expression to be used in a Select clause.  | 
    | alias | An alias to the output expression. | 
  
   
- Note
 - The Field will take the ownership of Expression and alias. 
 
 
 
      
        
          | te::da::Field::Field  | 
          ( | 
          const std::string &  | 
          propertyName,  | 
        
        
           | 
           | 
          const std::string &  | 
          alias = std::string("")  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Constructor. 
- Parameters
 - 
  
    | propertyName | The property name.  | 
    | alias | The property alias.  | 
  
   
 
 
      
        
          | te::da::Field::Field  | 
          ( | 
          const Field &  | 
          rhs | ) | 
           | 
        
      
 
 
      
        
          | te::da::Field::~Field  | 
          ( | 
           | ) | 
           | 
        
      
 
 
      
        
          | std::string* te::da::Field::getAlias  | 
          ( | 
           | ) | 
           const | 
        
      
 
It returns the alias for the outout expression. 
- Returns
 - The alias for the outout expression. 
 
 
 
      
        
          | Expression* te::da::Field::getExpression  | 
          ( | 
           | ) | 
           const | 
        
      
 
It returns the expression set for an output select query. 
- Returns
 - The expression set for an output select query. 
 
 
 
      
        
          | Field& te::da::Field::operator=  | 
          ( | 
          const Field &  | 
          rhs | ) | 
           | 
        
      
 
 
      
        
          | void te::da::Field::setAlias  | 
          ( | 
          std::string *  | 
          alias | ) | 
           | 
        
      
 
As you know, sometimes is better to give an alias to an output expression. 
- Parameters
 - 
  
    | alias | An aliast fo the output expression. | 
  
   
- Note
 - The Field object will take the ownership of the alias. 
 
 
 
      
        
          | void te::da::Field::setExpression  | 
          ( | 
          Expression *  | 
          e | ) | 
           | 
        
      
 
It sets the an expression that can be used in a Select query. 
- Parameters
 - 
  
    | e | An expression that can be used in a Select query. | 
  
   
- Note
 - The Field will take the ownership of the given expression. 
 
 
 
  
  
      
        
          | std::auto_ptr<std::string> te::da::Field::m_alias | 
         
       
   | 
  
private   | 
  
 
An alias for the output name. 
Definition at line 124 of file Field.h.
 
 
A valid expression. 
Definition at line 123 of file Field.h.
 
 
The documentation for this class was generated from the following file:
- /home/castejon/castejon_files/develop/terralib5/git_master/src/terralib/dataaccess/query/Field.h