Package org.qdl_lang.vfs
Class VFSMySQLProvider
- java.lang.Object
- 
- org.qdl_lang.vfs.AbstractVFSFileProvider
- 
- org.qdl_lang.vfs.VFSMySQLProvider
 
 
- 
- All Implemented Interfaces:
- Serializable,- VFSFileProvider
 
 public class VFSMySQLProvider extends AbstractVFSFileProvider Created by Jeff Gaynor 
 on 2/28/20 at 7:17 AM- See Also:
- Serialized Form
 
- 
- 
Field SummaryFields Modifier and Type Field Description static intFILENAME_INDEXstatic intPATH_INDEX
 - 
Constructor SummaryConstructors Constructor Description VFSMySQLProvider(VFSDatabase db, String scheme, String mountPoint, boolean canRead, boolean canWrite)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontains(String path)Contains is a type of read.voiddelete(String path)A delete is a type of write.String[]dir(String path)booleaneasSupported()If this store supports extended attributes.VFSEntryget(String path, int type)Get the named item.protected String[]getPrimaryKey(String path)protected StringgetRealPath(String path)Resolves this against any current directory and returns the unqualified *relative* path against the store's root path.StringgetType()mostly this is so when information is being displayed to the user they can see the origin of the provider.booleanisDirectory(String path)booleanmkdir(String path)Make a set of directories.voidput(String path, VFSEntry entry)Add the using the path.voidrm(String path)Remove a file from the store.booleanrmdir(String path)Removes a directory if it is empty.- 
Methods inherited from class org.qdl_lang.vfs.AbstractVFSFileProvidercanRead, canWrite, checkPath, checkScheme, getCurrentDir, getFileInfo, getMountPoint, getScheme, getStoreRoot, isAbsolute, isChildOf, isScript, length, put, setCurrentDir, setMountPoint, setRead, setScheme, setWrite, unqualifyPath
 
- 
 
- 
- 
- 
Constructor Detail- 
VFSMySQLProviderpublic VFSMySQLProvider(VFSDatabase db, String scheme, String mountPoint, boolean canRead, boolean canWrite) 
 
- 
 - 
Method Detail- 
getRealPathprotected String getRealPath(String path) Description copied from class:AbstractVFSFileProviderResolves this against any current directory and returns the unqualified *relative* path against the store's root path.- Overrides:
- getRealPathin class- AbstractVFSFileProvider
- Returns:
 
 - 
getpublic VFSEntry get(String path, int type) throws Throwable Description copied from interface:VFSFileProviderGet the named item. Note that all of the names are qualified.- Specified by:
- getin interface- VFSFileProvider
- Overrides:
- getin class- AbstractVFSFileProvider
- Returns:
- Throws:
- Throwable
 
 - 
putpublic void put(String path, VFSEntry entry) throws Throwable Description copied from interface:VFSFileProviderAdd the using the path. If and entry exists there it will be over-written.- Specified by:
- putin interface- VFSFileProvider
- Overrides:
- putin class- AbstractVFSFileProvider
- Throws:
- Throwable
 
 - 
deletepublic void delete(String path) throws Throwable Description copied from interface:VFSFileProviderA delete is a type of write. If the store is not writeable, it cannot delete files.- Specified by:
- deletein interface- VFSFileProvider
- Overrides:
- deletein class- AbstractVFSFileProvider
- Throws:
- Throwable
 
 - 
containspublic boolean contains(String path) throws Throwable Description copied from interface:VFSFileProviderContains is a type of read. If the store is not readable, it cannot tell if it contains an entry.- Specified by:
- containsin interface- VFSFileProvider
- Overrides:
- containsin class- AbstractVFSFileProvider
- Returns:
- Throws:
- Throwable
 
 - 
dirpublic String[] dir(String path) throws Throwable - Specified by:
- dirin interface- VFSFileProvider
- Overrides:
- dirin class- AbstractVFSFileProvider
- Throws:
- Throwable
 
 - 
getTypepublic String getType() Description copied from interface:VFSFileProvidermostly this is so when information is being displayed to the user they can see the origin of the provider.- Returns:
 
 - 
mkdirpublic boolean mkdir(String path) Description copied from interface:VFSFileProviderMake a set of directories. This will make a given directory and any intermediate directories.- Specified by:
- mkdirin interface- VFSFileProvider
- Overrides:
- mkdirin class- AbstractVFSFileProvider
- Returns:
 
 - 
rmdirpublic boolean rmdir(String path) throws Throwable Removes a directory if it is empty. If it is not empty, it or the directory cannot be removed, it returns false.- Specified by:
- rmdirin interface- VFSFileProvider
- Overrides:
- rmdirin class- AbstractVFSFileProvider
- Parameters:
- path-
- Returns:
- Throws:
- Throwable
 
 - 
rmpublic void rm(String path) throws Throwable Description copied from interface:VFSFileProviderRemove a file from the store.- Specified by:
- rmin interface- VFSFileProvider
- Overrides:
- rmin class- AbstractVFSFileProvider
- Throws:
- Throwable
 
 - 
easSupportedpublic boolean easSupported() Description copied from interface:VFSFileProviderIf this store supports extended attributes.- Specified by:
- easSupportedin interface- VFSFileProvider
- Overrides:
- easSupportedin class- AbstractVFSFileProvider
- Returns:
 
 - 
isDirectorypublic boolean isDirectory(String path) - Specified by:
- isDirectoryin interface- VFSFileProvider
- Overrides:
- isDirectoryin class- AbstractVFSFileProvider
 
 
- 
 
-