represents an Oracle column
More...
|
bool | equalImpl (AbstractColumn c) |
| returns True if the argument is equal to the current object, False if not
|
|
list< string > | getAddColumnSql (AbstractTable t) |
| returns a list of sql strings that can be used to add the column to an existing table
|
|
string | getDdlName (string name) |
| returns the column name with quoting in case the column name is a reserved word
|
|
list< string > | getModifySqlImpl (AbstractTable t, AbstractColumn col, *hash opt) |
| returns a list of sql strings that can be used to modify the column to the new definition
|
|
string | getNativeTypeString () |
| returns the string describing the native type that can be used in SQL
|
|
string | getRenameSql (AbstractTable t, string new_name) |
| returns a string that can be used to rename the column
|
|
|
int | byte_size |
| byte size of the column
|
|
bool | char_used |
| the column uses character semantics
|
|
|
| constructor () |
| empty constructor for subclasses
|
|
represents an Oracle column
◆ getAddColumnSql()
list< string > OracleSqlUtilBase::OracleColumn::getAddColumnSql |
( |
AbstractTable | t | ) |
|
returns a list of sql strings that can be used to add the column to an existing table
- Example:
list<string> l = col.getAddColumnSql(t);
- Parameters
-
t | the AbstractTable object to modify |
◆ getDdlName()
string OracleSqlUtilBase::OracleColumn::getDdlName |
( |
string | name | ) |
|
returns the column name with quoting in case the column name is a reserved word
the name returned here will be used when executing DDL
◆ getModifySqlImpl()
list< string > OracleSqlUtilBase::OracleColumn::getModifySqlImpl |
( |
AbstractTable | t, |
|
|
AbstractColumn | col, |
|
|
*hash | opt ) |
returns a list of sql strings that can be used to modify the column to the new definition
- Example:
list<string> l = col.getModifySql(t, newcol);
The column names are assumed to be equal
- Parameters
-
t | the AbstractTable object to modify |
col | the new column definition |
opt | ignored |
- Returns
- a list of sql strings that can be used to modify the column to the new definition; if the column definitions are identical then an empty list is returned
◆ getNativeTypeString()
string OracleSqlUtilBase::OracleColumn::getNativeTypeString |
( |
| ) |
|
returns the string describing the native type that can be used in SQL
This method can be used, for example, to add the colunn to a table or when creating the table
◆ getRenameSql()
string OracleSqlUtilBase::OracleColumn::getRenameSql |
( |
AbstractTable | t, |
|
|
string | new_name ) |
returns a string that can be used to rename the column
- Example:
string str = col.getRenameSql(t, "new_name");
- Parameters
-
t | the AbstractTable object to modify |
new_name | the new name for the column |
- Returns
- a string that can be used to rename the column