[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Database usage for database objects



Is there a way to get access to the Database from "within" it without harcoding location and port number?
I.e. if you have an object stored in the db that needs to manage/interact with other objects in the same db can you get to the open database without doing something like:
db = ExternalDatabase.openDatabase("ozonedb:remote://localhost:3333");
 
I was looking for something maybe like
db = ExternalDatabase.openDatabase(); ( or perhaps LocalDatabase.openDatabase() )
Is there some way LocalDatabase can be used without specifying where it is?
 
Best regards,
Per