You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to simp...@googlegroups.com
I noticed that with the Database API when you re-open a db existing tables and indexes are reloaded. (was using RSS directly before).
Is there a way to query the database to find the id based on the name used during the createTable/createIndex?
Thanks Alain
Dibyendu Majumdar
unread,
Sep 30, 2012, 3:14:45 AM9/30/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to simp...@googlegroups.com
Unfortunately no as currently the caller is required to maintain a
mapping from name to container id. The name isn't used other than the
initial creation of table and related objects.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to simp...@googlegroups.com
Taking a look at the code I was wondering if something like this would work:
public int getContainerId(String name) { StorageContainerInfo[] containers = getServer().getStorageManager().getActiveContainers();
for (StorageContainerInfo sc : containers) { if (sc.getName().equals(name)) { return sc.getContainerId(); } } return -1; //not found }
Alain
Dibyendu Majumdar
unread,
Sep 30, 2012, 9:07:51 AM9/30/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to simp...@googlegroups.com
That would indeed work - well spotted!
Alain
unread,
Sep 30, 2012, 3:49:58 PM9/30/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to simp...@googlegroups.com
One more question.
Any reason why in DatabaseFactory we have the following: public static Database getDatabase(Platform platform, Properties properties) { return new DatabaseImpl(properties); }
where the platform is not passed to the DatabaseImpl constructor that takes such an argument?
Alain
Dibyendu Majumdar
unread,
Oct 1, 2012, 6:38:55 AM10/1/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to simp...@googlegroups.com
Hi,
Looks like a bug. Do you need me to issue a fix?
Regards
Alain
unread,
Oct 1, 2012, 7:38:16 AM10/1/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to simp...@googlegroups.com
No, just fix it for the next release. Just something I noticed in trying to understand part of the code.