org.melati.poem
Class BinaryPoemType

Package class diagram package BinaryPoemType
java.lang.Object
  extended by org.melati.poem.BasePoemType<T>
      extended by org.melati.poem.AtomPoemType
          extended by org.melati.poem.SizedAtomPoemType
              extended by org.melati.poem.BinaryPoemType
All Implemented Interfaces:
Cloneable, PoemType, SQLPoemType, SQLType
Direct Known Subclasses:
MySQL.BlobPoemType

public class BinaryPoemType
extends SizedAtomPoemType

A Blob Field type.


Field Summary
 
Fields inherited from class org.melati.poem.AtomPoemType
sqlTypeName
 
Fields inherited from class org.melati.poem.BasePoemType
nullable
 
Constructor Summary
BinaryPoemType(boolean nullable, int size)
          Constructor.
 
Method Summary
protected  void _assertValidRaw(Object raw)
           
protected  boolean _canRepresent(SQLPoemType other)
           
protected  Object _getRaw(ResultSet rs, int col)
           
protected  String _quotedRaw(Object raw)
           
protected  Object _rawOfString(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(PreparedStatement ps, int col, Object string)
           
protected  String _sqlDefinition(Dbms dbms)
           
protected  String _stringOfRaw(Object raw)
           
 String toDsdType()
          The field type used in the Data Structure Definition language.
 String toString()
          
 
Methods inherited from class org.melati.poem.SizedAtomPoemType
getSize, sizeGreaterEqual, withSize
 
Methods inherited from class org.melati.poem.AtomPoemType
_assertValidCooked, _cookedOfRaw, _rawOfCooked, _stringOfCooked, _toString, sqlDefaultValue
 
Methods inherited from class org.melati.poem.BasePoemType
_possibleRaws, assertValidCooked, assertValidRaw, canRepresent, clone, cookedOfRaw, getLimitRaw, getLowRaw, getNullable, getRaw, possibleRaws, quotedRaw, rawOfCooked, rawOfString, saveColumnInfo, setRaw, setRawRange, sqlDefinition, sqlTypeCode, sqlTypeDefinition, stringOfCooked, stringOfRaw, withNullable
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BinaryPoemType

public BinaryPoemType(boolean nullable,
                      int size)
Constructor.

Parameters:
nullable - whether nullable
size - how big
Method Detail

_assertValidRaw

protected void _assertValidRaw(Object raw)
                        throws ValidationPoemException
Specified by:
_assertValidRaw in class BasePoemType
Throws:
ValidationPoemException

_stringOfRaw

protected String _stringOfRaw(Object raw)
Overrides:
_stringOfRaw in class AtomPoemType

_getRaw

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

_setRaw

protected void _setRaw(PreparedStatement ps,
                       int col,
                       Object string)
                throws SQLException
Specified by:
_setRaw in class BasePoemType
Throws:
SQLException

_rawOfString

protected Object _rawOfString(String rawString)
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

_sqlDefinition

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

_canRepresent

protected boolean _canRepresent(SQLPoemType other)
Specified by:
_canRepresent in class BasePoemType

toString

public String toString()

Overrides:
toString in class BasePoemType
See Also:
BasePoemType.toString()

toDsdType

public 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

_quotedRaw

protected String _quotedRaw(Object raw)
Overrides:
_quotedRaw in class AtomPoemType


Copyright © 2000-2010 PanEris. All Rights Reserved.