db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Fischer <fisc...@seitenbau.net>
Subject RE: Query a blob field + PK Field
Date Wed, 01 Jun 2005 16:49:04 GMT


most databases do not allow to use a blob field in a where clause.
Probably Torque also does not support it, but you can check it by putting
it into a criteria and see what happens. But even then, you can always use
Criteria.CUSTOM if you know how the SQL should look like.


"Ferruh Zamangoer" <ferruh.zamangoer@gmx.de> schrieb am 01.06.2005

> Hi,
> we are developing a legal p2p-filesharing system in JXTA combined with
> services and additionally we want to use a persistence layer. Our web
> services are running on a tomcat server. Before our p2p clients can
> any data they must verify on a Trusted Third Party(TTP) our web services
> the content they want to exchange is legal. Our web service have to
access a
> centralized database where we have for example two tables. One
> List) holds the contents which are registered as sharable and a another
> table(Black List) contains the contents which are registered as not
> sharable. In these two tables the primary key is a blob field.
> My question is it possible to query in these fields. What I mean is that
> clients sends a byte[] and what the service had to do is to query these
> tables to see if it match to the primary key fields in theses two tables.
> Regards
> Ferruh

To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org

View raw message