Constant used when setting or getting the sequence type of columns. |
|
Constant used when setting or getting the sequence type of columns. |
|
Constant used when setting or getting the type of columns. |
|
Constant used when setting or getting the flags of columns. |
|
Constant used when setting or getting the type of columns. |
|
Constant used when setting or getting the type of columns. |
|
Constant used when setting or getting the flags of columns. |
|
Constant for column information indicating unset values. |
|
Constant used when setting or getting the type of columns. |
|
Constant used when setting or getting the row identifier type of columns. |
|
Constant used when setting or getting the row identifier type of columns. |
|
Constant used when setting or getting the sequence type of columns. |
|
Constant used when setting or getting the flags of columns. |
|
Constant used when setting or getting the type of columns. |
|
Constant used when setting or getting the flags of columns. |
|
Constant used when setting or getting the sequence type of columns. |
|
|
Get the allow-null flag of the column. |
|
Get the data provider id for this column (which is the same as name if not explicitly defined otherwise). |
|
Get the default format of the column. |
|
Get the description property of the column. |
|
Get the foreign type of the column. |
|
Get the length of the column as reported by the JDBC driver. |
|
Get the name of the column as used by Servoy. |
|
Get the qualified name (including table name) of the column as known by the database. |
|
Returns a quoted version of the column name, if necessary, as defined by the actual database used. |
|
Get the row identifier type of the column. |
|
Get the name of the column as known by the database. |
|
Get the raw JDBC type of the column, which allows to check database specific types, like sting/byte column type variations. |
|
Get the scale of the column as reported by the JDBC driver. |
|
Get the sequence type of the column. |
|
Get the JSTable of this column. |
|
Get the title property of the column. |
|
Get the JDBC type of the column. |
|
Get the name JDBC type of the column. |
|
Check a flag of the column. |
|
|
Constant used when setting or getting the sequence type of columns. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var table = databaseManager.getTable('db:/example_data/orders')
var column = table.getColumn('customerid')
switch (column.getSequenceType())
{
case JSColumn.NONE:
// handle column with no sequence
break;
case JSColumn.UUID_GENERATOR:
// handle uuid generated column
break;
} |
|
|
|
|
Constant used when setting or getting the sequence type of columns. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var table = databaseManager.getTable('db:/example_data/orders')
var column = table.getColumn('customerid')
switch (column.getSequenceType())
{
case JSColumn.NONE:
// handle column with no sequence
break;
case JSColumn.UUID_GENERATOR:
// handle uuid generated column
break;
} |
|
|
|
|
Constant used when setting or getting the type of columns. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var table = databaseManager.getTable('db:/example_data/orders')
var column = table.getColumn('customerid')
switch (column.getType())
{
case JSColumn.TEXT:
// handle text column
break;
case JSColumn.NUMBER:
case JSColumn.INTEGER:
// handle numerical column
break;
} |
|
|
|
|
Constant used when setting or getting the flags of columns.
This flag identifies columns that are skipped in the sql. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var table = databaseManager.getTable('db:/example_data/orders')
var column = table.getColumn('customerid')
if (column.hasFlag(JSColumn.UUID_COLUMN))
{
// handle uuid column
} |
|
|
|
|
Constant used when setting or getting the type of columns. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var table = databaseManager.getTable('db:/example_data/orders')
var column = table.getColumn('customerid')
switch (column.getType())
{
case JSColumn.TEXT:
// handle text column
break;
case JSColumn.NUMBER:
case JSColumn.INTEGER:
// handle numerical column
break;
} |
|
|
|
|
Constant used when setting or getting the type of columns. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var table = databaseManager.getTable('db:/example_data/orders')
var column = table.getColumn('customerid')
switch (column.getType())
{
case JSColumn.TEXT:
// handle text column
break;
case JSColumn.NUMBER:
case JSColumn.INTEGER:
// handle numerical column
break;
} |
|
|
|
|
Constant used when setting or getting the flags of columns.
This flag identifies columns that are marked as a native type column (for example uniqueidentifier). |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var table = databaseManager.getTable('db:/example_data/orders')
var column = table.getColumn('customerid')
if (column.hasFlag(JSColumn.UUID_COLUMN))
{
// handle uuid column
} |
|
|
|
|
Constant for column information indicating unset values. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var table = databaseManager.getTable('db:/example_data/orders')
var column = table.getColumn('customerid')
switch (column.getSequenceType())
{
case JSColumn.NONE:
// handle column with no sequence
break;
case JSColumn.UUID_GENERATOR:
// handle uuid generated column
break;
} |
|
|
|
|
Constant used when setting or getting the type of columns. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var table = databaseManager.getTable('db:/example_data/orders')
var column = table.getColumn('customerid')
switch (column.getType())
{
case JSColumn.TEXT:
// handle text column
break;
case JSColumn.NUMBER:
case JSColumn.INTEGER:
// handle numerical column
break;
} |
|
|
|
|
Constant used when setting or getting the row identifier type of columns.
This value identifies columns that are defined as primary key in the database. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var table = databaseManager.getTable('db:/example_data/orders')
var column = table.getColumn('customerid')
switch (column.getRowIdentifierType())
{
case JSColumn.NONE:
// handle normal column
break;
case JSColumn.PK_COLUMN:
// handle database pk column
break;
case JSColumn.ROWID_COLUMN:
// handle developer defined pk column
break;
} |
|
|
|
|
Constant used when setting or getting the row identifier type of columns.
This value identifies columns that are defined as primary key by the developer (but not in the database). |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var table = databaseManager.getTable('db:/example_data/orders')
var column = table.getColumn('customerid')
switch (column.getRowIdentifierType())
{
case JSColumn.NONE:
// handle normal column
break;
case JSColumn.PK_COLUMN:
// handle database pk column
break;
case JSColumn.ROWID_COLUMN:
// handle developer defined pk column
break;
} |
|
|
|
|
Constant used when setting or getting the sequence type of columns. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var table = databaseManager.getTable('db:/example_data/orders')
var column = table.getColumn('customerid')
switch (column.getSequenceType())
{
case JSColumn.NONE:
// handle column with no sequence
break;
case JSColumn.UUID_GENERATOR:
// handle uuid generated column
break;
} |
|
|
|
|
Constant used when setting or getting the flags of columns.
This flag identifies columns that are marked as a tenant column. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var table = databaseManager.getTable('db:/example_data/orders')
var column = table.getColumn('customerid')
if (column.hasFlag(JSColumn.UUID_COLUMN))
{
// handle uuid column
} |
|
|
|
|
Constant used when setting or getting the type of columns. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var table = databaseManager.getTable('db:/example_data/orders')
var column = table.getColumn('customerid')
switch (column.getType())
{
case JSColumn.TEXT:
// handle text column
break;
case JSColumn.NUMBER:
case JSColumn.INTEGER:
// handle numerical column
break;
} |
|
|
|
|
Constant used when setting or getting the flags of columns.
This flag identifies columns whose values are treated as UUID. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var table = databaseManager.getTable('db:/example_data/orders')
var column = table.getColumn('customerid')
if (column.hasFlag(JSColumn.UUID_COLUMN))
{
// handle uuid column
} |
|
|
|
|
Constant used when setting or getting the sequence type of columns. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var table = databaseManager.getTable('db:/example_data/orders')
var column = table.getColumn('customerid')
switch (column.getSequenceType())
{
case JSColumn.NONE:
// handle column with no sequence
break;
case JSColumn.UUID_GENERATOR:
// handle uuid generated column
break;
} |
|
|
|
|
|
Get the allow-null flag of the column. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var table = databaseManager.getTable('db:/example_data/orders')
var column = table.getColumn('customerid')
if (!column.getAllowNull())
{
// column cannot be null
} |
|
|
|
|
Get the data provider id for this column (which is the same as name if not explicitly defined otherwise). |
|
|
Returns String String dataprovider id. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var table = databaseManager.getTable('db:/example_data/orders')
var column = table.getColumn('customerid')
var dataProviderId = column.getDataProviderID() |
|
|
|
|
Get the default format of the column. |
|
|
Returns String String column default format. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var table = databaseManager.getTable('db:/example_data/orders')
var column = table.getColumn('customerid')
var format = column.getDefaultFormat() |
|
|
|
|
Get the description property of the column. |
|
|
Returns String String column description. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var table = databaseManager.getTable('db:/example_data/orders')
var column = table.getColumn('customername')
var desc = column.getDescription() |
|
|
|
|
Get the foreign type of the column.
The foreign type can be defined design time as a foreign key reference to another table. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var table = databaseManager.getTable('db:/example_data/orders')
var column = table.getColumn('customerid')
var foreignType = column.getForeignType()
if (foreignType != null)
{
var fkTable = databaseManager.getTable('example_data', foreignType)
} |
|
|
|
|
Get the length of the column as reported by the JDBC driver. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var table = databaseManager.getTable('db:/example_data/orders')
var column = table.getColumn('customername')
if (column.getLength() < 10)
{
// handle short column
} |
|
|
|
|
Get the name of the column as used by Servoy. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var table = databaseManager.getTable('db:/example_data/orders')
var column = table.getColumn('customerid')
var colName = column.getName() |
|
|
|
|
Get the qualified name (including table name) of the column as known by the database.
The name is quoted, if necessary, as defined by the actual database used. |
|
|
Returns String String qualified column name. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var table = databaseManager.getTable('db:/example_data/orders')
var column = table.getColumn('customerid')
var qualifiedSqlName = column.getQualifiedName() |
|
|
|
|
Returns a quoted version of the column name, if necessary, as defined by the actual database used. |
|
|
Returns String column name, quoted if needed. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample //use with the raw SQL plugin:
//if the table name contains characters that are illegal in sql, the table name will be quoted
var jsTable = databaseManager.getTable('udm', 'campaigns')
var quotedTableName = jsTable.getQuotedSQLName()
var jsColumn = jsTable.getColumn('active')
var quotedColumnName = jsColumn.getQuotedSQLName()
plugins.rawSQL.executeSQL('udm', quotedTableName, 'select * from ' + quotedTableName + ' where ' + quotedColumnName + ' = ?', [1]) |
|
|
|
|
Get the row identifier type of the column.
The sequence type is one of:
- JSColumn.PK_COLUMN
- JSColumn.ROWID_COLUMN
- JSColumn.NONE |
|
|
Returns Number int row identifier type. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var table = databaseManager.getTable('db:/example_data/orders')
var column = table.getColumn('customerid')
switch (column.getRowIdentifierType())
{
case JSColumn.NONE:
// handle normal column
break;
case JSColumn.PK_COLUMN:
// handle database pk column
break;
case JSColumn.ROWID_COLUMN:
// handle developer defined pk column
break;
} |
|
|
|
|
Get the name of the column as known by the database. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var table = databaseManager.getTable('db:/example_data/orders')
var column = table.getColumn('customerid')
var sqlName = column.getSQLName() |
|
|
|
|
Get the raw JDBC type of the column, which allows to check database specific types, like sting/byte column type variations. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var table = databaseManager.getTable('db:/example_data/orders')
var column = table.getColumn('customerid')
var sqlType = column.getSQLType(); |
|
|
|
|
Get the scale of the column as reported by the JDBC driver. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var table = databaseManager.getTable('db:/example_data/orders')
var column = table.getColumn('customername')
var scale = column.getScale() |
|
|
|
|
Get the sequence type of the column.
The sequence type is one of:
- JSColumn.NONE
- JSColumn.SERVOY_SEQUENCE
- JSColumn.DATABASE_SEQUENCE
- JSColumn.DATABASE_IDENTITY
- JSColumn.UUID_GENERATOR; |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var table = databaseManager.getTable('db:/example_data/orders')
var column = table.getColumn('customerid')
switch (column.getSequenceType())
{
case JSColumn.NONE:
// handle column with no sequence
break;
case JSColumn.UUID_GENERATOR:
// handle uuid generated column
break;
} |
|
|
|
|
Get the JSTable of this column. |
|
|
Returns JSTable table The JSTable of this column. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
|
Get the title property of the column. If title is null will return column name. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var table = databaseManager.getTable('db:/example_data/orders')
var column = table.getColumn('customername')
var title = column.getTitle() |
|
|
|
|
Get the JDBC type of the column.
The type reported by the JDBC driver will be mapped to one of:
- JSColumn.DATETIME
- JSColumn.TEXT
- JSColumn.NUMBER
- JSColumn.INTEGER
- JSColumn.MEDIA |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var table = databaseManager.getTable('db:/example_data/orders')
var column = table.getColumn('customerid')
switch (column.getType())
{
case JSColumn.TEXT:
// handle text column
break;
case JSColumn.NUMBER:
case JSColumn.INTEGER:
// handle numerical column
break;
} |
|
|
|
|
Get the name JDBC type of the column.
The same mapping as defined in JSColumn.getType() is applied. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var table = databaseManager.getTable('db:/example_data/orders')
var column = table.getColumn('customerid')
var typeName = column.getTypeAsString() |
|
|
|
|
Check a flag of the column.
The flags are a bit pattern consisting of 1 or more of the following bits:
- JSColumn.UUID_COLUMN
- JSColumn.EXCLUDED_COLUMN
- JSColumn.TENANT_COLUMN
- JSColumn.NATIVE_COLUMN |
|
|
Returns Boolean boolean whether flag is set. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var table = databaseManager.getTable('db:/example_data/orders')
var column = table.getColumn('customerid')
if (column.hasFlag(JSColumn.UUID_COLUMN))
{
// handle uuid column
} |
|
|
|
|
|
|