|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecteasik.sketch.datatype.DataTypeController
public class DataTypeController
Class to controll data type information. Supplies relevant datatypes and information depending on user defined data type group.
| Field Summary | |
|---|---|
private java.util.ArrayList<DataType> |
_dataTypes
The data types defined for this data type controller |
private boolean |
_useDB2
Stores whether DB2 types are active |
private boolean |
_useMySQL
Stores whether MySQL types are active |
private boolean |
_useOracle
Stores whether Oracle types are active |
private boolean |
_useUserDefined
Stores whether User Defined types are active |
private boolean |
_useXML
Stores whether XML types are active |
| Constructor Summary | |
|---|---|
DataTypeController()
Default Constructor |
|
| Method Summary | |
|---|---|
void |
addDataType(DataType inType)
Adds a new data type entry to the _dataTypes ArrayList |
DataType |
addNewDataType()
Adds a new data type entry to the _dataTypes ArrayList, and returns it |
java.util.ArrayList |
getActiveTypes()
Gets a list of all types currently defined by the user. |
java.util.ArrayList |
getDataTypes()
Returns an ArrayList of the current data types available for the data type platform used by the sketch |
boolean |
is_useDB2()
|
boolean |
is_useMySQL()
|
boolean |
is_useOracle()
|
boolean |
is_useUserDefined()
|
boolean |
is_useXML()
|
boolean |
isNameFree(DataType inType,
java.lang.String newName)
Checks to see if the data type name is used by any other data type other then itself |
void |
loadNullsFromDefaults(java.lang.String type)
Searches through data types for types named the same as standard types and loads up the standard value into the null position. |
void |
removeDataType(DataType inType,
DataType inReplacement)
Removes the data type from the array. |
void |
resetDataTypes()
Resets the data type array to the standard types |
void |
set_useDB2(boolean _usedb2)
|
void |
set_useMySQL(boolean mySQL)
|
void |
set_useOracle(boolean oracle)
|
void |
set_useUserDefined(boolean userDefined)
|
void |
set_useXML(boolean _usexml)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.util.ArrayList<DataType> _dataTypes
private boolean _useMySQL
private boolean _useOracle
private boolean _useDB2
private boolean _useXML
private boolean _useUserDefined
| Constructor Detail |
|---|
public DataTypeController()
| Method Detail |
|---|
public java.util.ArrayList getDataTypes()
public void loadNullsFromDefaults(java.lang.String type)
type - The platform that is being loaded from nulls (If no specified from given platforms then only null values are reloaded)public void resetDataTypes()
public DataType addNewDataType()
public void addDataType(DataType inType)
inType - The data type to be added.
public void removeDataType(DataType inType,
DataType inReplacement)
inType - The data type to be removed.inReplacement - The data type to be used as the replacement
public boolean isNameFree(DataType inType,
java.lang.String newName)
inType - The type to comparenewName - The desired new name of the type
public boolean is_useDB2()
public void set_useDB2(boolean _usedb2)
_usedb2 - The _useDB2 to set.public boolean is_useMySQL()
public void set_useMySQL(boolean mySQL)
mySQL - The _useMySQL to set.public boolean is_useOracle()
public void set_useOracle(boolean oracle)
oracle - The _useOracle to set.public boolean is_useUserDefined()
public void set_useUserDefined(boolean userDefined)
userDefined - The _useUserDefined to set.public boolean is_useXML()
public void set_useXML(boolean _usexml)
_usexml - The _useXML to set.public java.util.ArrayList getActiveTypes()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||