com.j256.ormlite.field.types
Class IntType

java.lang.Object
  extended by com.j256.ormlite.field.types.BaseDataType
      extended by com.j256.ormlite.field.types.IntegerObjectType
          extended by com.j256.ormlite.field.types.IntType
All Implemented Interfaces:
DataPersister, FieldConverter

public class IntType
extends IntegerObjectType

Type that persists a integer primitive.

Author:
graywatson

Method Summary
static IntType getSingleton()
           
 boolean isPrimitive()
          Return whether this field is a primitive type or not.
 
Methods inherited from class com.j256.ormlite.field.types.IntegerObjectType
convertIdNumber, isEscapedValue, isValidForField, isValidForVersion, isValidGeneratedType, moveToNextValue, parseDefaultString, resultToJava
 
Methods inherited from class com.j256.ormlite.field.types.BaseDataType
dataIsEqual, generateId, getAssociatedClasses, getDefaultWidth, getSqlType, isAppropriateId, isComparable, isEscapedDefaultValue, isSelectArgRequired, isSelfGeneratedId, isStreamType, javaToSqlArg, makeConfigObject, sqlArgToJava
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getSingleton

public static IntType getSingleton()

isPrimitive

public boolean isPrimitive()
Description copied from interface: DataPersister
Return whether this field is a primitive type or not. This is used to know if we should throw if the field value is null.

Specified by:
isPrimitive in interface DataPersister
Overrides:
isPrimitive in class BaseDataType


This content is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.