public function generateBlockStorage($object, $isPrimaryKey = false)
    {
        $vendorSpecific = $object->getVendorInfoForType('oracle');
        if ($vendorSpecific->isEmpty()) {
            return '';
        }

        if ($isPrimaryKey) {
            $physicalParameters = "
USING INDEX
";
            $prefix = "PK";
        } else {
            $physicalParameters = "\n";
            $prefix = "";
        }

        if ($vendorSpecific->hasParameter($prefix . 'PCTFree')) {
            $physicalParameters .= "PCTFREE " . $vendorSpecific->getParameter($prefix . 'PCTFree') . "
";
        }
        if ($vendorSpecific->hasParameter($prefix . 'InitTrans')) {
            $physicalParameters .= "INITRANS " . $vendorSpecific->getParameter($prefix . 'InitTrans') . "
";
        }
        if ($vendorSpecific->hasParameter($prefix . 'MinExtents') || $vendorSpecific->hasParameter($prefix . 'MaxExtents') || $vendorSpecific->hasParameter($prefix . 'PCTIncrease')) {
            $physicalParameters .= "STORAGE
(
";
            if ($vendorSpecific->hasParameter($prefix . 'MinExtents')) {
                $physicalParameters .= "	MINEXTENTS " . $vendorSpecific->getParameter($prefix . 'MinExtents') . "
";
            }
            if ($vendorSpecific->hasParameter($prefix . 'MaxExtents')) {
                $physicalParameters .= "	MAXEXTENTS " . $vendorSpecific->getParameter($prefix . 'MaxExtents') . "
";
            }
            if ($vendorSpecific->hasParameter($prefix . 'PCTIncrease')) {
                $physicalParameters .= "	PCTINCREASE " . $vendorSpecific->getParameter($prefix . 'PCTIncrease') . "
";
            }
            $physicalParameters .= ")
";
        }
        if ($vendorSpecific->hasParameter($prefix . 'Tablespace')) {
            $physicalParameters .= "TABLESPACE " . $vendorSpecific->getParameter($prefix . 'Tablespace');
        }

        return $physicalParameters;
    }
public function generateBlockStorage($object, $isPrimaryKey = false)
    {
        $vendorSpecific = $object->getVendorInfoForType('oracle');
        if ($vendorSpecific->isEmpty()) {
            return '';
        }

        if ($isPrimaryKey) {
            $physicalParameters = "
USING INDEX
";
            $prefix = "PK";
        } else {
            $physicalParameters = "\n";
            $prefix = "";
        }

        if ($vendorSpecific->hasParameter($prefix . 'PCTFree')) {
            $physicalParameters .= "PCTFREE " . $vendorSpecific->getParameter($prefix . 'PCTFree') . "
";
        }
        if ($vendorSpecific->hasParameter($prefix . 'InitTrans')) {
            $physicalParameters .= "INITRANS " . $vendorSpecific->getParameter($prefix . 'InitTrans') . "
";
        }
        if ($vendorSpecific->hasParameter($prefix . 'MinExtents') || $vendorSpecific->hasParameter($prefix . 'MaxExtents') || $vendorSpecific->hasParameter($prefix . 'PCTIncrease')) {
            $physicalParameters .= "STORAGE
(
";
            if ($vendorSpecific->hasParameter($prefix . 'MinExtents')) {
                $physicalParameters .= "	MINEXTENTS " . $vendorSpecific->getParameter($prefix . 'MinExtents') . "
";
            }
            if ($vendorSpecific->hasParameter($prefix . 'MaxExtents')) {
                $physicalParameters .= "	MAXEXTENTS " . $vendorSpecific->getParameter($prefix . 'MaxExtents') . "
";
            }
            if ($vendorSpecific->hasParameter($prefix . 'PCTIncrease')) {
                $physicalParameters .= "	PCTINCREASE " . $vendorSpecific->getParameter($prefix . 'PCTIncrease') . "
";
            }
            $physicalParameters .= ")
";
        }
        if ($vendorSpecific->hasParameter($prefix . 'Tablespace')) {
            $physicalParameters .= "TABLESPACE " . $vendorSpecific->getParameter($prefix . 'Tablespace');
        }

        return $physicalParameters;
    }
public function generateBlockStorage ( $ object , $ isPrimaryKey = false ) { $ vendorSpecific = $ object -> getVendorInfoForType ( 'oracle' ) ; if ( $ vendorSpecific -> isEmpty ( ) ) { return '' ; } if ( $ isPrimaryKey ) { $ physicalParameters = "
USING INDEX
" ; $ prefix = "PK" ; } else { $ physicalParameters = "\n" ; $ prefix = "" ; } if ( $ vendorSpecific -> hasParameter ( $ prefix . 'PCTFree' ) ) { $ physicalParameters .= "PCTFREE " . $ vendorSpecific -> getParameter ( $ prefix . 'PCTFree' ) . "
" ; } if ( $ vendorSpecific -> hasParameter ( $ prefix . 'InitTrans' ) ) { $ physicalParameters .= "INITRANS " . $ vendorSpecific -> getParameter ( $ prefix . 'InitTrans' ) . "
" ; } if ( $ vendorSpecific -> hasParameter ( $ prefix . 'MinExtents' ) || $ vendorSpecific -> hasParameter ( $ prefix . 'MaxExtents' ) || $ vendorSpecific -> hasParameter ( $ prefix . 'PCTIncrease' ) ) { $ physicalParameters .= "STORAGE
(
" ; if ( $ vendorSpecific -> hasParameter ( $ prefix . 'MinExtents' ) ) { $ physicalParameters .= "	MINEXTENTS " . $ vendorSpecific -> getParameter ( $ prefix . 'MinExtents' ) . "
" ; } if ( $ vendorSpecific -> hasParameter ( $ prefix . 'MaxExtents' ) ) { $ physicalParameters .= "	MAXEXTENTS " . $ vendorSpecific -> getParameter ( $ prefix . 'MaxExtents' ) . "
" ; } if ( $ vendorSpecific -> hasParameter ( $ prefix . 'PCTIncrease' ) ) { $ physicalParameters .= "	PCTINCREASE " . $ vendorSpecific -> getParameter ( $ prefix . 'PCTIncrease' ) . "
" ; } $ physicalParameters .= ")
" ; } if ( $ vendorSpecific -> hasParameter ( $ prefix . 'Tablespace' ) ) { $ physicalParameters .= "TABLESPACE " . $ vendorSpecific -> getParameter ( $ prefix . 'Tablespace' ) ; } return $ physicalParameters ; }
Generate oracle block storage

@param Table|Index $object       object with vendor parameters
@param bool        $isPrimaryKey is a primary key vendor part

@return string oracle vendor sql part
Generate oracle block storage