com.northconcepts.datapipeline.core
Class Field

java.lang.Object
  extended by com.northconcepts.datapipeline.core.Field
All Implemented Interfaces:
Session, Comparable<Field>

public final class Field
extends Object
implements Comparable<Field>, Session


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.northconcepts.datapipeline.core.Session
Session.SessionImpl
 
Field Summary
static int JAVA_ARRAY_SIZE
           
static int JAVA_OBJECT_SIZE
           
 
Constructor Summary
protected Field(Record record)
           
 
Method Summary
 int compareTo(Field o)
           
 int compareTo(Field o, Collator collator)
           
 boolean containsSessionProperty(String name)
           
 Field copyFrom(Field field)
           
 Field copyFrom(Field field, boolean copyName)
           
 void copySessionPropertiesFrom(Session session)
           
 boolean equals(Object o)
           
 boolean equals(Object o, Collator collator)
           
 int getIndex()
          Returns the position of this field within its record.
 String getName()
           
 String getName(boolean nullToDefaultName)
           
 Record getRecord()
           
 Object getSessionProperty(String name)
           
 long getSizeInBytes()
           
 long getSizeOfNameInBytes()
           
 FieldType getType()
           
 Object getValue()
           
 boolean getValueAsBoolean()
           
 byte getValueAsByte()
           
 byte[] getValueAsBytes()
           
 char getValueAsChar()
           
 Date getValueAsDate()
           
 Date getValueAsDatetime()
           
 double getValueAsDouble()
           
 float getValueAsFloat()
           
 int getValueAsInteger()
           
 long getValueAsLong()
           
 short getValueAsShort()
           
 String getValueAsString()
           
 Time getValueAsTime()
           
 int hashCode()
           
 boolean isNotNull()
           
 boolean isNull()
           
 Field setName(String name)
           
 Field setNull(FieldType type)
           
 void setSessionProperty(String name, Object value)
           
 Field setValue(boolean value)
           
 Field setValue(byte value)
           
 Field setValue(byte[] value)
           
 Field setValue(char value)
           
 Field setValue(Date value)
           
 Field setValue(Date value)
           
 Field setValue(double value)
           
 Field setValue(float value)
           
 Field setValue(int value)
           
 Field setValue(long value)
           
 Field setValue(Object value)
           
 Field setValue(short value)
           
 Field setValue(String value)
           
 Field setValue(Time value)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

JAVA_OBJECT_SIZE

public static final int JAVA_OBJECT_SIZE
See Also:
Constant Field Values

JAVA_ARRAY_SIZE

public static final int JAVA_ARRAY_SIZE
See Also:
Constant Field Values
Constructor Detail

Field

protected Field(Record record)
Method Detail

copyFrom

public Field copyFrom(Field field)

copyFrom

public Field copyFrom(Field field,
                      boolean copyName)

toString

public String toString()
Overrides:
toString in class Object

getIndex

public int getIndex()
Returns the position of this field within its record.


getName

public String getName()

getName

public String getName(boolean nullToDefaultName)

setName

public Field setName(String name)

getType

public FieldType getType()

isNull

public boolean isNull()

isNotNull

public boolean isNotNull()

setValue

public Field setValue(Object value)

setNull

public Field setNull(FieldType type)

compareTo

public int compareTo(Field o)
Specified by:
compareTo in interface Comparable<Field>

compareTo

public int compareTo(Field o,
                     Collator collator)

equals

public boolean equals(Object o)
Overrides:
equals in class Object

equals

public boolean equals(Object o,
                      Collator collator)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

getSizeOfNameInBytes

public long getSizeOfNameInBytes()

getSizeInBytes

public long getSizeInBytes()

getRecord

public Record getRecord()

getValue

public Object getValue()

getValueAsString

public String getValueAsString()

getValueAsDatetime

public Date getValueAsDatetime()

getValueAsDate

public Date getValueAsDate()

getValueAsTime

public Time getValueAsTime()

getValueAsInteger

public int getValueAsInteger()

getValueAsLong

public long getValueAsLong()

getValueAsShort

public short getValueAsShort()

getValueAsByte

public byte getValueAsByte()

getValueAsBoolean

public boolean getValueAsBoolean()

getValueAsChar

public char getValueAsChar()

getValueAsDouble

public double getValueAsDouble()

getValueAsFloat

public float getValueAsFloat()

getValueAsBytes

public byte[] getValueAsBytes()

setValue

public Field setValue(String value)

setValue

public Field setValue(Date value)

setValue

public Field setValue(Date value)

setValue

public Field setValue(Time value)

setValue

public Field setValue(int value)

setValue

public Field setValue(long value)

setValue

public Field setValue(short value)

setValue

public Field setValue(byte value)

setValue

public Field setValue(boolean value)

setValue

public Field setValue(char value)

setValue

public Field setValue(double value)

setValue

public Field setValue(float value)

setValue

public Field setValue(byte[] value)

containsSessionProperty

public boolean containsSessionProperty(String name)
Specified by:
containsSessionProperty in interface Session

copySessionPropertiesFrom

public void copySessionPropertiesFrom(Session session)
Specified by:
copySessionPropertiesFrom in interface Session

getSessionProperty

public Object getSessionProperty(String name)
Specified by:
getSessionProperty in interface Session

setSessionProperty

public void setSessionProperty(String name,
                               Object value)
Specified by:
setSessionProperty in interface Session


Copyright (c) 2007-2010 North Concepts Inc. All Rights Reserved.