|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.lapetus_ltd._2009.xml.types.XLptsDBStatementColumnType
com.lapetus_ltd.api.db.xml.types.TLptsDBStatementColumnType
public class TLptsDBStatementColumnType
Class Description : Initialises the column type of the statement (for SELECT).
TLptsStatement
to store all the columns in a list after connection.
Field Summary |
---|
Fields inherited from class com.lapetus_ltd._2009.xml.types.XLptsDBStatementColumnType |
---|
allSelected, columnName, id, selected, sqlSubstitutedType, sqlType, tableId, tableName, upInsDelParameterItem |
Constructor Summary | |
---|---|
TLptsDBStatementColumnType()
This constructor initiates a Statement Column. |
|
TLptsDBStatementColumnType(java.lang.String tableId,
java.lang.String table,
java.lang.String column,
int type)
This constructor sets the Column values from arguments. |
|
TLptsDBStatementColumnType(XLptsDBStatementColumnType sct)
This constructor copies the column information from an existing XLptsDBStatementColumnType. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Checks for equality with another TLptsStatementsColumnType object. |
TLptsDBStatementColumnType |
getCopy()
Returns an identical copy of the TLptsDBStatementColumnType. |
void |
setUpInsDelParameterItem(XLptsDBUpInsDelType upInsDelParameterItem)
Sets the value of the upInsDelParameterItem property. |
java.lang.String |
toString()
Returns the columns name. |
Methods inherited from class com.lapetus_ltd._2009.xml.types.XLptsDBStatementColumnType |
---|
getColumnName, getId, getSqlSubstitutedType, getSqlType, getTableId, getTableName, getUpInsDelParameterItem, isAllSelected, isSelected, setAllSelected, setColumnName, setId, setSelected, setSqlSubstitutedType, setSqlType, setTableId, setTableName |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TLptsDBStatementColumnType()
This constructor initiates a Statement Column.
Thread Safe : Yes
Spawns its own Thread : No
May Return NULL : Never.
Notes : The default sql type is set to VARCHAR.
Example :
public TLptsDBStatementColumnType(java.lang.String tableId, java.lang.String table, java.lang.String column, int type)
This constructor sets the Column values from arguments.
Thread Safe : Yes
Spawns its own Thread : No
May Return NULL : Never.
Notes :
This is used by dbJAPI to set the column data from the connection. This also correlates the column to a table.
Example :
tableId
- column's table id.table
- column's table name.column
- is the column name.type
- is the SQL type.public TLptsDBStatementColumnType(XLptsDBStatementColumnType sct)
This constructor copies the column information from an existing XLptsDBStatementColumnType.
Thread Safe : Yes
Spawns its own Thread : No
May Return NULL : Never.
Notes : This is used by the project manager after loading a XLptsDBStatementColumnType from an XML file.
Example :
sct
- the class object to copy.Method Detail |
---|
public boolean equals(java.lang.Object obj)
Checks for equality with another TLptsStatementsColumnType object.
Thread Safe : Yes
Spawns its own Thread : No
May Return NULL : n/a
Notes :
Example :
equals
in class java.lang.Object
obj
- the Statement Column Type
public TLptsDBStatementColumnType getCopy()
Returns an identical copy of the TLptsDBStatementColumnType.
Thread Safe : Yes
Spawns its own Thread : No
May Return NULL : Never.
Notes : Use this function if you want to get an identical column.
Example :
TLptsStatementsColumnType column = new TLptsStatementsColumnType(); LinkedListnewColumnList = new LinkedList (); newColumnList.add(column.getCopy);
public void setUpInsDelParameterItem(XLptsDBUpInsDelType upInsDelParameterItem)
XLptsDBStatementColumnType
setUpInsDelParameterItem
in class XLptsDBStatementColumnType
upInsDelParameterItem
- allowed object is
XLptsDBUpInsDelType
public java.lang.String toString()
Returns the columns name.
Thread Safe : Yes
Spawns its own Thread : No
May Return NULL : Never.
Notes : Use this function if you want to get column name.
Example :
TLptsStatementsColumnType column = new TLptsStatementsColumnType(); private void printColumnName(TLptsStatementsColumnType column) { System.out.println(column.toString); System.out.println(column.getColumnName()); } Result : "First Name" Result : "First Name"
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |