@Override
public boolean criar(Voo voo) {
boolean executed = false;
if (voo != null) {
Aeronave aeronave = voo.getAeronave();
executed = new SqlStatementWrapper()
.prepare()
.with("insert into FLIGHT.VOO")
.with("(AERONAVE_ID, CODIGO, ORIGEM, DESTINO, ESCALA,")
.with("DATA_PARTIDA, DATA_CHEGADA, STATUS, ASSENTO_LIVRE, PRECO)")
.with("values (")
.with("?,", aeronave.getId())
.with("?,", voo.getCodigo())
.with("?,", voo.getOrigem())
.with("?,", voo.getDestino())
.with("?,", voo.getEscala())
.with("?,", voo.getDataDePartida())