|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectproper.core.ProperObject
proper.database.ConnectorObject
proper.database.ExecutorObject
proper.database.ColumnLister
public class ColumnLister
This class retrieves a list of column names for a given table.
Field Summary |
---|
Fields inherited from interface proper.core.ProperInterface |
---|
VERSION |
Constructor Summary | |
---|---|
ColumnLister(Connector conn)
initializes the object |
|
ColumnLister(Connector conn,
java.lang.String table)
initializes the object |
Method Summary | |
---|---|
void |
clear()
resets the setting to default, i.e. |
boolean |
getAddTable()
returns whether the table is added in front of the column name |
java.util.Vector |
getColumnNamesForImportedKey(java.lang.String colName)
determines the name(s) of the column in the current table which resembles the given imported (i.e. |
java.util.Vector |
getList()
retrieves the list of column names and returns them in a Vector |
boolean |
getOnlyExportedKeys()
returns whether only exported keys are returned |
boolean |
getOnlyImportedKeys()
returns whether only imported keys are returned |
boolean |
getOnlyIndexes()
returns whether only indexes are returned |
boolean |
getOnlyNominal()
returns whether only nominal fields are returned |
boolean |
getOnlyPrimary()
returns whether only primary indexes are returned |
boolean |
getOnlySimpleTypes()
returns whether only simple type fields are returned (i.e. |
boolean |
getSort()
returns whether the fields are sorted or not |
java.lang.String |
getTable()
returns the name of the table to read from |
void |
setAddTable(boolean value)
sets whether to add the table name in front of the column name |
void |
setExcludes(java.lang.String excludes)
sets the fields (String) to exclude from export |
void |
setExcludes(java.util.Vector excludes)
sets the fields (String) to exclude from export |
void |
setOnlyExportedKeys(boolean value)
sets whether to retrieve only exported keys. |
void |
setOnlyImportedKeys(boolean value)
sets whether to retrieve only imported keys |
void |
setOnlyIndexes(boolean value)
sets whether to retrieve only indexes |
void |
setOnlyNominal(boolean value)
sets whether to retrieve only nominal fields |
void |
setOnlyPrimary(boolean value)
sets whether to retrieve only primary indexes |
void |
setOnlySimpleTypes(boolean value)
sets whether to retrieve only simple type fields (i.e. |
void |
setSort(boolean sort)
sets whether to sort the fields or not |
void |
setTable(java.lang.String table)
sets the name of the table to use |
java.lang.String |
toString()
returns the current setting in a string representation |
Methods inherited from class proper.database.ExecutorObject |
---|
getExecutor, getLastException, getLastStatement |
Methods inherited from class proper.database.ConnectorObject |
---|
getConnector |
Methods inherited from class proper.core.ProperObject |
---|
addListener, addOutput, classInVerbose, debugprint, debugprint, debugprint, debugprint, debugprintln, debugprintln, debugprintln, debugprintln, debugprintln, getListeners, getRuntime, getVerbose, getVerboseLevel, getVerboseLevelForClass, getVerboseString, getVerboseStringForClass, notifyListener, notifyListeners, print, print, print, print, println, println, println, println, println, printMemory, removeListener, setOutput, setVerbose, setVerboseLevel, setVerboseString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ColumnLister(Connector conn)
conn
- the Connector used for Database-Handlingpublic ColumnLister(Connector conn, java.lang.String table)
conn
- the Connector used for Database-Handlingtable
- the table to use for readingMethod Detail |
---|
public void clear()
clear
in interface Lister
public void setTable(java.lang.String table)
public java.lang.String getTable()
public void setSort(boolean sort)
setSort
in interface Lister
public boolean getSort()
getSort
in interface Lister
public void setAddTable(boolean value)
public boolean getAddTable()
public void setOnlyNominal(boolean value)
public boolean getOnlyNominal()
public void setOnlySimpleTypes(boolean value)
Types.OTHER
public boolean getOnlySimpleTypes()
Types.OTHER
public void setOnlyIndexes(boolean value)
public boolean getOnlyIndexes()
public void setOnlyPrimary(boolean value)
public boolean getOnlyPrimary()
public void setOnlyExportedKeys(boolean value)
setAddTable(boolean)
public boolean getOnlyExportedKeys()
public void setOnlyImportedKeys(boolean value)
public boolean getOnlyImportedKeys()
public void setExcludes(java.util.Vector excludes)
public void setExcludes(java.lang.String excludes)
public java.util.Vector getList()
getList
in interface Lister
public java.util.Vector getColumnNamesForImportedKey(java.lang.String colName)
colName
- the column to retrieve the name(s) in the current
table for
public java.lang.String toString()
toString
in class ProperObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |