97 words

retrieve without key?

#1
2015-09-12 21:36

hi,

i'm completely new to objectdb. i do have apps running with db4o and perst.

i have a db which has only a single model object which would be an entity in objectdb. i'm managing the object in java. i'm loading data from an external source. i use keys from that source.

since i have a singleton i want to do something like "get * from entities" knowing there is only one.

i've looked at the api and can't see an option to retrieve an object w/o using a key.

can this be done?

duetto
duetto's picture
Joined on 2015-09-12
User Post #1
#2
2015-09-13 10:25

You can use a single result query.

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)
support
support's picture
Joined on 2010-05-03
User Post #2,307

Post Reply

Please read carefully the posting instructions - before posting to the ObjectDB website.

  • You may have to disable pop up blocking in order to use the toolbar (e.g. in Chrome).
  • Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell checker).
  • To insert formatted lines (e.g. Java code, stack trace) - select a style in the toolbar and then insert the text in the new created block.
  • Avoid overflow of published source code examples by breaking long lines.
  • You may mark in paragraph code words (e.g. class names) with the code style (can be applied by ctrl + D).
  • Long stack traces (> 50 lines) and complex source examples (> 100 lines) should be posted as attachments.
Attachments:
Maximum file size: 32 MB
Cancel