com.northconcepts.datapipeline.core
Class Record
java.lang.Object
com.northconcepts.datapipeline.core.Record
- All Implemented Interfaces:
- Session, Cloneable, Comparable<Record>
public final class Record
- extends Object
- implements Cloneable, Comparable<Record>, Session
|
Constructor Summary |
Record()
|
Record(FieldList fieldNames)
Creates a new record with the specified field names. |
Record(Record record)
Creates a new record by copying the fields from another. |
Record(String... fieldNames)
Creates a new record with the specified field names. |
Record
public Record(Record record)
- Creates a new record by copying the fields from another.
- Parameters:
record - the record to copy from.
Record
public Record()
Record
public Record(String... fieldNames)
- Creates a new record with the specified field names.
- Parameters:
fieldNames -
Record
public Record(FieldList fieldNames)
- Creates a new record with the specified field names.
- Parameters:
fieldNames -
copyFrom
public void copyFrom(Record record,
boolean overwriteFields)
copyFrom
public void copyFrom(Record record)
clone
public Object clone()
- Overrides:
clone in class Object
getState
public Record.State getState()
isDeleted
public boolean isDeleted()
setAlive
public void setAlive()
delete
public void delete()
getField
public Field getField(int index)
getField
public Field getField(int index,
boolean createField)
getField
public Field getField(String fieldName)
getField
public Field getField(String fieldName,
boolean createField)
getFieldCount
public int getFieldCount()
addField
public Field addField()
getFieldNames
public List<String> getFieldNames()
getFieldTypes
public List<FieldType> getFieldTypes(FieldList fieldList)
getFieldTypes
public List<FieldType> getFieldTypes()
getValues
public List<?> getValues(FieldList fieldList)
getValues
public List<?> getValues()
compareTo
public int compareTo(Record o)
- Specified by:
compareTo in interface Comparable<Record>
compareTo
public int compareTo(Record o,
RecordComparator comparator)
equals
public boolean equals(Object o)
- Overrides:
equals in class Object
equals
public boolean equals(Record o,
RecordComparator comparator)
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
hashCode
public int hashCode(FieldList fieldList)
indexOfField
protected int indexOfField(Field field)
indexOfField
public int indexOfField(String fieldName,
boolean throwExceptionOnFailure)
containsField
public boolean containsField(String fieldName)
removeField
public Field removeField(int index)
removeField
public Field removeField(String columnName)
moveField
public void moveField(int oldIndex,
int newIndex)
moveField
public void moveField(String columnName,
int newIndex)
selectFields
public Record selectFields(FieldList fields)
excludeFields
public Record excludeFields(FieldList fields)
excludeFields
public Record excludeFields(Set<String> fields)
getSizeInBytesOfFieldNames
public long getSizeInBytesOfFieldNames()
getSizeInBytes
public long getSizeInBytes()
toString
public String toString()
- Overrides:
toString in class Object
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-2012 North Concepts Inc. All Rights Reserved.