|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.orbeon.oxf.resources.ResourceManagerBase
org.orbeon.oxf.resources.DBResourceManagerImpl
The database resource manager is able to load resource from a relational database. It can be initialized frm either a JDBC URL or from a datasource.
DataSourceResourceManagerImpl
Nested Class Summary |
Nested classes inherited from class org.orbeon.oxf.resources.ResourceManagerBase |
org.orbeon.oxf.resources.ResourceManagerBase.ResourceManagerXMLReader |
Constructor Summary | |
DBResourceManagerImpl(Map props,
Connection connection)
|
Method Summary | |
boolean |
canWrite()
Indicates if the resource manager implementation suports write operations |
protected void |
closeConnection(Connection connection)
|
protected Connection |
getConnection()
|
Reader |
getContentAsReader(String key)
Returns a character reader from the resource manager for the specified key. |
InputStream |
getContentAsStream(String key)
Returns a binary input stream for the specified key. |
OutputStream |
getOutputStream(String key)
Allows writing to the resource |
String |
getRealPath(String key)
Returns the path to the given resource on the file system. |
Writer |
getWriter(String key)
Allow writing to the resource |
long |
lastModifiedImpl(String key)
Gets the last modified timestamp for the specofoed resource |
int |
length(String key)
Returns the length of the file denoted by this abstract pathname. |
protected void |
setConnection(Connection connection)
|
Methods inherited from class org.orbeon.oxf.resources.ResourceManagerBase |
getContentAsDOM, getContentAsDOM4J, getContentAsSAX, getWriteContentHandler, getXMLReader, getXMLReader, invalidateLastModifiedCache, lastModified, writeDOM, writeDOM4J |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DBResourceManagerImpl(Map props, Connection connection)
Method Detail |
protected Connection getConnection() throws SQLException
SQLException
protected void setConnection(Connection connection)
protected void closeConnection(Connection connection) throws SQLException
SQLException
public Reader getContentAsReader(String key)
key
- A Resource Manager key
public InputStream getContentAsStream(String key)
key
- A Resource Manager key
public long lastModifiedImpl(String key)
key
- A Resource Manager key
public int length(String key)
public boolean canWrite()
public OutputStream getOutputStream(String key)
key
- A Resource Manager key
public Writer getWriter(String key)
key
- A Resource Manager key
public String getRealPath(String key)
ResourceManager
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |