com.simba.dsi.core.utilities
Class PropertyUtilities

java.lang.Object
  extended by com.simba.dsi.core.utilities.PropertyUtilities

public class PropertyUtilities
extends java.lang.Object


Constructor Summary
PropertyUtilities()
           
 
Method Summary
static boolean hasCatalogSupport(IConnection connection)
          Check the properties to see if there is catalog support on the specified connection.
static boolean hasSavepointSupport(IConnection connection)
          Check the properties to see if there is savepoint support on the specified connection.
static boolean hasSchemaSupport(IConnection connection)
          Check the properties to see if there is schema support on the specified connection.
static boolean hasStoredFunctionsCallsSupport(IConnection connection)
          Checks the properties to see if there is stored functions using call syntax support on the specified connection.
static boolean hasStoredProcedureSupport(IConnection connection)
          Check the properties to see if there is stored procedure support on the specified connection.
static boolean isReadOnly(IConnection connection)
          Check the properties to see if the DSII is read-only.
static void setCatalogSupport(IConnection connection, boolean isEnabled)
          Set the properties to enable or disable catalog support on the specified connection.
static void setReadOnly(IConnection connection, boolean isReadOnly)
          Set the properties to enable or disable read/write support.
static void setSavepointSupport(IConnection connection, boolean isEnabled)
          Set the properties to enable or disable savepoint support on the specified connection.
static void setSchemaSupport(IConnection connection, boolean isEnabled)
          Set the properties to enable or disable schema support on the specified connection.
static void setStoredFunctionsCallsSupport(IConnection connection, boolean isEnabled)
          Set the properties to enable or disable stored functions using call syntax support on the specified connection.
static void setStoredProcedureSupport(IConnection connection, boolean isEnabled)
          Set the properties to enable or disable stored procedure support on the specified connection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyUtilities

public PropertyUtilities()
Method Detail

hasCatalogSupport

public static boolean hasCatalogSupport(IConnection connection)
Check the properties to see if there is catalog support on the specified connection. The properties involved are:

Parameters:
connection - The connection to check catalog support for.
Returns:
true if catalogs are supported; false otherwise.

hasSavepointSupport

public static boolean hasSavepointSupport(IConnection connection)
Check the properties to see if there is savepoint support on the specified connection. The properties involved are:

Parameters:
connection - The connection to check savepoint support for.
Returns:
true if savepoints are supported; false otherwise.

hasSchemaSupport

public static boolean hasSchemaSupport(IConnection connection)
Check the properties to see if there is schema support on the specified connection. The properties involved are:

Parameters:
connection - The connection to check schema support for.
Returns:
true if schemas are supported; false otherwise.

hasStoredFunctionsCallsSupport

public static boolean hasStoredFunctionsCallsSupport(IConnection connection)
Checks the properties to see if there is stored functions using call syntax support on the specified connection. The properties involved are:

Parameters:
connection - The connection to check stored functions using call syntax support for.
Returns:
true if stored functions using call syntax are supported; false otherwise.

hasStoredProcedureSupport

public static boolean hasStoredProcedureSupport(IConnection connection)
Check the properties to see if there is stored procedure support on the specified connection. The properties involved are:

Parameters:
connection - The connection to check stored procedure support for.
Returns:
true if stored procedures are supported; false otherwise.

isReadOnly

public static boolean isReadOnly(IConnection connection)
Check the properties to see if the DSII is read-only. The properties involved are:

Parameters:
connection - The connection to check for read-only.
Returns:
true if read-only; false otherwise.

setCatalogSupport

public static void setCatalogSupport(IConnection connection,
                                     boolean isEnabled)
                              throws com.simba.support.exceptions.ErrorException
Set the properties to enable or disable catalog support on the specified connection. The default for connections is catalogs are supported. The properties involved are:

Parameters:
connection - The connection to enable/disable catalog support for.
isEnabled - true to enable support; false otherwise.
Throws:
com.simba.support.exceptions.ErrorException - If there is an error changing support.

setReadOnly

public static void setReadOnly(IConnection connection,
                               boolean isReadOnly)
                        throws com.simba.support.exceptions.ErrorException
Set the properties to enable or disable read/write support. The default for connections is read-write. The properties involved are:

Parameters:
connection - The connection to enable/disable read/write support for.
isReadOnly - true to set to read-only; false otherwise.
Throws:
com.simba.support.exceptions.ErrorException - If there is an error changing support.

setSavepointSupport

public static void setSavepointSupport(IConnection connection,
                                       boolean isEnabled)
                                throws com.simba.support.exceptions.ErrorException
Set the properties to enable or disable savepoint support on the specified connection. The default for connections is savepoints are not supported. The properties involved are:

Parameters:
connection - The connection to enable/disable savepoint support for.
isEnabled - true to enable support; false otherwise.
Throws:
com.simba.support.exceptions.ErrorException - If there is an error changing support.

setSchemaSupport

public static void setSchemaSupport(IConnection connection,
                                    boolean isEnabled)
                             throws com.simba.support.exceptions.ErrorException
Set the properties to enable or disable schema support on the specified connection. The default for connections is schemas are supported. The properties involved are:

Parameters:
connection - The connection to enable/disable schema support for.
isEnabled - true to enable support; false otherwise.
Throws:
com.simba.support.exceptions.ErrorException - If there is an error changing support.

setStoredFunctionsCallsSupport

public static void setStoredFunctionsCallsSupport(IConnection connection,
                                                  boolean isEnabled)
                                           throws com.simba.support.exceptions.ErrorException
Set the properties to enable or disable stored functions using call syntax support on the specified connection. The default for connections is stored functions using call syntax are not supported. The properties involved are:

Parameters:
connection - The connection to enable/disable stored functions using call syntax support for.
isEnabled - true to enable support; false otherwise.
Throws:
com.simba.support.exceptions.ErrorException - If there is an error changing support.

setStoredProcedureSupport

public static void setStoredProcedureSupport(IConnection connection,
                                             boolean isEnabled)
                                      throws com.simba.support.exceptions.ErrorException
Set the properties to enable or disable stored procedure support on the specified connection. The default for connections is stored procedures are not supported. The properties involved are:

Parameters:
connection - The connection to enable/disable stored procedure support for.
isEnabled - true to enable support; false otherwise.
Throws:
com.simba.support.exceptions.ErrorException - If there is an error changing support.


Copyright © 2006-2014 Simba Technologies Incorporated. All Rights Reserved.