org.fcrepo.server.utilities
Class DerbyDDLConverter
java.lang.Object
org.fcrepo.server.utilities.DerbyDDLConverter
- All Implemented Interfaces:
- DDLConverter
public class DerbyDDLConverter
- extends Object
- implements DDLConverter
A DDLConverter that works with Derby.
The type-mapping from default-db-spec to Derby internal types is as follows:
db-spec Derby-type
------- ----------
int(11) INT [4-bytes]
varchar(x) VARCHAR(x)
varchar(x)-binary VARCHAR(x) FOR BIT DATA // binary setting ignored
smallint(6) SMALLINT [2-bytes]
bigint BIGINT [8-bytes]
text CLOB [default: 2GB]
- Author:
- Andrew Woods
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DerbyDDLConverter
public DerbyDDLConverter()
getDDL
public List<String> getDDL(TableSpec spec)
- Specified by:
getDDL in interface DDLConverter
Copyright © 2011 DuraSpace. All Rights Reserved.