use of org.teiid.olingo.service.LocalClient in project teiid by teiid.
the class ODataFilter method registerVDBListener.
protected void registerVDBListener(Client client, Connection conn) {
if (!this.listenerRegistered) {
synchronized (this) {
if (!this.listenerRegistered) {
if (client instanceof LocalClient) {
try {
ConnectionImpl connection = (ConnectionImpl) conn;
LocalServerConnection lsc = (LocalServerConnection) connection.getServerConnection();
lsc.addListener(this);
this.listenerRegistered = true;
} catch (SQLException e) {
LogManager.logWarning(LogConstants.CTX_ODATA, ODataPlugin.Util.gs(ODataPlugin.Event.TEIID16014));
}
}
}
}
}
}
Aggregations