org.xquark.mapping
Interface Generator

All Known Subinterfaces:
UserGenerator
All Known Implementing Classes:
KeyGenerator

public interface Generator

Object that provide the value to store in a column


Method Summary
 java.lang.Object getValue(StorageContext context)
          This method is called by the XQuark storage engine when a user-generated column of a relational table is filled.
 

Method Detail

getValue

public java.lang.Object getValue(StorageContext context)
This method is called by the XQuark storage engine when a user-generated column of a relational table is filled. The Object type returned must be consistent with the type returned by the XQuark schema API as defined in the following table:
XML schema base built-in primitive typeJava class
stringString
booleanBoolean
decimalBigDecimal or Long if type facet ensure it fits.
floatFloat
doubleDouble
QNameorg.xquark.schema.datatypes.QName
NOTATIONorg.xquark.schema.datatypes.QName
durationorg.xquark.schema.datatypes.Duration
dateTimeorg.xquark.schema.datatypes.DateTime
timeorg.xquark.schema.datatypes.DateTime
dateorg.xquark.schema.datatypes.DateTime
gYearMonthorg.xquark.schema.datatypes.DateTime
gYearorg.xquark.schema.datatypes.DateTime
gMonthDayorg.xquark.schema.datatypes.DateTime
gDayorg.xquark.schema.datatypes.DateTime
gMonthorg.xquark.schema.datatypes.DateTime
hexBinaryorg.xquark.schema.datatypes.ByteArray
base64Binaryorg.xquark.schema.datatypes.ByteArray
anyURIorg.xquark.schema.datatypes.URI
unionnot supported
listList
anySimpleTypeString

Parameters:
context - Passed by the mapping algorithm to provide an access to storage system variables.
Returns:
An Object, that must be consistent with the type returned by the XQuark schema API.


Copyright © 2004 Université de Versailles Saint-Quentin, XQuark Group. All rights reserved.