Qore OracleSqlUtil Module Reference 1.6
|
represents an Oracle column More...
#include <OracleSqlUtil.qm.dox.h>
Public Member Methods | |
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 More... | |
string | getDdlName (string name) |
returns the column name with quoting in case the column name is a reserved word More... | |
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 More... | |
string | getNativeTypeString () |
returns the string describing the native type that can be used in SQL More... | |
string | getRenameSql (AbstractTable t, string new_name) |
returns a string that can be used to rename the column More... | |
Public Attributes | |
int | byte_size |
byte size of the column | |
bool | char_used |
the column uses character semantics | |
Private Member Methods | |
constructor () | |
empty constructor for subclasses | |
represents an Oracle column
list< string > OracleSqlUtil::OracleColumn::getAddColumnSql | ( | AbstractTable | t | ) |
returns a list of sql strings that can be used to add the column to an existing table
t | the AbstractTable object to modify |
|
virtual |
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
Implements SqlUtil::AbstractDdlObject.
list< string > OracleSqlUtil::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
The column names are assumed to be equal
t | the AbstractTable object to modify |
col | the new column definition |
opt | ignored |
string OracleSqlUtil::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
string OracleSqlUtil::OracleColumn::getRenameSql | ( | AbstractTable | t, |
string | new_name | ||
) |
returns a string that can be used to rename the column
t | the AbstractTable object to modify |
new_name | the new name for the column |