Main Page | Class Hierarchy | Class List | File List | Class Members | Related Pages

glite::rgma::ColumnDefinition Class Reference

#include <ColumnDefinition.h>

List of all members.

Public Member Functions

 ColumnDefinition (std::string columnName, std::string type, int size, bool isNotNull, bool isPrimaryKey)
 ColumnDefinition (const ColumnDefinition &type)
ColumnDefinitionoperator= (const ColumnDefinition &type)
bool operator== (const ColumnDefinition &type)
void setName (std::string name)
std::string getName ()
void setNotNull (bool notNull)
bool isNotNull ()
void setPrimaryKey (bool primaryKey)
bool isPrimaryKey ()
void setType (std::string type)
std::string getType ()
int getSize ()
bool containsValidSize ()


Detailed Description

Definition of a column in an SQL CREATE TABLE statement.


Constructor & Destructor Documentation

glite::rgma::ColumnDefinition::ColumnDefinition std::string  columnName,
std::string  type,
int  size,
bool  isNotNull,
bool  isPrimaryKey
 

Creates a new ColumnDefinition object.

glite::rgma::ColumnDefinition::ColumnDefinition const ColumnDefinition type  ) 
 

Creates a new ColumnDefinition object.


Member Function Documentation

bool glite::rgma::ColumnDefinition::containsValidSize  ) 
 

Returns:
True if the column type has an associated size &gt 0.

std::string glite::rgma::ColumnDefinition::getName  ) 
 

Returns the name.

Returns:
String

int glite::rgma::ColumnDefinition::getSize  ) 
 

Returns:
Returns the size for CHAR and VARCHAR types.

std::string glite::rgma::ColumnDefinition::getType  ) 
 

Returns the type.

Returns:
String

bool glite::rgma::ColumnDefinition::isNotNull  ) 
 

Returns the NOT NULL flag.

Returns:
boolean

bool glite::rgma::ColumnDefinition::isPrimaryKey  ) 
 

Returns the PRIMARY KEY flag.

Returns:
boolean

void glite::rgma::ColumnDefinition::setName std::string  name  ) 
 

Sets the name.

Parameters:
name The name to set

void glite::rgma::ColumnDefinition::setNotNull bool  notNull  ) 
 

Sets the NOT NULL flag.

Parameters:
notNull The value to set.

void glite::rgma::ColumnDefinition::setPrimaryKey bool  primaryKey  ) 
 

Sets the PRIMARY KEY flag.

Parameters:
primaryKey The value to set.

void glite::rgma::ColumnDefinition::setType std::string  type  ) 
 

Sets the type.

Parameters:
type The type to set


The documentation for this class was generated from the following files:
Generated on Fri Mar 16 14:00:16 2007 for glite-rgma-api-cpp by doxygen 1.3.5