public final class SQLServerHelper
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private static java.lang.String |
P2J2CLR
The name of the assembly that maps SQL functions and datatypes to CLR.
|
| Modifier | Constructor and Description |
|---|---|
private |
SQLServerHelper()
Private constructor.
|
| Modifier and Type | Method and Description |
|---|---|
private static java.util.List<java.lang.String> |
getFunctionAliases(Database database,
java.util.List<java.lang.reflect.Method> funcs,
boolean overload,
boolean register)
Get function aliases for the given list of static methods, optionally making the alias names
unique by appending parameter type decorations.
|
static java.util.List<java.lang.String> |
getPrepareStatements(Database database)
Get a list of database prepare DDL statements.
|
private static char |
getSqlDecoration(java.lang.String javaType)
Returns the parameter decoration for fixing the function overloading constraint in
MS SQL Server.
|
private static java.lang.String |
getSqlType(java.lang.String javaType)
Returns the MS SQL Server datatype associated with the java type.
|
static void |
preparePermanentDatabase(Database database)
Register the function aliases with the HQL preprocessor, for the permanent database.
|
private static final java.lang.String P2J2CLR
private SQLServerHelper()
public static void preparePermanentDatabase(Database database)
database - Database to prepare.public static java.util.List<java.lang.String> getPrepareStatements(Database database)
database - Database to prepare.private static java.util.List<java.lang.String> getFunctionAliases(Database database, java.util.List<java.lang.reflect.Method> funcs, boolean overload, boolean register)
database - Database in which to create aliases.funcs - List of static methods for which function aliases should be created.overload - true to create unique function names for each overloaded method.register - true if the function should be registered with
the FQLPreprocessor.private static java.lang.String getSqlType(java.lang.String javaType)
javaType - The java type (full name).javaType.
If javaType is invalid, null is returned.private static char getSqlDecoration(java.lang.String javaType)
javaType - The java type (full name).