org.jpox.store.mapping
Class EnumMapping

java.lang.Object
  extended by org.jpox.store.mapping.JavaTypeMapping
      extended by org.jpox.store.mapping.SingleFieldMapping
          extended by org.jpox.store.mapping.EnumMapping
All Implemented Interfaces:
org.jpox.store.mapping.SimpleDatastoreRepresentation

public class EnumMapping
extends org.jpox.store.mapping.SingleFieldMapping
implements org.jpox.store.mapping.SimpleDatastoreRepresentation

Mapping for Enum type

Version:
$Revision: 1.5 $

Field Summary
 
Fields inherited from class org.jpox.store.mapping.SingleFieldMapping
datastoreContainer, typeInfo
 
Fields inherited from class org.jpox.store.mapping.JavaTypeMapping
datastoreMappings, dba, fmd, LOCALISER, referenceMapping, type
 
Constructor Summary
EnumMapping(org.jpox.store.DatastoreAdapter dba, org.jpox.metadata.AbstractPropertyMetaData fmd, org.jpox.store.DatastoreContainerObject datastoreContainer, org.jpox.ClassLoaderResolver clr)
           
EnumMapping(org.jpox.store.DatastoreAdapter dba, java.lang.String type)
           
 
Method Summary
 java.lang.Class getJavaType()
           
 java.lang.Object getSampleValue()
           
 org.jpox.store.expression.ScalarExpression newLiteral(org.jpox.store.expression.QueryExpression qs, java.lang.Object value)
           
 org.jpox.store.expression.ScalarExpression newScalarExpression(org.jpox.store.expression.QueryExpression qs, org.jpox.store.expression.LogicSetExpression te)
           
 
Methods inherited from class org.jpox.store.mapping.SingleFieldMapping
equals, getBoolean, getByte, getChar, getDatastoreContainer, getDouble, getFloat, getInt, getLong, getObject, getShort, getString, hasValue, includeInFetchStatement, includeInInsertStatement, includeInUpdateStatement, prepareDatastoreMapping, setBoolean, setByte, setChar, setDouble, setFloat, setInt, setLong, setObject, setShort, setString
 
Methods inherited from class org.jpox.store.mapping.JavaTypeMapping
addDataStoreMapping, failureMessage, getDataStoreMapping, getDataStoreMappings, getFieldMetaData, getNumberOfDatastoreFields, getObject, getReferenceMapping, getType, isNullable, setDefault, setObject, setReferenceMapping
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnumMapping

public EnumMapping(org.jpox.store.DatastoreAdapter dba,
                   java.lang.String type)

EnumMapping

public EnumMapping(org.jpox.store.DatastoreAdapter dba,
                   org.jpox.metadata.AbstractPropertyMetaData fmd,
                   org.jpox.store.DatastoreContainerObject datastoreContainer,
                   org.jpox.ClassLoaderResolver clr)
Method Detail

getSampleValue

public java.lang.Object getSampleValue()
Specified by:
getSampleValue in class org.jpox.store.mapping.JavaTypeMapping

newLiteral

public org.jpox.store.expression.ScalarExpression newLiteral(org.jpox.store.expression.QueryExpression qs,
                                                             java.lang.Object value)
Specified by:
newLiteral in class org.jpox.store.mapping.JavaTypeMapping

newScalarExpression

public org.jpox.store.expression.ScalarExpression newScalarExpression(org.jpox.store.expression.QueryExpression qs,
                                                                      org.jpox.store.expression.LogicSetExpression te)
Specified by:
newScalarExpression in class org.jpox.store.mapping.JavaTypeMapping

getJavaType

public java.lang.Class getJavaType()
Specified by:
getJavaType in class org.jpox.store.mapping.JavaTypeMapping


Copyright © 2003-2011 Java Persistent Objects (JPOX). All Rights Reserved.