| java.lang.Object org.jaffa.persistence.engines.jdbcengine.querygenerator.PreparedStatementHelper
PreparedStatementHelper | public class PreparedStatementHelper (Code) | | This class has functions to return SQL Strings used in PreparedStatements.
These Strings are cached for efficiency purposes.
|
Method Summary | |
public static String | getDeletePreparedStatementString(ClassMetaData classMetaData) Returns a SQL String for use in PreparedStatements for deleting records from the table corresponding to the input ClassMetaData object.
This String is cached.
Parameters: classMetaData - the meta object, for which the PreparedStatement String is to be generated. | public static String | getInsertPreparedStatementString(ClassMetaData classMetaData) Returns a SQL String for use in PreparedStatements for inserting records into the table corresponding to the input ClassMetaData object.
This String is cached.
Parameters: classMetaData - the meta object, for which the PreparedStatement String is to be generated. | public static String | getLockPreparedStatementString(ClassMetaData classMetaData, String engineType) Returns a SQL String for use in PreparedStatements for locking records in the table corresponding to the input ClassMetaData object. | public static String | getUpdatePreparedStatementString(ClassMetaData classMetaData) Returns a SQL String for use in PreparedStatements for updating records in the table corresponding to the input ClassMetaData object.
This String is cached.
Parameters: classMetaData - the meta object, for which the PreparedStatement String is to be generated. |
getDeletePreparedStatementString | public static String getDeletePreparedStatementString(ClassMetaData classMetaData)(Code) | | Returns a SQL String for use in PreparedStatements for deleting records from the table corresponding to the input ClassMetaData object.
This String is cached.
Parameters: classMetaData - the meta object, for which the PreparedStatement String is to be generated. a SQL String for use in PreparedStatements for deleting records. |
getInsertPreparedStatementString | public static String getInsertPreparedStatementString(ClassMetaData classMetaData)(Code) | | Returns a SQL String for use in PreparedStatements for inserting records into the table corresponding to the input ClassMetaData object.
This String is cached.
Parameters: classMetaData - the meta object, for which the PreparedStatement String is to be generated. a SQL String for use in PreparedStatements for inserting records. |
getLockPreparedStatementString | public static String getLockPreparedStatementString(ClassMetaData classMetaData, String engineType)(Code) | | Returns a SQL String for use in PreparedStatements for locking records in the table corresponding to the input ClassMetaData object.
This String is cached.
Parameters: classMetaData - the meta object, for which the PreparedStatement String is to be generated. Parameters: engineType - The engine type as defined in init.xml a SQL String for use in PreparedStatements for locking records. |
getUpdatePreparedStatementString | public static String getUpdatePreparedStatementString(ClassMetaData classMetaData)(Code) | | Returns a SQL String for use in PreparedStatements for updating records in the table corresponding to the input ClassMetaData object.
This String is cached.
Parameters: classMetaData - the meta object, for which the PreparedStatement String is to be generated. a SQL String for use in PreparedStatements for updating records. |
|
|