org.mentabean.type
Class NowOnInsertAndUpdateTimestampType

java.lang.Object
  extended by org.mentabean.type.TimestampType
      extended by org.mentabean.type.NowOnInsertAndUpdateTimestampType
All Implemented Interfaces:
DBType<Date>

public class NowOnInsertAndUpdateTimestampType
extends TimestampType


Constructor Summary
NowOnInsertAndUpdateTimestampType()
           
 
Method Summary
 boolean canBeNull()
          Returns whether this type can be NULL in the database.
 NowOnInsertAndUpdateTimestampType nullable(boolean flag)
           
 
Methods inherited from class org.mentabean.type.TimestampType
bindToStmt, getAnsiType, getFromResultSet, getFromResultSet, getTypeClass, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NowOnInsertAndUpdateTimestampType

public NowOnInsertAndUpdateTimestampType()
Method Detail

canBeNull

public boolean canBeNull()
Description copied from interface: DBType
Returns whether this type can be NULL in the database. This is used by the session.createTable() method.

Specified by:
canBeNull in interface DBType<Date>
Overrides:
canBeNull in class TimestampType
Returns:
true if field can be NULL in the database.

nullable

public NowOnInsertAndUpdateTimestampType nullable(boolean flag)
Overrides:
nullable in class TimestampType


Copyright © 2013. All Rights Reserved.