|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectthinkmap.datasource.relational.EntityModel
thinkmap.datasource.relational.EdgeEntityModel
thinkmap.datasource.flatfile2.FFEdgeEntityModel
public class FFEdgeEntityModel
A flat file edge.
| Field Summary | |
|---|---|
protected char |
delim
|
protected boolean |
delimSet
|
protected FlatFileDataSource |
ds
|
protected String |
encoding
|
protected char |
escape
|
protected char |
quotechar
|
protected static long |
serialVersionUID
|
protected int |
skipRows
|
protected String[] |
typeChain
|
| Fields inherited from class thinkmap.datasource.relational.EntityModel |
|---|
cacheFlag, models |
| Constructor Summary | |
|---|---|
FFEdgeEntityModel(FlatFileDataSource ds)
|
|
| Method Summary | ||
|---|---|---|
|
createColumn()
|
|
boolean |
equals(Object model)
|
|
char |
getDelimiter()
Returns the delimiter for this entity model. |
|
String |
getEncoding()
Returns the encoding of this entity model |
|
char |
getEscapeChar()
Returns the character used to escape character |
|
char |
getQuoteChar()
Returns the character that denotes a quote |
|
int |
getSkipRows()
Returns the number of rows to be skipped in this entity model |
|
boolean |
parseEntityId(String searchString,
IEntityHandler callback)
|
|
void |
setDelimiter(char c)
Set the delimiter character for this file. |
|
void |
setEncoding(String s)
Sets the encoding to use when reading the file. |
|
void |
setEscapeChar(char escape)
Set's the character used for escaping special characters like quotes. |
|
void |
setQuoteChar(char quotechar)
Set's the quote character. |
|
void |
setSkipRows(int i)
Set to the number of rows to skip at the top of the file. |
|
| Methods inherited from class thinkmap.datasource.relational.EdgeEntityModel |
|---|
getFrom, getTo, isBidirectional, setBidirectional, setFrom, setTo |
| Methods inherited from class thinkmap.datasource.relational.EntityModel |
|---|
addColumn, getColumnModel, getColumnModels, getColumns, getMaxResults, getName, getParent, getTable, indexOf, outputMetadata, setMaxResults, setName, setParent, setTable |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected String[] typeChain
protected String encoding
protected char delim
protected boolean delimSet
protected int skipRows
protected char quotechar
protected char escape
protected transient FlatFileDataSource ds
protected static final long serialVersionUID
| Constructor Detail |
|---|
public FFEdgeEntityModel(FlatFileDataSource ds)
| Method Detail |
|---|
public void setEncoding(String s)
the - encoding to use when reading the file.public void setSkipRows(int i)
b - first row column name flagpublic void setDelimiter(char c)
c - the delimiter characterpublic void setQuoteChar(char quotechar)
quotechar - public void setEscapeChar(char escape)
escape - public int getSkipRows()
public char getDelimiter()
public <T> ColumnModel<T> createColumn()
createColumn in class EdgeEntityModelpublic String getEncoding()
public char getEscapeChar()
public char getQuoteChar()
public boolean parseEntityId(String searchString,
IEntityHandler callback)
parseEntityId in class EntityModelpublic boolean equals(Object model)
equals in class Object
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||