|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jcoderz.commons.connector.file.FsManagedConnectionImpl
public class FsManagedConnectionImpl
This Managed Connection is the factory for a File System Connction.
The File System Connector is not transactional, so the methods
getLocalTransaction() and getXAResource() always
throw the NotSupportedException.
| Constructor Summary | |
|---|---|
FsManagedConnectionImpl(ManagedConnectionFactory mcf,
UserPassword up,
ConnectionRequestInfo cri)
Constructor. |
|
| Method Summary | |
|---|---|
void |
addConnectionEventListener(ConnectionEventListener cel)
|
void |
associateConnection(Object connection)
|
void |
cleanup()
|
void |
destroy()
|
boolean |
equals(Object obj)
Indicates whether some other object is "equal to" this one. |
Object |
getConnection(Subject subject,
ConnectionRequestInfo cri)
|
LocalTransaction |
getLocalTransaction()
Always throws the NotSupportedException. |
PrintWriter |
getLogWriter()
|
ManagedConnectionMetaData |
getMetaData()
|
XAResource |
getXAResource()
Always throws the NotSupportedException. |
int |
hashCode()
|
void |
notifyConnectionClosed(Object source)
Notifies the listener, that the connection handle has been closed. |
void |
notifyConnectionDissociated(Object source)
Notifies the listener, that the connection handle has been dissociated from the underlying managed connection. |
void |
notifyConnectionErrorOccurred(Object source,
Exception e)
Notifies the listener, that an error has been occured. |
void |
removeConnectionEventListener(ConnectionEventListener cel)
|
void |
setLogWriter(PrintWriter pw)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FsManagedConnectionImpl(ManagedConnectionFactory mcf,
UserPassword up,
ConnectionRequestInfo cri)
mcf - The underlying ManagedConnectionFactoryup - The UserPassword to be used.cri - Connection Request Info| Method Detail |
|---|
public Object getConnection(Subject subject,
ConnectionRequestInfo cri)
throws ResourceException
getConnection in interface ManagedConnectionResourceException
public void destroy()
throws ResourceException
destroy in interface ManagedConnectionResourceException
public void cleanup()
throws ResourceException
cleanup in interface ManagedConnectionResourceException
public void associateConnection(Object connection)
throws ResourceException
associateConnection in interface ManagedConnectionResourceExceptionpublic void addConnectionEventListener(ConnectionEventListener cel)
addConnectionEventListener in interface ManagedConnectionpublic void removeConnectionEventListener(ConnectionEventListener cel)
removeConnectionEventListener in interface ManagedConnection
public XAResource getXAResource()
throws ResourceException
NotSupportedException.
The File System Connector does not support any XA Transaction.
getXAResource in interface ManagedConnectionResourceException - Always thrown.ManagedConnection.getXAResource()
public LocalTransaction getLocalTransaction()
throws ResourceException
NotSupportedException.
The File System Connector does not support any Local Transaction.
getLocalTransaction in interface ManagedConnectionResourceException - Always thrown.ManagedConnection.getLocalTransaction()
public ManagedConnectionMetaData getMetaData()
throws ResourceException
getMetaData in interface ManagedConnectionResourceException
public void setLogWriter(PrintWriter pw)
throws ResourceException
setLogWriter in interface ManagedConnectionResourceException
public PrintWriter getLogWriter()
throws ResourceException
getLogWriter in interface ManagedConnectionResourceExceptionpublic void notifyConnectionClosed(Object source)
notifyConnectionClosed in interface ConnectionNotificationListenersource - The object that sends this notification.
public void notifyConnectionErrorOccurred(Object source,
Exception e)
notifyConnectionErrorOccurred in interface ConnectionNotificationListenersource - The object that sends this notification.e - The exception caused this notification.public void notifyConnectionDissociated(Object source)
notifyConnectionDissociated in interface ConnectionNotificationListenersource - The object that sends this notification.public String toString()
toString in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectobj - the object to compare to.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||