Product Information > JADE Encyclopaedia of Classes – Volume 1 > Chapter 1 - System Classes > setPartitioned

setPartitioned

setPartitioned(onOff: Boolean) updating;

The setPartitioned method of the DbFile class changes the partitioned attribute of an empty database file (that is, a non‑instantiated database file), as shown in the following example.

begin
    beginTransaction;
    Customer.getDbFile.setPartitioned(true);
    commitTransaction;
end;

Converting a non‑partitioned file that contains objects to a partitioned format is accomplished using a file‑based reorganization operation initiated by the JADE Database Administration utility (jdbadmin) MakePartitioned action.

This method is not available on a Compact JADE node, where it would result in a 1068 - Feature not available exception.

An exception is raised if the database file is locked for reorganization, more than one class is mapped to the file, or the file contains objects.