org.melati.poem
Class LongPoemType

java.lang.Object
  extended by org.melati.poem.BasePoemType
      extended by org.melati.poem.AtomPoemType
          extended by org.melati.poem.LongPoemType
All Implemented Interfaces:
java.lang.Cloneable, PoemType, SQLPoemType, SQLType

public class LongPoemType
extends AtomPoemType

Normal longs: INT8.


Field Summary
static LongPoemType nullableInstance
          Instance of a nullable LongPoemType.
 
Fields inherited from class org.melati.poem.AtomPoemType
sqlTypeName
 
Fields inherited from class org.melati.poem.BasePoemType
nullable
 
Constructor Summary
  LongPoemType(boolean nullable)
          Constructor.
protected LongPoemType(int sqlTypeCode, java.lang.String sqlTypeName, boolean nullable)
           
 
Method Summary
protected  void _assertValidRaw(java.lang.Object raw)
           
protected  boolean _canRepresent(SQLPoemType other)
          Longs can represent Integers.
protected  java.lang.Object _getRaw(java.sql.ResultSet rs, int col)
           
protected  java.util.Enumeration _possibleRaws()
           
protected  java.lang.Object _rawOfString(java.lang.String rawString)
          Converts a non-null string to an appropriate value for insertion into the underlying DBMS.
protected  void _saveColumnInfo(ColumnInfo columnInfo)
           
protected  void _setRaw(java.sql.PreparedStatement ps, int col, java.lang.Object integer)
           
protected  java.lang.String _sqlDefinition(Dbms dbms)
           
 java.lang.String toDsdType()
          The field type used in the Data Structure Definition language.
 
Methods inherited from class org.melati.poem.AtomPoemType
_assertValidCooked, _cookedOfRaw, _quotedRaw, _rawOfCooked, _stringOfCooked, _stringOfRaw, _toString, sqlDefaultValue
 
Methods inherited from class org.melati.poem.BasePoemType
assertValidCooked, assertValidRaw, canRepresent, clone, cookedOfRaw, getLimitRaw, getLowRaw, getNullable, getRaw, possibleRaws, quotedRaw, rawOfCooked, rawOfString, saveColumnInfo, setRaw, setRawRange, sqlDefinition, sqlTypeCode, sqlTypeDefinition, stringOfCooked, stringOfRaw, toString, withNullable
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

nullableInstance

public static final LongPoemType nullableInstance
Instance of a nullable LongPoemType.

Constructor Detail

LongPoemType

public LongPoemType(boolean nullable)
Constructor.

Parameters:
nullable - whether null is an allowed value

LongPoemType

protected LongPoemType(int sqlTypeCode,
                       java.lang.String sqlTypeName,
                       boolean nullable)
Method Detail

_possibleRaws

protected java.util.Enumeration _possibleRaws()
Overrides:
_possibleRaws in class BasePoemType
To do something:
Do down-counting??

_assertValidRaw

protected void _assertValidRaw(java.lang.Object raw)
Specified by:
_assertValidRaw in class BasePoemType

_getRaw

protected java.lang.Object _getRaw(java.sql.ResultSet rs,
                                   int col)
                            throws java.sql.SQLException
Specified by:
_getRaw in class BasePoemType
Throws:
java.sql.SQLException

_setRaw

protected void _setRaw(java.sql.PreparedStatement ps,
                       int col,
                       java.lang.Object integer)
                throws java.sql.SQLException
Specified by:
_setRaw in class BasePoemType
Throws:
java.sql.SQLException

_rawOfString

protected java.lang.Object _rawOfString(java.lang.String rawString)
                                 throws ParsingPoemException
Description copied from class: BasePoemType
Converts a non-null string to an appropriate value for insertion into the underlying DBMS.

Specified by:
_rawOfString in class BasePoemType
Throws:
ParsingPoemException

_sqlDefinition

protected java.lang.String _sqlDefinition(Dbms dbms)
Overrides:
_sqlDefinition in class AtomPoemType

_canRepresent

protected boolean _canRepresent(SQLPoemType other)
Longs can represent Integers.

Specified by:
_canRepresent in class BasePoemType
See Also:
BasePoemType._canRepresent(org.melati.poem.SQLPoemType)

toDsdType

public java.lang.String toDsdType()
The field type used in the Data Structure Definition language.

Returns:
the Type name
See Also:
PoemType.toDsdType()

_saveColumnInfo

protected void _saveColumnInfo(ColumnInfo columnInfo)
                        throws AccessPoemException
Specified by:
_saveColumnInfo in class BasePoemType
Throws:
AccessPoemException


Copyright © 2000-2009 PanEris. All Rights Reserved.