java.lang.Object | ||
↳ | com.opensymphony.module.propertyset.AbstractPropertySet | |
↳ | com.opensymphony.module.propertyset.database.JDBCPropertySet |
This is an implementation of a property set manager for JDBC. It relies on one table, called "os_propertyset" that has four columns: "type" (integer), "keyValue" (string), "globalKey" (string), and "value" (string). This is not likely to be enough for people who store BLOBS as properties. Of course, those people need to get a life.
For Postgres(?):
CREATE TABLE OS_PROPERTYENTRY (GLOBAL_KEY varchar(255), ITEM_KEY varchar(255), ITEM_TYPE smallint, STRING_VALUE varchar(255), DATE_VALUE timestamp, DATA_VALUE oid, FLOAT_VALUE float8, NUMBER_VALUE numeric, primary key (GLOBAL_KEY, ITEM_KEY));
For Oracle (Thanks to Michael G. Slack!):
CREATE TABLE OS_PROPERTYENTRY (GLOBAL_KEY varchar(255), ITEM_KEY varchar(255), ITEM_TYPE smallint, STRING_VALUE varchar(255), DATE_VALUE date, DATA_VALUE long raw, FLOAT_VALUE float, NUMBER_VALUE numeric, primary key (GLOBAL_KEY, ITEM_KEY));
Other databases may require small tweaks to the table creation scripts!
Required Args
Required Configuration
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.opensymphony.module.propertyset.PropertySet
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
closeConnWhenDone | |||||||||||
colData | |||||||||||
colDate | |||||||||||
colFloat | |||||||||||
colGlobalKey | |||||||||||
colItemKey | |||||||||||
colItemType | |||||||||||
colNumber | |||||||||||
colString | |||||||||||
ds | |||||||||||
globalKey | |||||||||||
tableName |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.opensymphony.module.propertyset.AbstractPropertySet
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns true.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.opensymphony.module.propertyset.AbstractPropertySet
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
com.opensymphony.module.propertyset.PropertySet
|
Returns true.