Inheritance: implements Storm\Core\Relational\IColumn, use trait Storm\Core\Helpers\Type
Esempio n. 1
0
 public function GetColumnDirection(Column $Column)
 {
     if (isset($this->Directions[$Column->GetName()])) {
         return $this->Directions[$Column->GetName()];
     } else {
         return IndexDirection::Ascending;
     }
 }
 public function __construct(Column $Column, CoreExpression $ValueExpression)
 {
     $this->PersistExpression = $Column instanceof Column ? $Column->GetDataType()->GetPersistExpression($ValueExpression) : $ValueExpression;
 }
Esempio n. 3
0
 public final function AppendColumnData(Relational\Columns\Column $Column, $Value)
 {
     $ValueExpression = Relational\Expressions\Expression::Constant($Value);
     $PersistExpression = $Column->GetDataType()->GetPersistExpression($ValueExpression);
     if ($ValueExpression === $PersistExpression) {
         $this->AppendSingleValue($Value);
     } else {
         $this->ExpressionCompiler->Append($this, $PersistExpression);
     }
 }
Esempio n. 4
0
 public function __construct($Name, $Length, $Precision, $Unsigned = false)
 {
     parent::__construct($Name, new Columns\DataType('DECIMAL', [$Length, $Precision], $Unsigned ? 'UNSIGNED' : '', ParameterType::String));
 }
Esempio n. 5
0
 private function AppendColumnPosition(QueryBuilder $QueryBuilder, Column $PreviousColumn = null)
 {
     return $PreviousColumn === null ? $QueryBuilder->Append('FIRST') : $QueryBuilder->AppendIdentifier('AFTER #', [$PreviousColumn->GetName()]);
 }