| java.lang.Object org.jpox.store.mapping.Mappings
Mappings | public class Mappings (Code) | | Helper class for doing many tasks with mapping.
version: $Revision: 1.34 $ |
getParametersIndex | public static int[] getParametersIndex(int initialPosition, JavaTypeMapping mapping)(Code) | | Get the indexes/position for Mapping columns in a given the initial
position. Used to set parameters in PreparedStatements
Parameters: initialPosition - the initialPosition Parameters: mapping - the Mapping an array containing indexes for parameters |
selectMapping | public static void selectMapping(QueryExpression qs, StatementExpressionIndex[] statementExpressionIndex)(Code) | | Add columns to a query. Columns added to the query are obtained from the
mappings included in the statementExpressionIndex passed as parameter.
After adding columns to the query, statementExpressionIndex is updated
with the index/position of the columns in the query.
Parameters: qs - the Query Statement Parameters: statementExpressionIndex - the list of mapping/column indexes to beincluded in the query |
selectMapping | public static void selectMapping(QueryExpression qs, DatastoreIdentifier tableIdentifier, StatementExpressionIndex[] statementExpressionIndex)(Code) | | Add columns to a query. Columns added to the query are obtained from the
mappings included in the statementExpressionIndex passed as parameter.
After adding columns to the query, statementExpressionIndex is updated
with the index/position of the columns in the query.
Parameters: qs - the Query Statement Parameters: tableIdentifier - the Identifier for the table which the columns are from (may be null, if TODO) Parameters: statementExpressionIndex - the list of mapping/column indexes to beincluded in the query |
|
|