com.triactive.jdo.store.mapping
Class BigDecimalMapping
java.lang.Object
   com.triactive.jdo.store.mapping.Mapping
com.triactive.jdo.store.mapping.Mapping
       com.triactive.jdo.store.mapping.ColumnMapping
com.triactive.jdo.store.mapping.ColumnMapping
           com.triactive.jdo.store.mapping.BigDecimalMapping
com.triactive.jdo.store.mapping.BigDecimalMapping
- public class BigDecimalMapping- extends ColumnMapping
 
 
 
 
 
| Methods inherited from class com.triactive.jdo.store.mapping.ColumnMapping | 
| accessAsFieldIn, defineConstraints, defineStorage, equals, getBoolean, getByte, getChar, getColumn, getDouble, getFloat, getInt, getLong, getShort, getSqlInsertionValue, getSqlUpdateValue, getString, getTypeInfo, hashCode, setBoolean, setByte, setChar, setDouble, setFloat, setInt, setLong, setShort, setString | 
 
 
| Methods inherited from class java.lang.Object | 
| clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait | 
 
BigDecimalMapping
public BigDecimalMapping(DatabaseAdapter dba,
                         java.lang.Class type)
BigDecimalMapping
public BigDecimalMapping(DatabaseAdapter dba,
                         FieldMetaData fmd)
mapTo
public void mapTo(Column col)
- Description copied from class: ColumnMapping
- Links this mapping to a specific column.
 Linkage involves at least two steps:
 
 - Calling the column's Column.mapWith(com.triactive.jdo.store.mapping.ColumnMapping)method
- Setting this mapping's ColumnMapping.typeInfoto match the column's
 
 This method can be called at most once for a given mapping.
 Subclasses may do extra work as a consequence of mapping themselves to a
 column, but they should always call super.mapTo(col) first.
 
 
- 
- Overrides:
- mapToin class- ColumnMapping
 
- 
 
chooseColumnType
public TypeInfo chooseColumnType(Column col)
- Description copied from class: ColumnMapping
- Chooses an appropriate SQL type for a column based on the column's
 options.
 
- 
- Overrides:
- chooseColumnTypein class- ColumnMapping
 
- 
- Parameters:
- col- the column
- Returns:
- the type info for the chosen SQL type.
 
setObject
public void setObject(PersistenceManager pm,
                      java.sql.PreparedStatement ps,
                      int param,
                      java.lang.Object value)
- 
- Overrides:
- setObjectin class- ColumnMapping
 
- 
 
getObject
public java.lang.Object getObject(PersistenceManager pm,
                                  java.sql.ResultSet rs,
                                  int param)
- 
- Overrides:
- getObjectin class- ColumnMapping
 
- 
 
newSqlLiteral
public SqlExpression newSqlLiteral(QueryStatement qs,
                                   java.lang.Object value)
- Description copied from class: Mapping
- Returns an SQL expression representing the literal value of a Java
 object.
 The object must be of a type used with this mapping.
 
- 
- Specified by:
- newSqlLiteralin class- Mapping
 
- 
- Parameters:
- qs- the surrounding query statement for the expression
- value- the literal value
 
newSqlExpression
public SqlExpression newSqlExpression(QueryStatement.QueryColumn qsc)
- Description copied from class: ColumnMapping
- Returns an SQL expression representing a reference to a column in a query
 statement.
 
- 
- Specified by:
- newSqlExpressionin class- ColumnMapping
 
- 
- Parameters:
- qsc- the query column reference
 
Copyright © 2001-2007 The TJDO Project  All Rights Reserved.