| Modifier and Type | Field and Description |
|---|---|
| protected boolean | |
| protected transient boolean |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | afterTranslateCustomQuery(List<E> updatedParameters, List<DatasourceCall.
INTERNAL: Set the data passed through setCustomSQLArgumentType and useCustomSQLCursorOutputAsResultSet methods. |
| protected DatabaseField | afterTranslateCustomQueryUpdateParameter(DatabaseField field, int index, DatasourceCall.
INTERNAL: Set the data passed through setCustomSQLArgumentType and useCustomSQLCursorOutputAsResultSet methods. |
| public void | appendTranslationParameter(Writer writer, ParameterExpression expression, DatabasePlatform platform, AbstractRecord record)
INTERNAL: All values are printed as ? |
| public boolean | |
| public boolean | isQueryStringCall()
Overrides org. Implements org. |
| public boolean | |
| protected void | prepareInternal(AbstractSession session)
Overrides org. |
| public void | setCustomSQLArgumentType(String customParameterName, Class<?> type)
PUBLIC: This method should only be used with custom SQL: it sets a type to IN, OUT or INOUT parameter (prefixed with #, ### or #### in custom SQL string). |
| public void | setCustomSQLArgumentType(String argumentFieldName, int type)
PUBLIC: This method should only be used with custom SQL: it sets a type to IN, OUT or INOUT parameter (prefixed with #, ### or #### in custom SQL string). |
| public void | setCustomSQLArgumentType(String argumentFieldName, int type, String typeName)
PUBLIC: This method should only be used with custom SQL: it sets a type to IN, OUT or INOUT parameter (prefixed with #, ### or #### in custom SQL string). |
| public void | setCustomSQLArgumentType(String argumentFieldName, int type, String typeName, Class<?> javaType)
PUBLIC: This method should only be used with custom SQL: it sets a type to IN, OUT or INOUT parameter (prefixed with #, ### or #### in custom SQL string). |
| public void | setCustomSQLArgumentType(String argumentFieldName, int type, String typeName, DatabaseField nestedType)
PUBLIC: This method should only be used with custom SQL: it sets a type to IN, OUT or INOUT parameter (prefixed with #, ### or #### in custom SQL string). |
| public void | setCustomSQLArgumentType(String argumentFieldName, int type, String typeName, Class<?> javaType, DatabaseField nestedType)
PUBLIC: This method should only be used with custom SQL: it sets a type to IN, OUT or INOUT parameter (prefixed with #, ### or #### in custom SQL string). |
| public void | setHasCustomSQLArguments(boolean hasCustomSQLArguments)
INTERNAL: Used to avoid misinterpreting the # in custom SQL. |
| public void | |
| public void | translateCustomQuery()
Overrides org. Implements org. |
| public void | translatePureSQLCustomQuery()
Overrides org. |
| public void | useCustomSQLCursorOutputAsResultSet(String customParameterName)
PUBLIC: This method should only be used with custom SQL: Used for Oracle result sets through procedures. |
| hasCustomSQLArguments | back to summary |
|---|---|
| protected boolean hasCustomSQLArguments | |
| isTranslatedCustomQuery | back to summary |
|---|---|
| protected transient boolean isTranslatedCustomQuery | |
| SQLCall | back to summary |
|---|---|
| public SQLCall() PUBLIC: Create a new SQL call. | |
| SQLCall | back to summary |
|---|---|
| public SQLCall(String sqlString) PUBLIC: Create a new SQL call. Warning Allowing an unverified SQL string to be passed into this method makes your application vulnerable to SQL injection attacks. | |
| afterTranslateCustomQuery | back to summary |
|---|---|
| protected void afterTranslateCustomQuery(List<E> updatedParameters, List<DatasourceCall. INTERNAL: Set the data passed through setCustomSQLArgumentType and useCustomSQLCursorOutputAsResultSet methods. | |
| afterTranslateCustomQueryUpdateParameter | back to summary |
|---|---|
| protected DatabaseField afterTranslateCustomQueryUpdateParameter(DatabaseField field, int index, DatasourceCall. INTERNAL: Set the data passed through setCustomSQLArgumentType and useCustomSQLCursorOutputAsResultSet methods. This will return the null if the user did not add the field/type using the setCustomSQLArgumentType method | |
| appendTranslationParameter | back to summary |
|---|---|
| public void appendTranslationParameter(Writer writer, ParameterExpression expression, DatabasePlatform platform, AbstractRecord record) throws IOException INTERNAL: All values are printed as ? to allow for parameter binding or translation during the execute of the call. | |
| hasCustomSQLArguments | back to summary |
|---|---|
| public boolean hasCustomSQLArguments() INTERNAL: Used to avoid misinterpreting the # in custom SQL. | |
| isQueryStringCall | back to summary |
|---|---|
| public boolean isQueryStringCall() Overrides org. Implements org. Doc from org. Should return true.
| |
| isSQLCall | back to summary |
|---|---|
| public boolean isSQLCall() Overrides org.
| |
| prepareInternal | back to summary |
|---|---|
| protected void prepareInternal(AbstractSession session) Overrides org. INTERNAL: Called by prepare method only.
| |
| setCustomSQLArgumentType | back to summary |
|---|---|
| public void setCustomSQLArgumentType(String customParameterName, Class<?> type) PUBLIC: This method should only be used with custom SQL: it sets a type to IN, OUT or INOUT parameter (prefixed with #, ### or #### in custom SQL string). | |
| setCustomSQLArgumentType | back to summary |
|---|---|
| public void setCustomSQLArgumentType(String argumentFieldName, int type) PUBLIC: This method should only be used with custom SQL: it sets a type to IN, OUT or INOUT parameter (prefixed with #, ### or #### in custom SQL string). The argumentFieldName is the field or argument name used in the SQL. The type is the JDBC type code for the parameter. | |
| setCustomSQLArgumentType | back to summary |
|---|---|
| public void setCustomSQLArgumentType(String argumentFieldName, int type, String typeName) PUBLIC: This method should only be used with custom SQL: it sets a type to IN, OUT or INOUT parameter (prefixed with #, ### or #### in custom SQL string). The argumentFieldName is the field or argument name used in the SQL. The type is the JDBC type code for the parameter. The typeName is the JDBC type name, this may be required for ARRAY or STRUCT types. | |
| setCustomSQLArgumentType | back to summary |
|---|---|
| public void setCustomSQLArgumentType(String argumentFieldName, int type, String typeName, Class<?> javaType) PUBLIC: This method should only be used with custom SQL: it sets a type to IN, OUT or INOUT parameter (prefixed with #, ### or #### in custom SQL string). TThe argumentFieldName is the field or argument name used in the SQL. The type is the JDBC type code for the parameter. The typeName is the JDBC type name, this may be required for ARRAY or STRUCT types. The javaType is the java class to return instead of the ARRAY and STRUCT types if a conversion is possible. | |
| setCustomSQLArgumentType | back to summary |
|---|---|
| public void setCustomSQLArgumentType(String argumentFieldName, int type, String typeName, DatabaseField nestedType) PUBLIC: This method should only be used with custom SQL: it sets a type to IN, OUT or INOUT parameter (prefixed with #, ### or #### in custom SQL string). TThe argumentFieldName is the field or argument name used in the SQL. The type is the JDBC type code for the parameter. The typeName is the JDBC type name, this may be required for ARRAY or STRUCT types. The nestedType is a DatabaseField with type information set to match the VARRAYs object types | |
| setCustomSQLArgumentType | back to summary |
|---|---|
| public void setCustomSQLArgumentType(String argumentFieldName, int type, String typeName, Class<?> javaType, DatabaseField nestedType) PUBLIC: This method should only be used with custom SQL: it sets a type to IN, OUT or INOUT parameter (prefixed with #, ### or #### in custom SQL string). TThe argumentFieldName is the field or argument name used in the SQL. The type is the JDBC type code for the parameter. The typeName is the JDBC type name, this may be required for ARRAY or STRUCT types. The javaType is the java class to return instead of the ARRAY and STRUCT types if a conversion is possible. The nestedType is a DatabaseField with type information set to match the VARRAYs object types | |
| setHasCustomSQLArguments | back to summary |
|---|---|
| public void setHasCustomSQLArguments(boolean hasCustomSQLArguments) INTERNAL: Used to avoid misinterpreting the # in custom SQL. | |
| setSQLString | back to summary |
|---|---|
| public void setSQLString(String sqlString) Set the SQL string. Warning Allowing an unverified SQL string to be passed into this method makes your application vulnerable to SQL injection attacks. | |
| translateCustomQuery | back to summary |
|---|---|
| public void translateCustomQuery() Overrides org. Implements org. INTERNAL: Keep track of the fact that this call has been translated. This information is used to ensure the translation code for a custom SQLCall is only run once In the case of inheritance we will try to call the translation code once to get the list of types and again for each subclass
| |
| translatePureSQLCustomQuery | back to summary |
|---|---|
| public void translatePureSQLCustomQuery() Overrides org. INTERNAL: Only translate the call if it was not previously translated This code ensures the translation code for a custom SQLCall is only run once In the case of inheritance we will try to call the translation code once to get the list of types and again for each subclass
| |
| useCustomSQLCursorOutputAsResultSet | back to summary |
|---|---|
| public void useCustomSQLCursorOutputAsResultSet(String customParameterName) PUBLIC: This method should only be used with custom SQL: Used for Oracle result sets through procedures. It defines OUT parameter (prefixed with ### in custom SQL string) as a cursor output. | |