| java.lang.Object org.jaffa.persistence.engines.jdbcengine.querygenerator.StatementHelper
StatementHelper | public class StatementHelper (Code) | | This class has functions to return SQL Strings used in Statements.
|
Method Summary | |
public static String | getDeleteStatementString(IPersistent object, String engineType) Returns a SQL String for use in Statements for deleting records from the table corresponding to the input Persistent object.
Parameters: object - The object to be deleted. Parameters: engineType - The engine type as defined in init.xml throws: IllegalAccessException - if the accessor Method for an attribute enforces Java language access control and the underlying method is inaccessible. throws: InvocationTargetException - if the accessor method for an attribute throws an exception. throws: IOException - if any error occurs while extracting the value for an attribute. | public static String | getInsertStatementString(IPersistent object, String engineType) Returns a SQL String for use in Statements for inserting records into the table corresponding to the input Persistent object.
Parameters: object - The object to be inserted. Parameters: engineType - The engine type as defined in init.xml throws: IllegalAccessException - if the accessor Method for an attribute enforces Java language access control and the underlying method is inaccessible. throws: InvocationTargetException - if the accessor method for an attribute throws an exception. throws: IOException - if any error occurs while extracting the value for an attribute. | public static String | getLockStatementString(IPersistent object, String engineType) Returns a SQL String for use in Statements for locking records in the table corresponding to the input Persistent object.
Parameters: object - The object to be locked. Parameters: engineType - The engine type as defined in init.xml throws: IllegalAccessException - if the accessor Method for an attribute enforces Java language access control and the underlying method is inaccessible. throws: InvocationTargetException - if the accessor method for an attribute throws an exception. throws: IOException - if any error occurs while extracting the value for an attribute. | public static String | getUpdateStatementString(IPersistent object, String engineType) Returns a SQL String for use in Statements for updating records in the table corresponding to the input Persistent object.
Parameters: object - The object to be updated. Parameters: engineType - The engine type as defined in init.xml throws: IllegalAccessException - if the accessor Method for an attribute enforces Java language access control and the underlying method is inaccessible. throws: InvocationTargetException - if the accessor method for an attribute throws an exception. throws: IOException - if any error occurs while extracting the value for an attribute. |
getDeleteStatementString | public static String getDeleteStatementString(IPersistent object, String engineType) throws IllegalAccessException, InvocationTargetException, IOException(Code) | | Returns a SQL String for use in Statements for deleting records from the table corresponding to the input Persistent object.
Parameters: object - The object to be deleted. Parameters: engineType - The engine type as defined in init.xml throws: IllegalAccessException - if the accessor Method for an attribute enforces Java language access control and the underlying method is inaccessible. throws: InvocationTargetException - if the accessor method for an attribute throws an exception. throws: IOException - if any error occurs while extracting the value for an attribute. a SQL String for use in Statements for deleting records. |
getInsertStatementString | public static String getInsertStatementString(IPersistent object, String engineType) throws IllegalAccessException, InvocationTargetException, IOException(Code) | | Returns a SQL String for use in Statements for inserting records into the table corresponding to the input Persistent object.
Parameters: object - The object to be inserted. Parameters: engineType - The engine type as defined in init.xml throws: IllegalAccessException - if the accessor Method for an attribute enforces Java language access control and the underlying method is inaccessible. throws: InvocationTargetException - if the accessor method for an attribute throws an exception. throws: IOException - if any error occurs while extracting the value for an attribute. a SQL String for use in Statements for inserting records. |
getLockStatementString | public static String getLockStatementString(IPersistent object, String engineType) throws IllegalAccessException, InvocationTargetException, IOException(Code) | | Returns a SQL String for use in Statements for locking records in the table corresponding to the input Persistent object.
Parameters: object - The object to be locked. Parameters: engineType - The engine type as defined in init.xml throws: IllegalAccessException - if the accessor Method for an attribute enforces Java language access control and the underlying method is inaccessible. throws: InvocationTargetException - if the accessor method for an attribute throws an exception. throws: IOException - if any error occurs while extracting the value for an attribute. a SQL String for use in Statements for locking records. |
getUpdateStatementString | public static String getUpdateStatementString(IPersistent object, String engineType) throws IllegalAccessException, InvocationTargetException, IOException(Code) | | Returns a SQL String for use in Statements for updating records in the table corresponding to the input Persistent object.
Parameters: object - The object to be updated. Parameters: engineType - The engine type as defined in init.xml throws: IllegalAccessException - if the accessor Method for an attribute enforces Java language access control and the underlying method is inaccessible. throws: InvocationTargetException - if the accessor method for an attribute throws an exception. throws: IOException - if any error occurs while extracting the value for an attribute. a SQL String for use in Statements for updating records. |
|
|