The Field class can be used to model an expression that takes part of the output items of a SELECT.  
 More...
#include <Field.h>
 | 
|   | Field (const Expression &e, const std::string &alias=std::string("")) | 
|   | Constructor.  
  | 
|   | 
|   | Field (const Field &rhs) | 
|   | Copy constructor.  
  | 
|   | 
|   | Field (const std::string &propertyName, const std::string &alias=std::string("")) | 
|   | Constructor.  
  | 
|   | 
|   | Field (Expression *e, std::string *alias=0) | 
|   | Constructor.  
  | 
|   | 
| std::string *  | getAlias () const | 
|   | It returns the alias for the outout expression.  
  | 
|   | 
| Expression *  | getExpression () const | 
|   | It returns the expression set for an output select query.  
  | 
|   | 
| Field &  | operator= (const Field &rhs) | 
|   | 
| void  | setAlias (std::string *alias) | 
|   | As you know, sometimes is better to give an alias to an output expression.  
  | 
|   | 
| void  | setExpression (Expression *e) | 
|   | It sets the an expression that can be used in a Select query.  
  | 
|   | 
|   | ~Field () | 
|   | Destructor.  
  | 
|   | 
 | 
| std::unique_ptr< std::string >  | m_alias | 
|   | An alias for the output name.  
  | 
|   | 
| std::unique_ptr< Expression >  | m_field | 
|   | A valid expression.  
  | 
|   | 
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.
 
◆ Field() [1/4]
      
        
          | 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.  | 
  
   
 
 
◆ Field() [2/4]
      
        
          | 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. 
 
 
 
◆ Field() [3/4]
      
        
          | te::da::Field::Field  | 
          ( | 
          const std::string &  | 
          propertyName,  | 
        
        
           | 
           | 
          const std::string &  | 
          alias = std::string("")  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Constructor. 
- Parameters
 - 
  
    | propertyName | The property name.  | 
    | alias | The property alias.  | 
  
   
 
 
◆ Field() [4/4]
      
        
          | te::da::Field::Field  | 
          ( | 
          const Field &  | 
          rhs | ) | 
           | 
        
      
 
 
◆ ~Field()
      
        
          | te::da::Field::~Field  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ getAlias()
      
        
          | std::string * te::da::Field::getAlias  | 
          ( | 
           | ) | 
           const | 
        
      
 
It returns the alias for the outout expression. 
- Returns
 - The alias for the outout expression. 
 
 
 
◆ getExpression()
      
        
          | 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. 
 
 
 
◆ operator=()
      
        
          | Field & te::da::Field::operator=  | 
          ( | 
          const Field &  | 
          rhs | ) | 
           | 
        
      
 
 
◆ setAlias()
      
        
          | 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. 
 
 
 
◆ setExpression()
      
        
          | 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. 
 
 
 
◆ m_alias
  
  
      
        
          | std::unique_ptr<std::string> te::da::Field::m_alias | 
         
       
   | 
  
private   | 
  
 
An alias for the output name. 
Definition at line 124 of file Field.h.
 
 
◆ m_field
  
  
      
        
          | std::unique_ptr<Expression> te::da::Field::m_field | 
         
       
   | 
  
private   | 
  
 
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_release/src/terralib/dataaccess/query/Field.h