|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectthinkmap.datasource.relational.Binding
thinkmap.datasource.database.SQLBinding
public class SQLBinding
A binding of output to a column in a sql query.
If neither columnIndex nor columnName is specified, this uses the property name.
| Constructor Summary | |
|---|---|
SQLBinding()
|
|
SQLBinding(int index)
|
|
| Method Summary | |
|---|---|
Object |
bind(Message message,
SourceEntity entity,
EntityId id,
Object results)
|
Object |
bindArgument(Message message,
SourceEntity entity,
EntityId id)
|
protected Object |
convertType(Object obj)
|
int |
getColumnIndex()
Get the column index to bind to. |
String |
getColumnName()
Get the column name to bind to. |
String |
getProperty(Message message,
SourceEntity entity,
EntityId id,
Object results)
Get the name of the property for this binding. |
void |
setColumnIndex(int i)
Set the column index to bind to. |
void |
setColumnName(String name)
Set the column name to bind to. |
| Methods inherited from class thinkmap.datasource.relational.Binding |
|---|
getOutputType, getProperty, setOutputType, setProperty |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SQLBinding()
public SQLBinding(int index)
| Method Detail |
|---|
public Object bindArgument(Message message,
SourceEntity entity,
EntityId id)
throws BindingException
BindingException
public Object bind(Message message,
SourceEntity entity,
EntityId id,
Object results)
throws BindingException
bind in class Bindingmessage - incoming messageentity - the entity being bound (may be null)id - the id of the entity being boundresults - context object; datasource-specific
BindingException
public String getProperty(Message message,
SourceEntity entity,
EntityId id,
Object results)
throws BindingException
Binding
getProperty in class Bindingmessage - incoming messageentity - the entity being bound (may be null)id - the id of the entity being boundresults - context object; datasource-specific
BindingExceptionpublic void setColumnName(String name)
name - column namepublic void setColumnIndex(int i)
i - column indexpublic String getColumnName()
name - column namepublic int getColumnIndex()
i - column index
protected Object convertType(Object obj)
throws BindingException
convertType in class BindingBindingException
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||