public int create ( DatabaseConnection databaseConnection , T data , ObjectCache objectCache ) throws SQLException { if ( mappedInsert == null ) { mappedInsert = MappedCreate . build ( dao , tableInfo ) ; } int result = mappedInsert . insert ( databaseType , databaseConnection , data , objectCache ) ; if ( dao != null && ! localIsInBatchMode . get ( ) ) { dao . notifyChanges ( ) ; } return result ; }
Create a new entry in the database from an object .