|
|
Browse by Tags
All Tags » ObjectContainer (RSS)
Showing page 1 of 2 (16 total posts)
-
大家好,小弟对db4o了解不是很深入。
最近实现一个Db4oConnection Pool, 使用LinkedList 循环链表存放一定数量的初始化ObjectContainer, 每次使用完后,set,delete才去commit; query就没有去commit; 操作完后,只是简单地把ObjectContainer 归还给LinkedList保管。
在web servlet request的Action中使用时,相邻的操作,使用的ObjectContainer都不会一样。
如: ...
-
ObjectSet<Pilot> set = db.query(Pilot.class);It's wrong while buiding above, why??
In tutorial docs ,
For JDK 5 there also is a generics shortcut, using the query method:
List <Pilot> pilots = db.query(Pilot.class);
List<Pilot>? why not ...
-
Hace un tiempo leí una discucion en la cual se recomendaba mantener siempre abierto el objectContainer hasta que la aplicación termine.
Mi pregunta es la misma... Cuando uno tiene una aplicacion cliente-servidor en la cual la aplicacion estará todo el día en funcionamiento... y no solo en un computador, a eso le sumamos el programa estará abierto ...
-
Please explain and correct if wrong.After ObjectContainer openend it is empty. When client executes #get(object) db4o first searches for this object in ObjectContainer and if there is no such one the search continues in database. Then object is retrieved in ObjectContainer.If it is right is there some way to look through content of ...
-
In C/S web-app I open ObjectServer and ObjectContainer's without using context listeners.I use Db4oUtil where ObjectServer is declared as static and ObjectContainer's are stored in ThreadLocal. In DAO layer ObjectContainer is called by method D4oUtil.getObjectContainer(). Thus server is created when the first client is autorized and ...
-
How to update the db4o configuration after ObjectContainer is opened?
We have the setup like Application server is using db4o database. When we create a new object type in the database, we have to configure the indexing, unique constraint, etc., information in the database.
We can't close object container and open it again as it will affect the ...
-
Ok, managed to solve this. A property in the stored class contained a raft of non-persistent objects (java.util.Date etc) and was not set to transient, causing the exception.
-
Hi
I'm facing a problem where an object is sporadically not storable. Occasionally, I get this stack trace when calling ObjectContainer.set:
com.db4o.ext.ObjectNotStorableException: java.lang.Object@1d7089e at com.db4o.internal.ClassMetadata.forObject(Unknown Source) at ...
-
Hi
I need to reinstate a transient field from Child.objectOnActivate with a property from Parent as parameter. Something like this:
public class Child extends Parent {
private transient StrategyEnabler field;
public Child(Set<String> content) { super(content); field = new ...
-
Hi dlouwers,
This looks to be a very efficient way to solve to problem. The 'Client' property now will be available to all subsequent methods with in the factory class.
Before implementing the factory class the technique to open the database was:public void ProcessItem(...){ this._path = ''File-Name''; IObjectContainer db = ...
1
|
|
|