org.eclipse.datatools.connectivity.db.generic
Class GenericDBPropertiesPersistenceHook

java.lang.Object
  extended byorg.eclipse.datatools.connectivity.PropertiesPersistenceHook
      extended byorg.eclipse.datatools.connectivity.db.generic.GenericDBPropertiesPersistenceHook
All Implemented Interfaces:
IPropertiesPersistenceHook

public class GenericDBPropertiesPersistenceHook
extends PropertiesPersistenceHook
implements IPropertiesPersistenceHook

Copyright (c) 2006 Sybase, Inc. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html Contributors: rcernich - initial API and implementation


Constructor Summary
GenericDBPropertiesPersistenceHook()
           
 
Method Summary
 boolean arePropertiesComplete(java.util.Properties props)
          Allows the framework to determine whether or not a connection dialog needs to be displayed prior to opening a connection to the server (e.g.
 java.lang.String getConnectionPropertiesPageID()
          Returns the ID of the property page used to collect the information required to make the property set complete.
 java.util.Properties getPersitentProperties(java.util.Properties props)
          Returns the property set that should be persisted by the framework.
 
Methods inherited from class org.eclipse.datatools.connectivity.PropertiesPersistenceHook
populateTransientProperties
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.datatools.connectivity.IPropertiesPersistenceHook
populateTransientProperties
 

Constructor Detail

GenericDBPropertiesPersistenceHook

public GenericDBPropertiesPersistenceHook()
Method Detail

arePropertiesComplete

public boolean arePropertiesComplete(java.util.Properties props)
Description copied from interface: IPropertiesPersistenceHook
Allows the framework to determine whether or not a connection dialog needs to be displayed prior to opening a connection to the server (e.g. authentication information is missing). This call is not intended to verify that the information will allow for a successful connection, just that the information is complete enough to make an attempt.

Specified by:
arePropertiesComplete in interface IPropertiesPersistenceHook
Overrides:
arePropertiesComplete in class PropertiesPersistenceHook

getPersitentProperties

public java.util.Properties getPersitentProperties(java.util.Properties props)
Description copied from interface: IPropertiesPersistenceHook
Returns the property set that should be persisted by the framework. This allows extensions to prevent certain properties from being persisted by the framework (e.g. authentication information, derived properties, etc.). This method is invoked by the framework just prior to the properties being persisted.

Specified by:
getPersitentProperties in interface IPropertiesPersistenceHook
Overrides:
getPersitentProperties in class PropertiesPersistenceHook

getConnectionPropertiesPageID

public java.lang.String getConnectionPropertiesPageID()
Description copied from interface: IPropertiesPersistenceHook
Returns the ID of the property page used to collect the information required to make the property set complete.

Specified by:
getConnectionPropertiesPageID in interface IPropertiesPersistenceHook
Overrides:
getConnectionPropertiesPageID in class PropertiesPersistenceHook


Copyright © 2007 Actuate, IBM Corporation, Sybase, Inc. and others. All rights reserved.