com.is.jrf
Class StringArrayJoinColumn
java.lang.Object
|
+--com.is.jrf.JoinColumn
|
+--com.is.jrf.StringArrayJoinColumn
- public class StringArrayJoinColumn
- extends JoinColumn
This subclass of JoinColumn represents a String array column we want
joined from another table.
Field Summary |
protected java.lang.String |
i_delimiter
|
protected static java.lang.Class |
s_class
|
Constructor Summary |
StringArrayJoinColumn(java.lang.String columnName,
java.lang.String setterName)
Construct an instance that is ready to be used. |
StringArrayJoinColumn(java.lang.String columnName,
java.lang.String columnAlias,
java.lang.String setterName)
Construct an instance that is ready to be used. |
Method Summary |
java.lang.Class |
getColumnClass()
|
java.lang.Object |
getColumnValueFrom(JDBCHelper helper)
This is usually overridden by subclasses to explicitly specify the type
of object to be retrieved from the result set in JDBCHelper. |
void |
setDelimiter(java.lang.String delimiter)
Sets the delimiter used to delimit the String stored
in the database.
The default delimiter is the comma, ",". |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
s_class
protected static final java.lang.Class s_class
i_delimiter
protected java.lang.String i_delimiter
StringArrayJoinColumn
public StringArrayJoinColumn(java.lang.String columnName,
java.lang.String setterName)
- Construct an instance that is ready to be used.
- Parameters:
columnName
- a value of type 'String' - can include the alias
like this: "Name PersonName"setterName
- a value of type 'String'
StringArrayJoinColumn
public StringArrayJoinColumn(java.lang.String columnName,
java.lang.String columnAlias,
java.lang.String setterName)
- Construct an instance that is ready to be used.
- Parameters:
columnName
- a value of type 'String'columnAlias
- a value of type 'String'setterName
- a value of type 'String'
setDelimiter
public void setDelimiter(java.lang.String delimiter)
- Sets the delimiter used to delimit the String stored
in the database.
The default delimiter is the comma, ",".
getColumnValueFrom
public java.lang.Object getColumnValueFrom(JDBCHelper helper)
throws java.sql.SQLException
- Description copied from class:
JoinColumn
- This is usually overridden by subclasses to explicitly specify the type
of object to be retrieved from the result set in JDBCHelper.
- Overrides:
getColumnValueFrom
in class JoinColumn
- Following copied from class:
com.is.jrf.JoinColumn
- Parameters:
helper
- a value of type 'JDBCHelper'- Returns:
- a value of type 'Object'
- Throws:
java.sql.SQLException
- if an error occurs
getColumnClass
public java.lang.Class getColumnClass()
- Overrides:
getColumnClass
in class JoinColumn