|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.derby.iapi.types.DataValueFactoryImpl
org.apache.derby.iapi.types.CDCDataValueFactory
public class CDCDataValueFactory
DataValueFactory implementation for J2ME/CDC/Foundation. Cannot use SQLDecimal since that requires java.math.BigDecimal. Uses BigIntegerDecimal for DECIMAL support.
DataValueFactory
Field Summary |
---|
Fields inherited from class org.apache.derby.iapi.types.DataValueFactoryImpl |
---|
localeFinder |
Constructor Summary | |
---|---|
CDCDataValueFactory()
Make the constructor public. |
Method Summary | |
---|---|
boolean |
canSupport(java.util.Properties properties)
See if this implementation can support any attributes that are listed in properties. |
NumberDataValue |
getDecimalDataValue(java.lang.Long value,
NumberDataValue previous)
Get a SQL DECIMAL with the given value. |
NumberDataValue |
getDecimalDataValue(java.lang.String value)
Get a SQL DECIMAL with the given value. |
NumberDataValue |
getNullDecimal(NumberDataValue dataValue)
Get a SQL Decimal/Numeric with a SQL null value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CDCDataValueFactory()
Method Detail |
---|
public boolean canSupport(java.util.Properties properties)
ModuleSupportable
The module can check for attributes in the properties to
see if it can fulfill the required behaviour. E.g. the raw
store may define an attribute called RawStore.Recoverable.
If a temporary raw store is required the property RawStore.recoverable=false
would be added to the properties before calling bootServiceModule. If a
raw store cannot support this attribute its canSupport method would
return null. Also see the Monitor class's prologue to see how the
identifier is used in looking up properties.
Actually a better way maybe to have properties of the form
RawStore.Attributes.mandatory=recoverable,smallfootprint and
RawStore.Attributes.requested=oltp,fast
canSupport
in interface ModuleSupportable
public NumberDataValue getDecimalDataValue(java.lang.Long value, NumberDataValue previous) throws StandardException
DataValueFactory
getDecimalDataValue
in interface DataValueFactory
StandardException
- Thrown on errorpublic NumberDataValue getDecimalDataValue(java.lang.String value) throws StandardException
DataValueFactory
getDecimalDataValue
in interface DataValueFactory
StandardException
- Thrown on errorpublic NumberDataValue getNullDecimal(NumberDataValue dataValue)
DataValueFactory
getNullDecimal
in interface DataValueFactory
|
Built on Thu 2011-03-10 11:54:14+0000, from revision ??? | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |