public interface FbAttachment extends java.lang.AutoCloseable, ExceptionListenable
All methods defined in this interface and the direct descendants FbDatabase and FbService are
required to notify all SQLException thrown from the methods defined in this interface, and those exceptions
notified by all ExceptionListenable implementations created from them.
| Modifier and Type | Method and Description |
|---|---|
void |
attach()
Attach to the attachment type.
|
void |
close()
Detaches and closes the connection.
|
DatatypeCoder |
getDatatypeCoder() |
Encoding |
getEncoding() |
IEncodingFactory |
getEncodingFactory() |
int |
getHandle() |
GDSServerVersion |
getServerVersion() |
java.lang.Object |
getSynchronizationObject()
Get synchronization object.
|
boolean |
isAttached()
Current attachment status.
|
addExceptionListener, removeExceptionListenervoid attach()
throws java.sql.SQLException
java.sql.SQLExceptionvoid close()
throws java.sql.SQLException
close in interface java.lang.AutoCloseablejava.sql.SQLException - If not currently connected, or another problem occurred detaching.int getHandle()
GDSServerVersion getServerVersion()
boolean isAttached()
true if connected to the server and attached to a database or service, false
otherwise.java.lang.Object getSynchronizationObject()
null.IEncodingFactory getEncodingFactory()
IEncodingFactory for this connectionEncoding getEncoding()
IEncodingFactory.getDefaultEncoding() on the result of getEncodingFactory().DatatypeCoder getDatatypeCoder()
DatatypeCoder for this database implementation.Copyright © 2001-2021 Jaybird (Firebird JDBC/JCA) team. All rights reserved.