CloneSet468


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
22201.000class_body_declarations[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
122179
E:/TSE/Projects-CloneDR/sql12/plugins/informix/src/net/sourceforge/squirrel_sql/plugins/informix/exception/InformixExceptionFormatter.java
222262
E:/TSE/Projects-CloneDR/sql12/plugins/oracle/src/net/sourceforge/squirrel_sql/plugins/oracle/exception/OracleExceptionFormatter.java
Next
Last
Clone Instance
1
Line Count
22
Source Line
179
Source File
E:/TSE/Projects-CloneDR/sql12/plugins/informix/src/net/sourceforge/squirrel_sql/plugins/informix/exception/InformixExceptionFormatter.java

// ISessionListener interface methods
/*     
 * Since we depend upon the Informix-specific IfmxConnection class, we need 
 * to keep a reference to the ISession we are associated with.  However,
 * this session could be closed, at which time we want to give up our 
 * reference so that it can be garbage collected.
 */
/**
 * @see net.sourceforge.squirrel_sql.client.session.event.ISessionListener#allSessionsClosed()
 */
public void allSessionsClosed() {
  _session.getApplication().getSessionManager().removeSessionListener(this );
  _session = null;
}

/**
 * @see net.sourceforge.squirrel_sql.client.session.event.ISessionListener#sessionClosed(net.sourceforge.squirrel_sql.client.session.event.SessionEvent)
 */
public void sessionClosed(SessionEvent evt) {
  if (evt.getSession() == _session) {
    _session.getApplication().getSessionManager().removeSessionListener(this );
    _session = null;
  }
}

/**
 * @see net.sourceforge.squirrel_sql.client.session.event.ISessionListener#sessionClosing(net.sourceforge.squirrel_sql.client.session.event.SessionEvent)
 */
public void sessionClosing(SessionEvent evt) {
  if (evt.getSession() == _session) {
    _session.getApplication().getSessionManager().removeSessionListener(this );
    _session = null;
  }
}


First
Previous
Clone Instance
2
Line Count
22
Source Line
262
Source File
E:/TSE/Projects-CloneDR/sql12/plugins/oracle/src/net/sourceforge/squirrel_sql/plugins/oracle/exception/OracleExceptionFormatter.java

// ISessionListener interface methods
/*     
 * Since we depend upon the Connection class associated with the ISession, 
 * we need to keep a reference to the ISession we are associated with.  
 * However, this session could be closed, at which time we want to give up 
 * our reference so that it can be garbage collected.
 */
/**
 * @see net.sourceforge.squirrel_sql.client.session.event.ISessionListener#allSessionsClosed()
 */
public void allSessionsClosed() {
  _session.getApplication().getSessionManager().removeSessionListener(this );
  _session = null;
}

/**
 * @see net.sourceforge.squirrel_sql.client.session.event.ISessionListener#sessionClosed(net.sourceforge.squirrel_sql.client.session.event.SessionEvent)
 */
public void sessionClosed(SessionEvent evt) {
  if (evt.getSession() == _session) {
    _session.getApplication().getSessionManager().removeSessionListener(this );
    _session = null;
  }
}

/**
 * @see net.sourceforge.squirrel_sql.client.session.event.ISessionListener#sessionClosing(net.sourceforge.squirrel_sql.client.session.event.SessionEvent)
 */
public void sessionClosing(SessionEvent evt) {
  if (evt.getSession() == _session) {
    _session.getApplication().getSessionManager().removeSessionListener(this );
    _session = null;
  }
}


Clone AbstractionParameter Count: 0Parameter Bindings

// ISessionListener interface methods
/*     
     * Since we depend upon the Connection class associated with the ISession, 
     * we need to keep a reference to the ISession we are associated with.  
     * However, this session could be closed, at which time we want to give up 
     * our reference so that it can be garbage collected.
     */
/*     
     * Since we depend upon the Informix-specific IfmxConnection class, we need 
     * to keep a reference to the ISession we are associated with.  However,
     * this session could be closed, at which time we want to give up our 
     * reference so that it can be garbage collected.
     */
/**
     * @see net.sourceforge.squirrel_sql.client.session.event.ISessionListener#allSessionsClosed()
     */
public void allSessionsClosed() {
  _session.getApplication().getSessionManager().removeSessionListener(this );
  _session = null;
}

/**
     * @see net.sourceforge.squirrel_sql.client.session.event.ISessionListener#sessionClosed(net.sourceforge.squirrel_sql.client.session.event.SessionEvent)
     */
public void sessionClosed(SessionEvent evt) {
  if (evt.getSession() == _session) {
    _session.getApplication().getSessionManager().removeSessionListener(this );
    _session = null;
  }
}

/**
     * @see net.sourceforge.squirrel_sql.client.session.event.ISessionListener#sessionClosing(net.sourceforge.squirrel_sql.client.session.event.SessionEvent)
     */
public void sessionClosing(SessionEvent evt) {
  if (evt.getSession() == _session) {
    _session.getApplication().getSessionManager().removeSessionListener(this );
    _session = null;
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None