Package de.businesscode.bcdui.binding
Class SimpleBindingItem
- java.lang.Object
-
- de.businesscode.bcdui.binding.SimpleBindingItem
-
- Direct Known Subclasses:
BindingItem
public class SimpleBindingItem extends java.lang.Object
Base class for BindingItems read from a BindingSet definition or calc:Calc of a Wrs It becomes member of a (Wrs|Standard)BindingSet See also WrqBindingItem for the analogy used during actual statement representing the output
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
BCD_NO_TABLE_ALIAS
protected java.lang.String
columnExpression
static java.util.regex.Pattern
pureColumnNamePattern
protected java.lang.String
qColumnExpr
static java.util.regex.Pattern
wordPattern
-
Constructor Summary
Constructors Constructor Description SimpleBindingItem(BindingSet pBindingSet, java.lang.String id, java.lang.String pColumnExpression, boolean columnQuoting)
ConstructorSimpleBindingItem(SimpleBindingItem src)
Copy constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BindingSet
getBindingSet()
getBindingSetjava.lang.String
getColumnExpression()
gets column expressionjava.lang.String
getId()
gets id of itemjava.lang.String
getQColumnExpression(java.lang.String tableAlias)
Helper to merge a table alias into a column expression, which can contain SQL functions etc Method calcQColumnExpressionboolean
isColumnQuoting()
void
setBindingSet(BindingSet bindingSet)
setBindingSetvoid
setColumnExpression(java.lang.String columnExpressionPar)
setColumnExpressionvoid
setId(java.lang.String id)
sets id of itemvoid
toXML(javax.xml.stream.XMLStreamWriter writer, boolean withColumnExpression)
Prints an XML representation of the BindingItem.
-
-
-
Field Detail
-
BCD_NO_TABLE_ALIAS
public static final java.lang.String BCD_NO_TABLE_ALIAS
- See Also:
- Constant Field Values
-
wordPattern
public static final java.util.regex.Pattern wordPattern
-
pureColumnNamePattern
public static final java.util.regex.Pattern pureColumnNamePattern
-
columnExpression
protected java.lang.String columnExpression
-
qColumnExpr
protected java.lang.String qColumnExpr
-
-
Constructor Detail
-
SimpleBindingItem
public SimpleBindingItem(SimpleBindingItem src)
Copy constructor.
-
SimpleBindingItem
public SimpleBindingItem(BindingSet pBindingSet, java.lang.String id, java.lang.String pColumnExpression, boolean columnQuoting)
Constructor- Parameters:
pBindingSet
-id
-pColumnExpression
- - true - if item is SQL expressioncolumnQuoting
-
-
-
Method Detail
-
toXML
public void toXML(javax.xml.stream.XMLStreamWriter writer, boolean withColumnExpression) throws javax.xml.stream.XMLStreamException
Prints an XML representation of the BindingItem.- Parameters:
writer
- The writer instance to print the data to.- Throws:
javax.xml.stream.XMLStreamException
-
getBindingSet
public BindingSet getBindingSet()
getBindingSet- Returns:
-
setBindingSet
public void setBindingSet(BindingSet bindingSet)
setBindingSet
-
getQColumnExpression
public java.lang.String getQColumnExpression(java.lang.String tableAlias)
Helper to merge a table alias into a column expression, which can contain SQL functions etc Method calcQColumnExpression
-
getColumnExpression
public java.lang.String getColumnExpression()
gets column expression
-
setColumnExpression
public void setColumnExpression(java.lang.String columnExpressionPar)
setColumnExpression- Parameters:
columnExpressionPar
-
-
setId
public void setId(java.lang.String id)
sets id of item
-
getId
public java.lang.String getId()
gets id of item
-
isColumnQuoting
public boolean isColumnQuoting()
-
-