com.continuent.tungsten.replicator.database
Class Column

java.lang.Object
  extended by com.continuent.tungsten.replicator.database.Column
All Implemented Interfaces:
java.io.Serializable

public class Column
extends java.lang.Object
implements java.io.Serializable

This class defines a Column

Version:
1.0
Author:
Scott Martin
See Also:
Serialized Form

Constructor Summary
Column()
          Deprecated. 
Column(java.lang.String name, int type)
           
Column(java.lang.String name, int type, boolean isNotNull)
           
Column(java.lang.String name, int type, boolean isNotNull, boolean isSigned)
           
Column(java.lang.String name, int type, int length)
           
Column(java.lang.String name, int type, int length, boolean isNotNull)
           
Column(java.lang.String name, int type, long colLength, boolean isNotNull, java.io.Serializable value)
           
 
Method Summary
 void Dump()
           
 long getLength()
           
 java.lang.String getName()
           
 int getPosition()
           
 int getType()
           
 java.lang.String getTypeDescription()
           
 java.io.Serializable getValue()
           
 int getValueInt()
           
 long getValueLong()
           
 java.lang.String getValueString()
           
 boolean isBlob()
           
 boolean isNotNull()
          Is the column a NOT NULL column
 boolean isNull()
          Is the current value of the column NULL
 boolean isSigned()
           
 void setBlob(boolean blob)
           
 void setLength(long length)
          Sets the length value.
 void setName(java.lang.String name)
           
 void setPosition(int columnIdx)
           
 void setType(int type)
           
 void setTypeDescription(java.lang.String typeDescription)
           
 void setValue(java.io.InputStream valueInputStream, int valueInputStreamLength)
           
 void setValue(int valueInt)
           
 void setValue(long valueLong)
           
 void setValue(java.io.Serializable value)
           
 void setValue(short valueShort)
           
 void setValue(java.lang.String valueString)
           
 void setValueNull()
           
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Column

@Deprecated
public Column()
Deprecated. 

Creates a new Database object


Column

public Column(java.lang.String name,
              int type)

Column

public Column(java.lang.String name,
              int type,
              boolean isNotNull)

Column

public Column(java.lang.String name,
              int type,
              boolean isNotNull,
              boolean isSigned)

Column

public Column(java.lang.String name,
              int type,
              int length)

Column

public Column(java.lang.String name,
              int type,
              int length,
              boolean isNotNull)

Column

public Column(java.lang.String name,
              int type,
              long colLength,
              boolean isNotNull,
              java.io.Serializable value)
Method Detail

getName

public java.lang.String getName()

getType

public int getType()

getLength

public long getLength()

isNotNull

public boolean isNotNull()
Is the column a NOT NULL column


isNull

public boolean isNull()
Is the current value of the column NULL


Dump

public void Dump()

setValue

public void setValue(java.io.Serializable value)

setType

public void setType(int type)

setName

public void setName(java.lang.String name)

setValue

public void setValue(short valueShort)

setValue

public void setValue(int valueInt)

setValue

public void setValue(long valueLong)

setValue

public void setValue(java.lang.String valueString)

setValue

public void setValue(java.io.InputStream valueInputStream,
                     int valueInputStreamLength)

setValueNull

public void setValueNull()

getValue

public java.io.Serializable getValue()

getValueInt

public int getValueInt()

getValueLong

public long getValueLong()

getValueString

public java.lang.String getValueString()

setPosition

public void setPosition(int columnIdx)

getPosition

public int getPosition()

isSigned

public boolean isSigned()

isBlob

public boolean isBlob()

setBlob

public void setBlob(boolean blob)

getTypeDescription

public java.lang.String getTypeDescription()

setTypeDescription

public void setTypeDescription(java.lang.String typeDescription)

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object
See Also:
Object.toString()

setLength

public void setLength(long length)
Sets the length value.

Parameters:
length - The length to set.