jodd-db/src/main/java/jodd/db/oom/sqlgen/DbEntitySql.java
public DbSqlBuilder deleteById(final Object entityType, final Object id) {
		final String tableRef = createTableRefName(entityType);
		return sql().
			$(DELETE_FROM).table(entityType, null, tableRef).
			$(WHERE).refId(tableRef).$(EQUALS).columnValue(id);
	}
public DbSqlBuilder deleteById(final Object entityType, final Object id) {
		final String tableRef = createTableRefName(entityType);
		return sql().
			$(DELETE_FROM).table(entityType, null, tableRef).
			$(WHERE).refId(tableRef).$(EQUALS).columnValue(id);
	}
public DbSqlBuilder deleteById ( final Object entityType , final Object id ) { final String tableRef = createTableRefName ( entityType ) ; return sql ( ) . $ ( DELETE_FROM ) . table ( entityType , null , tableRef ) . $ ( WHERE ) . refId ( tableRef ) . $ ( EQUALS ) . columnValue ( id ) ; }
Creates DELETE query that deletes entity by ID.
Creates DELETE query that deletes entity by ID .