Module eclipselink

Class SQLAnywherePlatform

  • All Implemented Interfaces:
    Serializable, Cloneable, org.eclipse.persistence.internal.core.databaseaccess.CorePlatform<org.eclipse.persistence.internal.helper.ConversionManager>, org.eclipse.persistence.internal.databaseaccess.Platform, DDLPlatform

    public class SQLAnywherePlatform
    extends SybasePlatform
    Provides SQL Anywhere specific behaviour.
    See Also:
    Serialized Form
    Author:
    Markus KARG (markus-karg@users.sourceforge.net)
    • Constructor Detail

      • SQLAnywherePlatform

        public SQLAnywherePlatform()
    • Method Detail

      • buildFieldTypes

        protected Hashtable<Class<?>,​org.eclipse.persistence.internal.databaseaccess.FieldTypeDefinition> buildFieldTypes()
        Description copied from class: org.eclipse.persistence.internal.databaseaccess.DatabasePlatform
        Return the mapping of class types to database types for the schema framework.
        Overrides:
        buildFieldTypes in class SybasePlatform
      • createCurrentDateOperator

        public static ExpressionOperator createCurrentDateOperator()
      • createCurrentTimeOperator

        public static ExpressionOperator createCurrentTimeOperator()
      • getInputProcedureToken

        public String getInputProcedureToken()
        Used for stored procedure creation: Prefix for INPUT parameters. Not required on most platforms.
      • getProcedureAsString

        public String getProcedureAsString()
        Description copied from interface: DDLPlatform
        Used for stored procedure defs.
      • getProcedureBeginString

        public String getProcedureBeginString()
        Description copied from interface: DDLPlatform
        Used for stored procedure defs.
      • getProcedureEndString

        public String getProcedureEndString()
        Description copied from interface: DDLPlatform
        Used for stored procedure defs.
      • getBatchBeginString

        public String getBatchBeginString()
        Used for batch writing and sp defs.
      • getBatchEndString

        public String getBatchEndString()
        Used for batch writing and sp defs.
      • getTempTableForTable

        public org.eclipse.persistence.internal.helper.DatabaseTable getTempTableForTable​(org.eclipse.persistence.internal.helper.DatabaseTable table)
        Used for sp calls.
        Overrides:
        getTempTableForTable in class SybasePlatform
        Parameters:
        table - is original table for which temp table is created.
        Returns:
        temporary table
      • isSQLAnywhere

        public boolean isSQLAnywhere()
        Specified by:
        isSQLAnywhere in interface org.eclipse.persistence.internal.databaseaccess.Platform
        Overrides:
        isSQLAnywhere in class org.eclipse.persistence.internal.databaseaccess.DatasourcePlatform
      • isSybase

        public boolean isSybase()
        Specified by:
        isSybase in interface org.eclipse.persistence.internal.databaseaccess.Platform
        Overrides:
        isSybase in class SybasePlatform
      • requiresProcedureBrackets

        public boolean requiresProcedureBrackets()
        Description copied from interface: DDLPlatform
        Used for stored procedure creation: Some platforms need brackets around arguments declaration even if no arguments exist. Those platform will override this and return true. All other platforms will omit the brackets in this case.
      • requiresTypeNameToRegisterOutputParameter

        public boolean requiresTypeNameToRegisterOutputParameter()
        INTERNAL: Indicates whether the version of CallableStatement.registerOutputParameter method that takes type name should be used.
        Overrides:
        requiresTypeNameToRegisterOutputParameter in class SybasePlatform
      • shouldPrintInputTokenAtStart

        public boolean shouldPrintInputTokenAtStart()
        Description copied from interface: DDLPlatform
        Used for stored procedure creation: Some platforms want to print prefix for INPUT arguments BEFORE NAME. If wanted, override and return true.
      • shouldPrintInOutputTokenBeforeType

        public boolean shouldPrintInOutputTokenBeforeType()
        Description copied from class: org.eclipse.persistence.internal.databaseaccess.DatabasePlatform
        This is required in the construction of the stored procedures with output parameters
        Overrides:
        shouldPrintInOutputTokenBeforeType in class SybasePlatform
      • shouldPrintOutputTokenAtStart

        public boolean shouldPrintOutputTokenAtStart()
        Description copied from interface: DDLPlatform
        This is required in the construction of the stored procedures with output parameters
      • shouldPrintStoredProcedureArgumentNameInCall

        public boolean shouldPrintStoredProcedureArgumentNameInCall()
        Description copied from class: org.eclipse.persistence.internal.databaseaccess.DatabasePlatform
        INTERNAL: Should the variable name of a stored procedure call be printed as part of the procedure call e.g. EXECUTE PROCEDURE MyStoredProc(myvariable = ?)
        Overrides:
        shouldPrintStoredProcedureArgumentNameInCall in class org.eclipse.persistence.internal.databaseaccess.DatabasePlatform
      • shouldPrintStoredProcedureVariablesAfterBeginString

        public boolean shouldPrintStoredProcedureVariablesAfterBeginString()
        Description copied from interface: DDLPlatform
        Used for stored procedure creation: Some platforms declare variables AFTER the procedure body's BEGIN string. These need to override and return true. All others will print the variable declaration BEFORE the body's BEGIN string.
      • supportsIdentity

        public boolean supportsIdentity()
        Description copied from class: SybasePlatform
        INTERNAL: Indicates whether the platform supports identity. Sybase does through IDENTITY field types. This method is to be used *ONLY* by sequencing classes
        Overrides:
        supportsIdentity in class SybasePlatform
      • supportsLocalTempTables

        public boolean supportsLocalTempTables()
        Description copied from class: org.eclipse.persistence.internal.databaseaccess.DatabasePlatform
        INTERNAL: Indicates whether the platform supports local temporary tables. "Local" means that several threads may create temporary tables with the same name. Local temporary table is created in the beginning of UpdateAllQuery execution and dropped in the end of it. Override this method if the platform supports local temporary tables.
        Overrides:
        supportsLocalTempTables in class org.eclipse.persistence.internal.databaseaccess.DatabasePlatform
      • supportsStoredFunctions

        public boolean supportsStoredFunctions()