JSTableObject
Last updated
Last updated
The JSTableObject is a newly created JSTable, that can be altered - one can add new columns as well to it for example.
Type | Name | Summary |
---|---|---|
Creates a new column in this table. The name, type and length of the new column must be specified. For specifying the type of the column, use the JSColumn constants. The column is not actually created in the database until this table is synchronized with the database using the JSServer.synchronizeWithDB method.
The method returns a JSColumn instance that corresponds to the newly created column. If any error occurs and the column cannot be created, then the method returns null.
Parameters
Returns: JSColumnObject
Sample
Creates a new column in this table. The name, type and length of the new column must be specified. For specifying the type of the column, use the JSColumn constants. The column is not actually created in the database until this table is synchronized with the database using the JSServer.synchronizeWithDB method.
The method returns a JSColumn instance that corresponds to the newly created column. If any error occurs and the column cannot be created, then the method returns null.
Parameters
Returns: JSColumnObject
Sample
Creates a new column in this table. The name, type and length of the new column must be specified. For specifying the type of the column, use the JSColumn constants. The column is not actually created in the database until this table is synchronized with the database using the JSServer.synchronizeWithDB method.
The method returns a JSColumn instance that corresponds to the newly created column. If any error occurs and the column cannot be created, then the method returns null.
Parameters
Returns: JSColumnObject
Sample
Deletes the column with the specified name from this table. The column is not actually deleted from the database until this table is synchronized with the database using the JSServer.synchronizeWithDB method.
Parameters
String columnName ;
Returns: void
Sample
Returns a JSColumn for the named column (or column dataproviderID).
Parameters
String name The name of the column to return the value from.
Returns: JSColumn JSColumn column.
Sample
Returns an array containing the names of all table columns. If the table is in mem, then the internal rowid column name is not returned.
Returns: Array String array of column names.
Sample
Returns the table data source uri.
Returns: String String datasource uri.
Sample
Returns a quoted version of the table name, if necessary, as defined by the actual database used.
Returns: String String table name, quoted if needed.
Sample
Returns an array containing the names of the identifier (PK) column(s). Please note that if the table is in mem, then the internal rowid column name is also returned.
Returns: Array String array of row identifier column names.
Sample
Returns the table name as defined in the database.
Returns: String String table sql name.
Sample
Returns the Servoy server name.
Returns: String String server name.
Sample
Returns whether table was flagged as metadata table.
Returns: Boolean boolean is metadata
Sample
Creates a new column in this table.
Creates a new column in this table.
Creates a new column in this table.
void
Deletes the column with the specified name from this table.
Returns a JSColumn for the named column (or column dataproviderID).
Returns an array containing the names of all table columns.
Returns the table data source uri.
Returns a quoted version of the table name, if necessary, as defined by the actual database used.
Returns an array containing the names of the identifier (PK) column(s).
Returns the table name as defined in the database.
Returns the Servoy server name.
Returns whether table was flagged as metadata table.