static select(params, tableXSchema, user, columns = []) {
		columns = _arrFrom(columns);
		if (!columns.length || columns[0] === '*') {
			columns = Object.keys(tableXSchema.fields);
		}
        // ---------------
        // OBJECT_QUERY
        // ---------------
        var OBJECT_QUERY = new Query(params, tableXSchema, user);
		// The UAC fields control
		if (0) {
			_each(OBJECT_QUERY.deriveFieldsAccess(columns, 'view'), (field, accessPassExpression) => {
				OBJECT_QUERY.select.push('IF(' + accessPassExpression + ' <> 0, ' + OBJECT_QUERY.alias + '.' + field + ', NULL) AS ' + field);
			});
		} else {
			OBJECT_QUERY.select.push(...columns);
		}
        return OBJECT_QUERY;
	}
/**
	 * Creates the UAC logic that sets the value of each field conditionally.
	 *
	 * @param object            params
	 * @param array				tableXSchema
	 * @param object            user
	 * @param array				columns
	 *
	 * @return Query
	 */
Creates the UAC logic that sets the value of each field conditionally.

@return Query
Creates the UAC logic that sets the value of each field conditionally . @return Query
static select(params, tableXSchema, user, columns = []) {
		columns = _arrFrom(columns);
		if (!columns.length || columns[0] === '*') {
			columns = Object.keys(tableXSchema.fields);
		}
        var OBJECT_QUERY = new Query(params, tableXSchema, user);
		if (0) {
			_each(OBJECT_QUERY.deriveFieldsAccess(columns, 'view'), (field, accessPassExpression) => {
				OBJECT_QUERY.select.push('IF(' + accessPassExpression + ' <> 0, ' + OBJECT_QUERY.alias + '.' + field + ', NULL) AS ' + field);
			});
		} else {
			OBJECT_QUERY.select.push(...columns);
		}
        return OBJECT_QUERY;
	}
static select ( params , tableXSchema , user , columns = [ ] ) { columns = _arrFrom ( columns ) ; if ( ! columns . length || columns [ 0 ] === '*' ) { columns = Object . keys ( tableXSchema . fields ) ; } var OBJECT_QUERY = new Query ( params , tableXSchema , user ) ; if ( 0 ) { _each ( OBJECT_QUERY . deriveFieldsAccess ( columns , 'view' ) , ( field , accessPassExpression ) => { OBJECT_QUERY . select . push ( 'IF(' + accessPassExpression + ' <> 0, ' + OBJECT_QUERY . alias + '.' + field + ', NULL) AS ' + field ) ; } ) ; } else { OBJECT_QUERY . select . push ( ... columns ) ; } return OBJECT_QUERY ; }
Creates the UAC logic that sets the value of each field conditionally.
Creates the UAC logic that sets the value of each field conditionally .
// --------------- // OBJECT_QUERY // --------------- // The UAC fields control