Code example for SQLiteStatement

Methods: bindLongbindStringclearBindings

0
    } 
 
    /** @inheritdoc */ 
    @Override 
    protected void bindValues(SQLiteStatement stmt, Person entity) {
        stmt.clearBindings();
  
        Long id = entity.getId();
        if (id != null) {
            stmt.bindLong(1, id);
        } 
        stmt.bindString(2, entity.getUuid());
  
        String name = entity.getName();
        if (name != null) {
            stmt.bindString(3, name);
        } 
  
        String email = entity.getEmail();
        if (email != null) {
            stmt.bindString(4, email);
        } 
  
        String bio = entity.getBio();
        if (bio != null) {
            stmt.bindString(5, bio);
        } 
  
        java.util.Date registered = entity.getRegistered();
        if (registered != null) {
            stmt.bindLong(6, registered.getTime());
        } 
    } 
 
    /** @inheritdoc */ 
    @Override 
Connect your IDE to all the code out there  Get Codota for Java