|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eobjects.metamodel.util.SimpleTableDef
public class SimpleTableDef
Represents a table definition to be used in scenarios where a
DataContext is unable to detect/discover the table structure and
needs some basic input around expected table structures.
| Constructor Summary | |
|---|---|
SimpleTableDef(String name,
String[] columnNames)
Constructs a SimpleTableDef. |
|
SimpleTableDef(String name,
String[] columnNames,
ColumnType[] columnTypes)
Constructs a SimpleTableDef. |
|
SimpleTableDef(Table table)
Constructs a SimpleTableDef using a Table as a prototype. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
String[] |
getColumnNames()
Gets the names of the columns in the table |
ColumnType[] |
getColumnTypes()
Gets the types of the columns in the table |
String |
getName()
Gets the name of the table |
int |
hashCode()
|
int |
indexOf(String columnName)
Gets the index of a column name, or -1 if the column name does not exist |
String |
toString()
|
MutableTable |
toTable()
Creates a MutableTable based on this SimpleTableDef. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleTableDef(Table table)
SimpleTableDef using a Table as a prototype.
table -
public SimpleTableDef(String name,
String[] columnNames)
SimpleTableDef.
name - the name of the tablecolumnNames - the names of the columns to include in the table
public SimpleTableDef(String name,
String[] columnNames,
ColumnType[] columnTypes)
SimpleTableDef.
name - the name of tablecolumnNames - the names of the columns to include in the tablecolumnTypes - the column types of the columns specified.| Method Detail |
|---|
public String getName()
getName in interface HasNamepublic String[] getColumnNames()
public ColumnType[] getColumnTypes()
public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic String toString()
toString in class Objectpublic MutableTable toTable()
MutableTable based on this SimpleTableDef. Note
that the created table will not have any schema set.
public int indexOf(String columnName)
columnName -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||