Chapter 15. Read-only per Table

Read-only attribute is one of the table (tableConfiguration object) attributes. The object tableConfiguration can be retrieved from <table_name>DO.java class by calling method: getConfigurationAdministration().getTableConfiguration(). If table is read-only, insert, update and delete operations are not allowed on the table, only selects are allowed. This attribute can be handled from <table_name>DO.java class as following:

Returns the current value of readOnly attribute.

If AllReadOnly is set on DatabaseManager or Database level to true, the value for readOnly on table level can not be overridden – in all other cases readOnly attribute behaves usually. If AllReadOnly is set to true and readOnly attribute of table is set to false, warning is written to log during table initialization. In runtime exception is thrown on attempt of writing to that table.