1 21 22 package org.apache.derby.impl.io; 23 24 import org.apache.derby.io.StorageFile; 25 import org.apache.derby.iapi.services.info.JVMInfo; 26 27 import java.io.IOException ; 28 29 33 public class DirStorageFactory4 extends DirStorageFactory 34 { 35 36 private static final boolean rwsOK = JVMInfo.JDK_ID >= JVMInfo.J2SE_142; 37 38 41 public DirStorageFactory4() 42 { 43 super(); 44 } 45 46 54 StorageFile newPersistentFile( String path) 55 { 56 if( path == null) 57 return new DirFile4(dataDirectory, rwsOK); 58 return new DirFile4(dataDirectory, path, rwsOK); 59 } 60 61 70 StorageFile newPersistentFile( String directoryName, String fileName) 71 { 72 return new DirFile4( separatedDataDirectory + directoryName, fileName, rwsOK); 73 } 74 75 84 StorageFile newPersistentFile( StorageFile directoryName, String fileName) 85 { 86 return new DirFile4( (DirFile) directoryName, fileName, rwsOK); 87 } 88 89 90 98 public boolean supportsRws() 99 { 100 return rwsOK; 101 } 102 103 104 } 105 | Popular Tags |