diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2008-08-19 08:08:00 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2008-08-19 08:08:00 +0000 |
commit | 936501d97543e21b03cf496f0300e4ec4440184e (patch) | |
tree | 798880ef7a0ff0ab32037126f4037743629d677d /connectivity/com | |
parent | INTEGRATION: CWS dba31a (1.3.32); FILE MERGED (diff) | |
download | core-936501d97543e21b03cf496f0300e4ec4440184e.tar.gz core-936501d97543e21b03cf496f0300e4ec4440184e.zip |
INTEGRATION: CWS dba31a (1.8.32); FILE MERGED
2008/06/05 12:11:05 oj 1.8.32.1: #i75164# remove dep from unoil
Diffstat (limited to 'connectivity/com')
-rw-r--r-- | connectivity/com/sun/star/sdbcx/comp/hsqldb/NativeStorageAccess.java | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/connectivity/com/sun/star/sdbcx/comp/hsqldb/NativeStorageAccess.java b/connectivity/com/sun/star/sdbcx/comp/hsqldb/NativeStorageAccess.java index 583f8aace813..8ef539c91e78 100644 --- a/connectivity/com/sun/star/sdbcx/comp/hsqldb/NativeStorageAccess.java +++ b/connectivity/com/sun/star/sdbcx/comp/hsqldb/NativeStorageAccess.java @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: NativeStorageAccess.java,v $ - * $Revision: 1.8 $ + * $Revision: 1.9 $ * * This file is part of OpenOffice.org. * @@ -39,17 +39,23 @@ package com.sun.star.sdbcx.comp.hsqldb; * * @author oj93728 */ -import com.sun.star.embed.ElementModes; public class NativeStorageAccess { static { NativeLibraries.load(); } + public static final int READ = 1; + public static final int SEEKABLE = 2; + public static final int SEEKABLEREAD = 3; + public static final int WRITE = 4; + public static final int READWRITE = 7; + public static final int TRUNCATE = 8; + /** Creates a new instance of StorageAccess */ public NativeStorageAccess(String name,String _mode,Object key) throws java.io.IOException{ try { - int mode = ElementModes.SEEKABLEREAD; + int mode = NativeStorageAccess.SEEKABLEREAD; if ( _mode.equals("rw") ) - mode = ElementModes.READWRITE | ElementModes.SEEKABLE; + mode = NativeStorageAccess.READWRITE | NativeStorageAccess.SEEKABLE; openStream(name, (String)key, mode); } catch(Exception e){ |