com.northconcepts.datapipeline.core
Class Field
java.lang.Object
com.northconcepts.datapipeline.core.Field
- All Implemented Interfaces:
- Session, Comparable<Field>
public final class Field
- extends Object
- implements Comparable<Field>, Session
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
Field
protected Field(Record record)
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.