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.SqlResourceFactoryFactory.SqlResourceFactoryExceptionSqlResourceExceptionpublic InputStream getSqlResourceDefinition(String resName) throws Factory.SqlResourceFactoryException
getSqlResourceDefinition in interface Factory.SqlResourceFactoryFactory.SqlResourceFactoryExceptionpublic List<String> getSqlResourceNames() throws Factory.SqlResourceFactoryException
getSqlResourceNames in interface Factory.SqlResourceFactoryFactory.SqlResourceFactoryException - if the provided directory does not existpublic String getSqlResourcesDir()
getSqlResourcesDir in interface Factory.SqlResourceFactorypublic boolean isSqlResourceLoaded(String name)
public void reloadSqlResource(String resName) throws Factory.SqlResourceFactoryException, SqlResourceException
reloadSqlResource in interface Factory.SqlResourceFactoryFactory.SqlResourceFactoryExceptionSqlResourceExceptionCopyright © 2011-2018 restSQL Project Contributors