com.caucho.amber.type
Class PrimitiveType

java.lang.Object
  extended by com.caucho.amber.type.AmberType
      extended by com.caucho.amber.type.PrimitiveType
Direct Known Subclasses:
PrimitiveBooleanType, PrimitiveByteType, PrimitiveCharType, PrimitiveDoubleType, PrimitiveFloatType, PrimitiveIntType, PrimitiveLongType, PrimitiveShortType

public abstract class PrimitiveType
extends AmberType

Represents a primitive numeric type.


Constructor Summary
PrimitiveType()
           
 
Method Summary
 java.lang.String generateEquals(java.lang.String a, java.lang.String b)
          Returns a boolean equality.
 java.lang.String generateIsNull(java.lang.String value)
          Returns a test for null.
 java.lang.String generateNull()
          Returns a test for null.
 
Methods inherited from class com.caucho.amber.type.AmberType
findItem, fromObject, generateCastFromObject, generateCreateColumnSQL, generateIncrementVersion, generateLoad, generateLoad, generateLoadForeign, generateLoadNative, generateSet, generateSetNull, generateSetVersion, getColumnCount, getForeignType, getForeignTypeName, getJavaTypeName, getName, getObject, getObject, init, isAssignableTo, isAutoIncrement, isBoolean, isNumeric, setParameter, toObject, toObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrimitiveType

public PrimitiveType()
Method Detail

generateEquals

public java.lang.String generateEquals(java.lang.String a,
                                       java.lang.String b)
Returns a boolean equality.

Overrides:
generateEquals in class AmberType

generateIsNull

public java.lang.String generateIsNull(java.lang.String value)
Returns a test for null.

Overrides:
generateIsNull in class AmberType

generateNull

public java.lang.String generateNull()
Returns a test for null.

Overrides:
generateNull in class AmberType