org.melati.poem.test
Class SqlExceptionPoemType
java.lang.Object
org.melati.poem.BasePoemType<T>
org.melati.poem.AtomPoemType
org.melati.poem.test.SqlExceptionPoemType
- All Implemented Interfaces:
- Cloneable, org.melati.poem.PoemType, org.melati.poem.SQLPoemType, org.melati.poem.SQLType
public class SqlExceptionPoemType
- extends org.melati.poem.AtomPoemType
A PoemType which throws an exception when used.
- Since:
- 3 February 2007
- Author:
- timp
| Fields inherited from class org.melati.poem.AtomPoemType |
sqlTypeName |
| Fields inherited from class org.melati.poem.BasePoemType |
nullable |
| Methods inherited from class org.melati.poem.AtomPoemType |
_assertValidCooked, _cookedOfRaw, _quotedRaw, _rawOfCooked, _sqlDefinition, _stringOfCooked, _stringOfRaw, _toString |
| 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, toString, withNullable |
SqlExceptionPoemType
public SqlExceptionPoemType(boolean nullable)
- Constructor.
- Parameters:
nullable - whether nullable or not
_assertValidRaw
protected void _assertValidRaw(Object raw)
throws org.melati.poem.ValidationPoemException
-
- Specified by:
_assertValidRaw in class org.melati.poem.BasePoemType
- Throws:
org.melati.poem.ValidationPoemException- See Also:
BasePoemType._assertValidRaw(java.lang.Object)
_canRepresent
protected boolean _canRepresent(org.melati.poem.SQLPoemType other)
-
- Specified by:
_canRepresent in class org.melati.poem.BasePoemType
- See Also:
BasePoemType._canRepresent(org.melati.poem.SQLPoemType)
_getRaw
protected Object _getRaw(ResultSet rs,
int col)
throws SQLException
-
- Specified by:
_getRaw in class org.melati.poem.BasePoemType
- Throws:
SQLException- See Also:
BasePoemType._getRaw(java.sql.ResultSet, int)
_rawOfString
protected Object _rawOfString(String string)
throws org.melati.poem.ParsingPoemException
-
- Specified by:
_rawOfString in class org.melati.poem.BasePoemType
- Throws:
org.melati.poem.ParsingPoemException- See Also:
BasePoemType._rawOfString(java.lang.String)
_saveColumnInfo
protected void _saveColumnInfo(org.melati.poem.ColumnInfo info)
throws org.melati.poem.AccessPoemException
-
- Specified by:
_saveColumnInfo in class org.melati.poem.BasePoemType
- Throws:
org.melati.poem.AccessPoemException- See Also:
BasePoemType._saveColumnInfo(org.melati.poem.ColumnInfo)
_setRaw
protected void _setRaw(PreparedStatement ps,
int col,
Object raw)
throws SQLException
-
- Specified by:
_setRaw in class org.melati.poem.BasePoemType
- Throws:
SQLException- See Also:
BasePoemType._setRaw(java.sql.PreparedStatement, int,
java.lang.Object)
sqlDefaultValue
public String sqlDefaultValue(org.melati.poem.dbms.Dbms dbms)
-
- Specified by:
sqlDefaultValue in interface org.melati.poem.SQLType- Overrides:
sqlDefaultValue in class org.melati.poem.AtomPoemType
- See Also:
org.melati.poem.SQLType#sqlDefaultValue()
toDsdType
public String toDsdType()
-
- See Also:
PoemType.toDsdType()
Copyright © 2000-2010 PanEris. All Rights Reserved.