com.j256.ormlite.field.types
Class LongStringType

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.StringType
              extended by com.j256.ormlite.field.types.LongStringType
All Implemented Interfaces:
DataPersister, FieldConverter

public class LongStringType
extends StringType

Persists the String Java class but with more storage in the database.

Author:
graywatson

Field Summary
 
Fields inherited from class com.j256.ormlite.field.types.StringType
DEFAULT_WIDTH
 
Method Summary
 int getDefaultWidth()
          Return the default width associated with this type or 0 if none.
static LongStringType getSingleton()
           
 boolean isAppropriateId()
          Return true if this data type can be an id column in a class.
 
Methods inherited from class com.j256.ormlite.field.types.StringType
parseDefaultString, resultToSqlArg
 
Methods inherited from class com.j256.ormlite.field.types.BaseDataType
convertIdNumber, dataIsEqual, generateId, getAssociatedClasses, getSqlType, isArgumentHolderRequired, isComparable, isEscapedDefaultValue, isEscapedValue, isPrimitive, isSelfGeneratedId, isValidForField, isValidForVersion, isValidGeneratedType, makeConfigObject, moveToNextValue
 
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
 

Method Detail

getSingleton

public static LongStringType getSingleton()

isAppropriateId

public boolean isAppropriateId()
Description copied from interface: DataPersister
Return true if this data type can be an id column in a class.

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

getDefaultWidth

public int getDefaultWidth()
Description copied from interface: DataPersister
Return the default width associated with this type or 0 if none.

Specified by:
getDefaultWidth in interface DataPersister
Overrides:
getDefaultWidth in class StringType


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