com.j256.ormlite.field.types
Class LongType

java.lang.Object
  extended by com.j256.ormlite.field.BaseFieldConverter
      extended by com.j256.ormlite.field.types.BaseDataType
          extended by com.j256.ormlite.field.types.LongObjectType
              extended by com.j256.ormlite.field.types.LongType
All Implemented Interfaces:
DataPersister, FieldConverter

public class LongType
extends LongObjectType

Type that persists a long primitive.

Author:
graywatson

Constructor Summary
protected LongType(SqlType sqlType, Class<?>[] classes)
          Here for others to subclass.
 
Method Summary
static LongType getSingleton()
           
 boolean isPrimitive()
          Return whether this field is a primitive type or not.
 
Methods inherited from class com.j256.ormlite.field.types.LongObjectType
convertIdNumber, isEscapedValue, isValidForVersion, isValidGeneratedType, moveToNextValue, parseDefaultString, resultToSqlArg
 
Methods inherited from class com.j256.ormlite.field.types.BaseDataType
dataIsEqual, generateId, getAssociatedClasses, getAssociatedClassNames, getDefaultWidth, getPrimaryClass, getSqlType, isAppropriateId, isArgumentHolderRequired, isComparable, isEscapedDefaultValue, isSelfGeneratedId, isValidForField, makeConfigObject, resultStringToJava
 
Methods inherited from class com.j256.ormlite.field.BaseFieldConverter
isStreamType, javaToSqlArg, resultToJava, sqlArgToJava
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.j256.ormlite.field.FieldConverter
isStreamType, javaToSqlArg, resultToJava, sqlArgToJava
 

Constructor Detail

LongType

protected LongType(SqlType sqlType,
                   Class<?>[] classes)
Here for others to subclass.

Method Detail

getSingleton

public static LongType 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 documentation is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.