|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.core.runtime.Plugin
org.eclipse.datatools.sqltools.data.internal.core.DataCorePlugin
public class DataCorePlugin
The main plugin class to be used in the desktop.
Field Summary | |
---|---|
static java.lang.String |
ID
|
static int |
Types_SQLXML
|
Fields inherited from class org.eclipse.core.runtime.Plugin |
---|
PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME |
Constructor Summary | |
---|---|
DataCorePlugin()
The constructor. |
Method Summary | |
---|---|
static java.lang.String |
doubleStringDelim(java.lang.String s,
java.lang.String delim)
|
static DataCorePlugin |
getDefault()
Returns the shared instance. |
static java.lang.String |
getQualifiedTableName(Table table)
|
static java.lang.String |
getQualifiedUDTName(UserDefinedType udt)
|
java.util.ResourceBundle |
getResourceBundle()
Returns the plugin's resource bundle, |
static java.lang.String |
getResourceString(java.lang.String key)
Returns the string from the plugin's resource bundle, or 'key' if not found. |
IColumnDataAccessor |
newColumnDataAccessor(Column sqlCol)
|
static java.lang.String |
quoteIdentifier(java.sql.Connection conn,
java.lang.String s)
Gets the identifier and add quote string if neccessary Note: This is a work around solution for quoteIdentifier(Database, String) because the databaseDefinition.getIdentifierQuoteString() does not return the correct identifier quote string. |
static java.lang.String |
quoteIdentifier(Database db,
java.lang.String s)
|
void |
start(org.osgi.framework.BundleContext context)
This method is called upon plug-in activation |
void |
stop(org.osgi.framework.BundleContext context)
This method is called when the plug-in is stopped |
void |
writeLog(int severity,
int code,
java.lang.String message,
java.lang.Throwable exception)
Method writeLog. |
Methods inherited from class org.eclipse.core.runtime.Plugin |
---|
find, find, getBundle, getDescriptor, getLog, getPluginPreferences, getStateLocation, internalInitializeDefaultPluginPreferences, isDebugging, openStream, openStream, savePluginPreferences, setDebugging, shutdown, startup, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ID
public static final int Types_SQLXML
Constructor Detail |
---|
public DataCorePlugin()
Method Detail |
---|
public void start(org.osgi.framework.BundleContext context) throws java.lang.Exception
start
in interface org.osgi.framework.BundleActivator
start
in class org.eclipse.core.runtime.Plugin
java.lang.Exception
public void stop(org.osgi.framework.BundleContext context) throws java.lang.Exception
stop
in interface org.osgi.framework.BundleActivator
stop
in class org.eclipse.core.runtime.Plugin
java.lang.Exception
public static DataCorePlugin getDefault()
public static java.lang.String getResourceString(java.lang.String key)
public java.util.ResourceBundle getResourceBundle()
public void writeLog(int severity, int code, java.lang.String message, java.lang.Throwable exception)
severity
- - the severity; one of IStatus.OK, IStatus.ERROR, IStatus.INFO, or IStatus.WARNINGcode
- - the plug-in-specific status code, or OKmessage
- - a human-readable message, localized to the current localeexception-
- a low-level exception, or null if not applicablepublic static java.lang.String getQualifiedTableName(Table table)
public static java.lang.String getQualifiedUDTName(UserDefinedType udt)
public static java.lang.String quoteIdentifier(Database db, java.lang.String s)
public static java.lang.String quoteIdentifier(java.sql.Connection conn, java.lang.String s)
conn
- the JDBC connections
- the string to append any identifier quotes
public static java.lang.String doubleStringDelim(java.lang.String s, java.lang.String delim)
public IColumnDataAccessor newColumnDataAccessor(Column sqlCol) throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |