com.avaje.ebean.config.dbplatform
Class MySqlBlob

java.lang.Object
  extended by com.avaje.ebean.config.dbplatform.DbType
      extended by com.avaje.ebean.config.dbplatform.MySqlBlob

public class MySqlBlob
extends DbType

Support for blob, mediumblob or longblob selection based on the deployment length.

If no deployment length is defined longblob is used.


Constructor Summary
MySqlBlob()
           
 
Method Summary
 String renderType(int deployLength, int deployScale)
          Return the type for a specific property that incorporates the name, length, precision and scale.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MySqlBlob

public MySqlBlob()
Method Detail

renderType

public String renderType(int deployLength,
                         int deployScale)
Description copied from class: DbType
Return the type for a specific property that incorporates the name, length, precision and scale.

The deployLength and deployScale are for the property we are rendering the DB type for.

Overrides:
renderType in class DbType
Parameters:
deployLength - the length or precision defined by deployment on a specific property.
deployScale - the scale defined by deployment on a specific property.


Copyright © 2010. All Rights Reserved.