org.melati.poem
Class PoemTypeFactory

Package class diagram package PoemTypeFactory
java.lang.Object
  extended by org.melati.poem.PoemTypeFactory

public abstract class PoemTypeFactory
extends Object

An object factory which produces PoemType objects given a Database and a code. See forCode(Database, int). I'd just like you to know that I had to type this file in again after deleting it. It's not even very nice is it?


Nested Class Summary
static interface PoemTypeFactory.Parameter
          A Parameter object which knows whether a PoemType is nullable and its size.
 
Field Summary
static PoemTypeFactory BIGDECIMAL
          BigDecimal base-type factory.
static PoemTypeFactory BINARY
          Binary base-type factory.
static PoemTypeFactory BOOLEAN
          Boolean base-type factory.
static PoemTypeFactory DATE
          Date base-type factory.
static PoemTypeFactory DELETED
          Deleted column factory.
static PoemTypeFactory DISPLAYLEVEL
          Poem Displaylevel factory.
static PoemTypeFactory DOUBLE
          Double base-type factory.
static PoemTypeFactory INTEGER
          Integer base-type factory.
static PoemTypeFactory INTEGRITYFIX
          Poem IntegrityFix factory.
static PoemTypeFactory LONG
          Long base-type factory.
static PoemTypeFactory PASSWORD
          Password base-type factory.
static PoemTypeFactory SEARCHABILITY
          Poem Searchability factory.
static PoemTypeFactory STRING
          String base-type factory.
static PoemTypeFactory TIMESTAMP
          Timestamp base-type factory.
static PoemTypeFactory TROID
          Troid column factory.
static PoemTypeFactory TYPE
          Type column factory.
 
Constructor Summary
PoemTypeFactory(int c)
          Constructor.
 
Method Summary
static PoemTypeFactory forCode(Database database, int code)
          Returns an instance given a database and the integer code for the instance.
 Integer getCode()
           
abstract  String getDescription()
           
 String getDisplayName()
           
abstract  String getName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TROID

public static final PoemTypeFactory TROID
Troid column factory.


DELETED

public static final PoemTypeFactory DELETED
Deleted column factory.


TYPE

public static final PoemTypeFactory TYPE
Type column factory.


BOOLEAN

public static final PoemTypeFactory BOOLEAN
Boolean base-type factory.


INTEGER

public static final PoemTypeFactory INTEGER
Integer base-type factory.


DOUBLE

public static final PoemTypeFactory DOUBLE
Double base-type factory.


LONG

public static final PoemTypeFactory LONG
Long base-type factory.


BIGDECIMAL

public static final PoemTypeFactory BIGDECIMAL
BigDecimal base-type factory.


STRING

public static final PoemTypeFactory STRING
String base-type factory.


PASSWORD

public static final PoemTypeFactory PASSWORD
Password base-type factory.


DATE

public static final PoemTypeFactory DATE
Date base-type factory.


TIMESTAMP

public static final PoemTypeFactory TIMESTAMP
Timestamp base-type factory.


BINARY

public static final PoemTypeFactory BINARY
Binary base-type factory.


DISPLAYLEVEL

public static final PoemTypeFactory DISPLAYLEVEL
Poem Displaylevel factory.


SEARCHABILITY

public static final PoemTypeFactory SEARCHABILITY
Poem Searchability factory.


INTEGRITYFIX

public static final PoemTypeFactory INTEGRITYFIX
Poem IntegrityFix factory.

Constructor Detail

PoemTypeFactory

public PoemTypeFactory(int c)
Constructor.

Parameters:
c - PoemType code
Method Detail

getCode

public Integer getCode()
Returns:
the arbetary code for this type

getName

public abstract String getName()
Returns:
the machine name of this type

getDisplayName

public String getDisplayName()
Returns:
the display name of this type

getDescription

public abstract String getDescription()
Returns:
a description for this type

forCode

public static PoemTypeFactory forCode(Database database,
                                      int code)
Returns an instance given a database and the integer code for the instance.

Parameters:
database - to get tables from
code - TypeCode
Returns:
a new PoemTypeFactory


Copyright © 2000-2010 PanEris. All Rights Reserved.