|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.db2.tools.repl.publication.ColumnSchema
The ColumnSchema class reprenents a column defintion in a table. These objects are used in the SubscriptionSchemaMsg and the AddColumnSchemaMsg.
Field Summary | |
---|---|
protected int |
codepage
|
protected boolean |
key
|
protected int |
length
|
protected java.lang.String |
name
|
protected int |
precision
|
protected int |
scale
|
protected java.lang.String |
type
|
Constructor Summary | |
---|---|
ColumnSchema()
|
Method Summary | |
---|---|
int |
getCodepage()
Returns the codepage of the column. |
int |
getJDBCType()
Returns the datatype of the column as a JDBC type. |
int |
getLength()
Returns the length of the column. |
java.lang.String |
getName()
Returns the name of the column. |
int |
getPrecision()
Returns the precision of the column. |
int |
getScale()
Returns the scale of the column. |
java.lang.String |
getType()
Returns the datatype of the column. |
boolean |
isKey()
Returns true if the column is a key column. |
void |
setCodepage(int i)
This method has no effect when used by a PublicationListener. |
void |
setKey(boolean b)
This method has no effect when used by a PublicationListener. |
void |
setLength(int i)
This method has no effect when used by a PublicationListener. |
void |
setName(java.lang.String string)
This method has no effect when used by a PublicationListener. |
void |
setPrecision(int i)
This method has no effect when used by a PublicationListener. |
void |
setScale(int i)
This method has no effect when used by a PublicationListener. |
void |
setType(java.lang.String string)
This method has no effect when used by a PublicationListener. |
java.lang.String |
toString()
Override so we can print the values in a nice textual format. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected java.lang.String name
protected java.lang.String type
protected int length
protected int precision
protected int scale
protected int codepage
protected boolean key
Constructor Detail |
public ColumnSchema()
Method Detail |
public int getCodepage()
public boolean isKey()
public int getLength()
public java.lang.String getName()
public int getPrecision()
public int getScale()
public java.lang.String getType()
public int getJDBCType()
public void setCodepage(int i)
i
- public void setKey(boolean b)
b
- public void setLength(int i)
i
- public void setName(java.lang.String string)
string
- public void setPrecision(int i)
i
- public void setScale(int i)
i
- public void setType(java.lang.String string)
string
- public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |