org.melati.poem.dbms
Class MySQL.MySQLBooleanPoemType
java.lang.Object
org.melati.poem.BasePoemType<T>
org.melati.poem.AtomPoemType
org.melati.poem.BooleanPoemType
org.melati.poem.dbms.MySQL.MySQLBooleanPoemType
- All Implemented Interfaces:
- Cloneable, PoemType, SQLPoemType, SQLType
- Enclosing class:
- MySQL
public static class MySQL.MySQLBooleanPoemType
- extends BooleanPoemType
Translates a MySQL Boolean into a Poem BooleanType
.
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 |
MySQL.MySQLBooleanPoemType
public MySQL.MySQLBooleanPoemType(boolean nullable)
- Constructor.
- Parameters:
nullable
- whether nullable
_getRaw
protected Object _getRaw(ResultSet rs,
int col)
throws SQLException
- Overrides:
_getRaw
in class BooleanPoemType
- Throws:
SQLException
_setRaw
protected void _setRaw(PreparedStatement ps,
int col,
Object bool)
throws SQLException
- Overrides:
_setRaw
in class BooleanPoemType
- Throws:
SQLException
_rawOfString
protected Object _rawOfString(String rawString)
throws ParsingPoemException
- We could use original method from BooleanPoemType,
it too recognizes 0/1.
Converts a non-null string to an appropriate value
for insertion into the underlying DBMS.
- Overrides:
_rawOfString
in class BooleanPoemType
- Throws:
ParsingPoemException
- See Also:
BooleanPoemType._rawOfString(java.lang.String)
Copyright © 2000-2010 PanEris. All Rights Reserved.