rs.sol.soloist.server.builtindomains.builtindatatypes
Class File.AsBlob

java.lang.Object
  extended by rs.sol.soloist.server.javaimpl.db.mapping.handlers.AbstractDataTypeHandler<File>
      extended by rs.sol.soloist.server.builtindomains.builtindatatypes.File.AsBlob
All Implemented Interfaces:
rs.sol.soloist.server.javaimpl.db.mapping.IDataTypeHandler<File>
Enclosing class:
File

public static class File.AsBlob
extends rs.sol.soloist.server.javaimpl.db.mapping.handlers.AbstractDataTypeHandler<File>

File stored as BLOB

Author:
marko.ninkovic

Constructor Summary
File.AsBlob()
           
 
Method Summary
 rs.sol.soloist.server.javaimpl.db.model.Column.Type getColumnType()
           
 File readValue(IDataType type, java.sql.ResultSet sqlResultSet, int columnIndex)
           
 java.lang.String toSQLString(File value)
          Note: this might be specific to MySQL
 void writeValue(java.sql.PreparedStatement sqlPStmt, int parameterIndex, File value)
           
 
Methods inherited from class rs.sol.soloist.server.javaimpl.db.mapping.handlers.AbstractDataTypeHandler
getSQLType, getSQLType, getSQLType
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

File.AsBlob

public File.AsBlob()
Method Detail

getColumnType

public rs.sol.soloist.server.javaimpl.db.model.Column.Type getColumnType()

readValue

public File readValue(IDataType type,
                      java.sql.ResultSet sqlResultSet,
                      int columnIndex)
               throws java.sql.SQLException
Throws:
java.sql.SQLException

toSQLString

public java.lang.String toSQLString(File value)
Note: this might be specific to MySQL


writeValue

public void writeValue(java.sql.PreparedStatement sqlPStmt,
                       int parameterIndex,
                       File value)
                throws java.sql.SQLException
Throws:
java.sql.SQLException