Package de.jaggl.sqlbuilder.columns
Class Column
- java.lang.Object
-
- de.jaggl.sqlbuilder.columns.Column
-
- All Implemented Interfaces:
Aliasable,Definable,Groupable,Selectable,Valuable
- Direct Known Subclasses:
DateColumn,DateTimeColumn,NumberColumn,StringColumn
public abstract class Column extends Object implements Groupable, Selectable, Definable
- Since:
- 2.0.0
- Author:
- Martin Schumacher
-
-
Field Summary
Fields Modifier and Type Field Description protected ColumnDefinitioncolumnDefinitionprotected Stringnameprotected Tabletable
-
Constructor Summary
Constructors Constructor Description Column()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Conditioneq(Column otherColumn)Alias forisEqualTo(Column)for shorter statementsStringgetFullName(BuildingContext context)StringgetFullNameOrAlias(BuildingContext context)StringgetValue(BuildingContext context, Indentation indentation)ConditionisEqualTo(Column otherColumn)ConditionisNotEqualTo(Column otherColumn)ConditionisNotNull()ConditionisNull()ConditionnEq(Column otherColumn)Alias forisNotEqualTo(Column)for shorter statements-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.jaggl.sqlbuilder.domain.Definable
getColumnDefinition
-
-
-
-
Field Detail
-
table
protected Table table
-
name
protected String name
-
columnDefinition
protected ColumnDefinition columnDefinition
-
-
Method Detail
-
getValue
public String getValue(BuildingContext context, Indentation indentation)
-
getFullName
public String getFullName(BuildingContext context)
-
getFullNameOrAlias
public String getFullNameOrAlias(BuildingContext context)
-
isNull
public Condition isNull()
-
isNotNull
public Condition isNotNull()
-
eq
public Condition eq(Column otherColumn)
Alias forisEqualTo(Column)for shorter statements
-
nEq
public Condition nEq(Column otherColumn)
Alias forisNotEqualTo(Column)for shorter statements
-
-