fluid-api/src/main/java/com/fluidbpm/program/api/vo/sqlutil/sqlnative/SQLColumn.java
@Override
    public JSONObject toJsonObject() throws JSONException {

        JSONObject returnVal = super.toJsonObject();

        //Name...
        if(this.getColumnName() != null)
        {
            returnVal.put(JSONMapping.COLUMN_NAME,
                    this.getColumnName());
        }
        
        //Index...
        if(this.getColumnIndex() != null)
        {
            returnVal.put(JSONMapping.COLUMN_INDEX,
                    this.getColumnIndex());
        }

        //SQL Type...
        if(this.getSqlType() != null)
        {
            returnVal.put(
                    JSONMapping.SQL_TYPE,this.getSqlType());
        }

        //SQL Value...
        if(this.getSqlValue() != null)
        {
            returnVal.put(JSONMapping.SQL_VALUE,
                    this.getSqlValue());
        }

        return returnVal;
    }
@Override
    public JSONObject toJsonObject() throws JSONException {

        JSONObject returnVal = super.toJsonObject();

        //Name...
        if(this.getColumnName() != null)
        {
            returnVal.put(JSONMapping.COLUMN_NAME,
                    this.getColumnName());
        }
        
        //Index...
        if(this.getColumnIndex() != null)
        {
            returnVal.put(JSONMapping.COLUMN_INDEX,
                    this.getColumnIndex());
        }

        //SQL Type...
        if(this.getSqlType() != null)
        {
            returnVal.put(
                    JSONMapping.SQL_TYPE,this.getSqlType());
        }

        //SQL Value...
        if(this.getSqlValue() != null)
        {
            returnVal.put(JSONMapping.SQL_VALUE,
                    this.getSqlValue());
        }

        return returnVal;
    }
@ Override public JSONObject toJsonObject ( ) throws JSONException { JSONObject returnVal = super . toJsonObject ( ) ; //Name... if ( this . getColumnName ( ) != null ) { returnVal . put ( JSONMapping . COLUMN_NAME , this . getColumnName ( ) ) ; } //Index... if ( this . getColumnIndex ( ) != null ) { returnVal . put ( JSONMapping . COLUMN_INDEX , this . getColumnIndex ( ) ) ; } //SQL Type... if ( this . getSqlType ( ) != null ) { returnVal . put ( JSONMapping . SQL_TYPE , this . getSqlType ( ) ) ; } //SQL Value... if ( this . getSqlValue ( ) != null ) { returnVal . put ( JSONMapping . SQL_VALUE , this . getSqlValue ( ) ) ; } return returnVal ; }
Conversion to {@code JSONObject} from Java Object.

@return {@code JSONObject} representation of {@code UserQuery}
@throws JSONException If there is a problem with the JSON Body.

@see ABaseFluidJSONObject#toJsonObject()
Conversion to { @code JSONObject } from Java Object .