Quoting Armin Waibel ([EMAIL PROTECTED]):
Should I just be setting up ObjectCacheEmptyImpl instead of
ObjectCacheDefaultImpl? Is that enough?
Yes, this should be enough.
(And it's recommended to use an database based sequence manager
implementation, like SequenceManagerNextValImpl
Hey all, the mail archives are not working properly atm, so I'm sorry for
the post, but I'm wondering how to handle grabbing the min/max in a query
without doing a comparator on the returned List?
Many Thanks!
Jacob Hookom
The first rule of intelligent
Report queries do not return materialized objects !
The iterator.next() returns an object array (Object[]) consisting of the
columns returned from your query.
In your code, it would be a one dimensional array containing the value of
the column that is mapped to Workstation.workstationType
Pretty much, yes...
Of course, you should be able to work out which class of object it is and
cast it appropriately (e.g. if workstationType column is a VARCHAR, cast to
string etc.)
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 24 March 2003 10:05
To: [EMAIL
All,
I'm playing with Ojb and the Kategorien/Artikel tutorial. I noticed that
when I ask 3 times the same request to the database, I have this error
below.
Why it is not possible to request more than3 time the same request to the
database? ???
java.sql.SQLException: Network error-
The Collection (DList which is changeable from the OJB.properties) DOES
contain a User object.
On Friday, March 21, 2003, at 12:38 PM, Edson Carlos Ericksson Richter
wrote:
Hi!
Table:
UsersTable (id, username, password) - mapped to User object with
same
properties.
where id is Primary Key,
I should add that a DList or Collection of some type is returned is
actually a good thing. Why? Take a scenario where you have a User
object and we're returning a User object from OJB. You use that object
all over your code. One day you decide to change the User object and
call is People.
All,
How can I activate the P6Spy in an IDE tool? I don't use the
build.properties file ans I would like top activate the P6Spy ..
Tx !
When we do a lot of inserts at once, it seems like OJB does a lot of
pre-querying. I think this is for deciding whether a new object
consistutes an UPDATE or an INSERT. For mass-loading of objects
(which we know will be new unique INSERTS). Is there anything we could do
to optimize the
Have you tried 'broker.store(article, ObjectModificationDefaultImpl.INSERT)'. The
optional second argument to store tells OJB whether it is an update or an insert.
-Original Message-
From: Yuji Shinozaki [mailto:[EMAIL PROTECTED]
Sent: Monday, March 24, 2003 8:54 AM
To: OJB Users List
I noticed a strange anomaly when using OJB with auto_increment fields in
MySQL. After doing a few inserts of new objects, the auto_increment field
has values in the hundreds. Is this behavior normal or is there something
going awry?
Any help is appreciated. Thanks!
Chuck
All,
All my primary Key are in the BigInt type.
In my repository.xml I have a 'BIGINT' jdbc-type, in my javaObjects I have
the type Long and all the ojb-requests are like it is a Varchar type.
SELECT A0.OBVID FROM Table WHERE A0.OBVID = '15'
Is There a trouble with the jdbc
On Mon, 24 Mar 2003, Lance Eason wrote:
Have you tried 'broker.store(article,
ObjectModificationDefaultImpl.INSERT)'. The optional second argument to
store tells OJB whether it is an update or an insert.
I knew there had to be something like this! It's on top of our list of
things to try.
Mail list archive seems not to be working properly, otherwise I'd point
you to previous postings
1. Use query.setStartAtIndex() and setEndAtIndex() to specify which
records you actually want to retrieve in the query.
2. Implement the functionality that translates these parameters into
I got an exception when running this piece of code, a search with a criteria
that produces
a SQL with a JOIN statement (on colegiate.name):
-
...
if(collegiateName != null collegiateName.trim().length() 0){
crit.addLike(upper(colegiate.name), % +
Hi Chuck,
Could you post a little more info.
Which OJB version?
Which sequence manager implementation do you use, or
post your repository_database.xml file (if you use one).
regards,
Armin
- Original Message -
From: Chuck Grohowski [EMAIL PROTECTED]
To: OJB Users List [EMAIL PROTECTED]
Rajeev,
Somebody else had asked the same question right before you did; here's the
answer I sent to the list at that time:
What I've done in this situation is to make an abstract Note class which
has all of the behavior of a Note. Then create two empty subclasses,
InvoiceNote and
Hi,
we use
sequence-manager
className=org.apache.ojb.broker.util.sequence.SequenceManagerHighLowImpl
attribute attribute-name=grabSize attribute-value=10/
/sequence-manager
in the connection-pool decription in repository_database.xml
Maybe this can help you.
Thomas,
Create a new cache class which extends ObjectCacheDefaultImpl; you just need
to override one method:
public void cache(Identity oid, Object obj) {
if (oid.getObjectsClass() /* should be cached */) {
super.cache(oid, obj);
}
}
It might make more sense
Hi,
Thanks for the advice but I am not sure the grab size attribute of the
sequence manager has something to do with the size of the results.
From my understanding it is only related to OJB default SequenceManager and
this attribute specify the gap between auto generated keys...
Can one of our
hi claudio,
please add more of the stack trace
jakob
Claudio Romano wrote:
i have a problem to update and/or save my class to the database. The
repository and the class seems to be ok. But everytime i save or update
my Class i become the following error:
Cannot convert class
I wrote that code :)
so, if your driver/db combo support cursoring, setting the begin and end index will
allow you to just display a window of results. The efficiency is based on the db, but
it's worked for us on SQL Server and Oracle so far.
OJB will execute the query, then use the cursor to
On Mon, 24 Mar 2003, Lance Eason wrote:
Have you tried 'broker.store(article,
ObjectModificationDefaultImpl.INSERT)'. The optional second argument to
store tells OJB whether it is an update or an insert.
Ah. Success! A load which one took an hour now takes 3 minutes. If that
proportion
Hi,
I am displaying some text on a web page using OJB.
This text has some html tags like I . It is getting converted into
html entity like lt;
Which is printing tag itself . How do I turn off this feature???
Thanks
ismail
I too get these errors quite a bit. It looks like you are using SQL
server, I am also. I am using the Opta2000 driver (commercial) from
inetsoftware.de, and right now I've found best results using their
pooled driver, turning off OJB's connection pool. I'm still trying to
unravel this mystery, it
Hi,
Is it possible to use two columns as 'fk-pointing-to-this-class' since inserts will
yield null in other column on current configuration. I cannot change the way it looks
like in the database. Is my only option to use the indirection table and have it in
the collection instead of having
I had that problem and so I downloaded and extracted the source as well and
it worked. I think I saw somewhere where it is suggested to do that.
Yes, the mailing list archive is broken. I do not who/when it is to be
fixed?
-Original Message-
From: Bonnie MacKellar [mailto:[EMAIL
Actually, I tried that, but ran into problems building the source.
Since there is very little documentation, I decided I was silly
for trying to build the source when there is a binary distribution.
OK, I will ask about building the source distribution then.
When I run build junit with the source
Did you read the sections under User Documentation?
I am new to OJB and working in a Windows 2000 environment but have it
working against an AS400 database. I also had 0.9.8 working against MySQL.
So from memory...
I downloaded and extracted both the source and binary archive files to the
same
Hi!
I think I've lost something in the way she moves...:
I get a list of objects using OQLQuery. In XML I've used proxy=dynamic.
Works fine. I show the objects in a JTable.
Fine. All working. Great. Fast, works as many time I test.
Now, user change a value in a cell (I don't allow user to
Hi!
Table:
UsersTable (id, username, password) - mapped to User object with same
properties.
where id is Primary Key, and username is a unique key.
Well, if I query select user from User where username = $1 and password =
$2, ODMG will always return a collection when I issue query.execute()?
Hi
I've read the deploy guide in the CVS. I've 1 question, does it mean
that I could only deploy 1 version ojb in the same weblogic instance?
Is there any way I could deploy multiple version of OJB (0.97, 0.99,
1.0rc1, etc) in the same weblogic instance if I'm hosting multiple
application
32 matches
Mail list logo