public class SqlResourceFactoryImpl extends Object implements Factory.SqlResourceFactory
sqlresources.dir
on
first request. Use reloadSqlResource(String)
to refresh with the latest definition.Constructor and Description |
---|
SqlResourceFactoryImpl() |
Modifier and Type | Method and Description |
---|---|
SqlResource |
getSqlResource(String resName) |
InputStream |
getSqlResourceDefinition(String resName) |
List<String> |
getSqlResourceNames()
Returns available SQL Resource names using the configured directory.
|
String |
getSqlResourcesDir()
Returns the configured resources directory name.
|
boolean |
isSqlResourceLoaded(String name)
Returns true if the resource has been loaded, i.e.
|
void |
reloadSqlResource(String resName)
Reloads definition using the current file.
|
public SqlResource getSqlResource(String resName) throws Factory.SqlResourceFactoryException, SqlResourceException
getSqlResource
in interface Factory.SqlResourceFactory
Factory.SqlResourceFactoryException
SqlResourceException
public InputStream getSqlResourceDefinition(String resName) throws Factory.SqlResourceFactoryException
getSqlResourceDefinition
in interface Factory.SqlResourceFactory
Factory.SqlResourceFactoryException
public List<String> getSqlResourceNames() throws Factory.SqlResourceFactoryException
getSqlResourceNames
in interface Factory.SqlResourceFactory
Factory.SqlResourceFactoryException
- if the provided directory does not existpublic String getSqlResourcesDir()
getSqlResourcesDir
in interface Factory.SqlResourceFactory
public boolean isSqlResourceLoaded(String name)
public void reloadSqlResource(String resName) throws Factory.SqlResourceFactoryException, SqlResourceException
reloadSqlResource
in interface Factory.SqlResourceFactory
Factory.SqlResourceFactoryException
SqlResourceException
Copyright © 2011-2018 restSQL Project Contributors