logo       

Sponsor
FREE Network Mapping Tool for Microsoft® Office Visio® Professional 2007
Don't map your network by hand - let LANsurveyor Exx press for Microsoft Visio Professional 2007 automatically create network diagrams for you!

Custom types / "long" datatypes in custom functions: msg#00279

apache.db.derby.devel

Subject: Custom types / "long" datatypes in custom functions

I released a spatial datablade for derby a few weeks ago. There were
some fundamental problems that I mentioned when I first messaged this
list.

1. Custom Types
It would be a great to be able to store arbitrary java Objects in
the database - and Derby would handle the
serialization/deserialization. I was thinking something like:

CREATE TYPE Geometry AS "com.vividsolutions.jts.geom.Geometry";
then being able to do things like:
CREATE TABLE mytable (g Geometry, description VARCHAR(100));

Alternately, just being able to "tag" a BLOB with a type name would
enough. Something like:
CREATE TYPE Geometry [ALIAS OF BLOB];

2. Functions
Currently, functions cannot send/return non-fixed-length data
types. It would be great to be able to either (1) send custom types
to custom functions OR (2) send BLOB-like things to custom functions.
(oh, are BLOBs inefficient to use?)



Currently, I use a "VARCHAR(1000000)" as my Geometry type, and stick a
base-64 encoding of the binary version of the Geometry inside. This
is pretty messy and inefficient. Not to mention the fact that you can
run spatial functions on text like 'how now brown cow'.

Is there anything planned to address issues of these types?


dave
ps. more information on the Spatial DB in a Box here (see
"Derby/Cloudbase bindings"):
http://docs.codehaus.org/display/GEOS/SpatialDBBox



<Prev in Thread] Current Thread [Next in Thread>
Sponsor
FREE Network Mapping Tool for Microsoft® OfficeVisio Professional 2007
Don't map your network by hand - let LANsurveyor Express for Microsoft Visio Professional 2007
automatically create network diagrams for you!
Google Custom Search

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation

Home | sitemap | advertise | OSDir is an inevitable website. super tiny logo