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
 
Constructor Summary
protected LongStringType(SqlType sqlType, Class<?>[] classes)
          Here for others to subclass.
 
Method Summary
 int getDefaultWidth()
          Return the default width associated with this type or 0 if none.
 Class<?> getPrimaryClass()
          Return the class most associated with this persister or null 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, getAssociatedClassNames, getSqlType, isArgumentHolderRequired, isComparable, isEscapedDefaultValue, isEscapedValue, isPrimitive, isSelfGeneratedId, isValidForField, isValidForVersion, isValidGeneratedType, makeConfigObject, moveToNextValue, 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

LongStringType

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

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

getPrimaryClass

public Class<?> getPrimaryClass()
Description copied from interface: DataPersister
Return the class most associated with this persister or null if none.

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


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