com.martiansoftware.trivialpersist
Class Types

java.lang.Object
  extended bycom.martiansoftware.trivialpersist.Types

public class Types
extends Object

Type constants used by TrivialPersist. Type constants are interned Strings, so reference comparisons may be made at run time.

Author:
Marty Lamb

Field Summary
static String BOOLEAN
          The Boolean type
static String DATE
          The Date type
static String DOUBLE
          The Double type
static String LONG
          The Long type
static String STRING
          The String type
 
Method Summary
static boolean isValidType(String typeName)
          Returns true iff the specified type name is a valid type
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STRING

public static final String STRING
The String type


DATE

public static final String DATE
The Date type


BOOLEAN

public static final String BOOLEAN
The Boolean type


LONG

public static final String LONG
The Long type


DOUBLE

public static final String DOUBLE
The Double type

Method Detail

isValidType

public static boolean isValidType(String typeName)
Returns true iff the specified type name is a valid type

Parameters:
typeName - the name of the type to check
Returns:
true iff the specified type name is a valid type


Copyright © 2004, Martian Software, Inc.. All Rights Reserved.
For the latest version and documentation, please visit http://www.martiansoftware.com/trivialpersist