org.apache.cayenne.merge
Interface ValueForNullProvider

All Known Implementing Classes:
DefaultValueForNullProvider

public interface ValueForNullProvider


Method Summary
 List<String> createSql(DbEntity entity, DbAttribute column)
           
 boolean hasValueFor(DbEntity entity, DbAttribute column)
           
 

Method Detail

hasValueFor

boolean hasValueFor(DbEntity entity,
                    DbAttribute column)
Returns:
true if there exist a value that should be inserted for null values

createSql

List<String> createSql(DbEntity entity,
                       DbAttribute column)
Returns:
a List of sql to set value for null


Copyright © 2001-2011 Apache Cayenne. All Rights Reserved.