ConnectionManager.diff
src/com/goldencode/p2j/persist/ConnectionManager.java 2021-05-15 19:40:36 +0000 | ||
---|---|---|
3537 | 3537 |
} |
3538 | 3538 |
|
3539 | 3539 |
// Register database with database manager if not local or have not been registered already. |
3540 |
// If the database is local but not "load_at_startup" it must be registered.
|
|
3540 |
// If the database is local but not "load_at_startup" it must be activated.
|
|
3541 | 3541 |
// If it was already registered false will be returned |
3542 |
local |= DatabaseManager.registerDatabase(database); |
|
3542 |
if (local) |
|
3543 |
{ |
|
3544 |
DatabaseManager.activate(database.getName()); |
|
3545 |
} |
|
3546 |
else |
|
3547 |
{ |
|
3548 |
local |= DatabaseManager.registerDatabase(database); |
|
3549 |
// we can safely assume that this is not a [_temp] database as temp-database cannot be |
|
3550 |
// connected or disconnected |
|
3551 |
local |= (database.isLocal() && DatabaseManager.registerDirtyDatabase(database)); |
|
3552 |
} |
|
3543 | 3553 |
|
3544 |
// we can safely assume that this is not a [_temp] database as temp-database cannot be |
|
3545 |
// connected or disconnected |
|
3546 |
local |= (database.isLocal() && DatabaseManager.registerDirtyDatabase(database)); |
|
3547 | 3554 |
|
3548 | 3555 |
if (local) |
3549 | 3556 |
{ |