|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.informatica.data.MetaData
public class MetaData
Metadata.
| Constructor Summary | |
|---|---|
MetaData(String name)
Builds a MetaData object with name name |
|
MetaData(String schemaName,
String name)
Builds a MetaData object with name name in the
schema schemaName |
|
| Method Summary | |
|---|---|
void |
addDataEntity(DataField data)
Adds the given entity to this metadata |
int |
count()
Gets the number of entities described by this metadata. |
static void |
fillStatement(Map<FieldName,? extends Object> m,
PreparedStatement stmt,
Iterator<FieldName> data_names)
|
void |
fillStatement(Valueset view,
PreparedStatement stmt,
Iterator<FieldName> data_names)
Fills the parameters of a given statement. |
int |
findColumn(FieldName name)
Find the column position of the given entity. |
Set<Map.Entry<FieldName,DataField>> |
getData()
Gets a entry set with the data entities described by this metadata. |
DataField |
getDataEntity(FieldName name)
Gets the entity of name name |
DataField |
getDataEntity(int i)
|
Collection<DataField> |
getDataFields()
Gets a Collection with the data entities |
Iterator<FieldName> |
getInsertFieldNames()
|
Collection<FieldName> |
getKeyNames()
|
String |
getLabel(FieldName name)
Gets the description for name in the current locale. |
LocalLabels |
getLocalLabels()
Gets the localized labels for this metadata. |
String |
getName()
Gets the name of this table/view |
Iterator<FieldName> |
getNames()
Gets an iterator with the names of the data parameters. |
Dataset |
getSampleDataset(int sz)
|
String |
getSchemaName()
Get the name of the schema where this metadata belongs. |
Iterator<FieldName> |
getUpdateFieldNames()
|
void |
rename(FieldName newname,
DataField data)
Add the given data object with the given name. |
boolean |
replace(DataField newEntity)
|
void |
setLocalLabels(LocalLabels labels)
|
String |
toCreateTableString()
|
String |
toString()
|
void |
validate(Valueset view)
|
Map<FieldName,Object> |
validate(Valueset view,
Iterator<FieldName> fieldnames)
|
Map<FieldName,Object> |
validate(Valueset view,
Iterator<FieldName> fieldnames,
boolean checkauto)
|
Map<FieldName,Object> |
validate(Valueset view,
Iterator<FieldName> fieldnames,
boolean checkauto,
Object helper)
|
void |
validate(Valueset view,
Iterator<FieldName> fieldnames,
Object helper)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MetaData(String schemaName,
String name)
name in the
schema schemaName
name - the Catalog name of this metadataschemaName - the name of the schema, or null if none or not
known.public MetaData(String name)
name
name - the Catalog name of this metadata| Method Detail |
|---|
public String getSchemaName()
public void rename(FieldName newname,
DataField data)
newname - the new name of the entitydata - the data entity to be renamedpublic boolean replace(DataField newEntity)
public Iterator<FieldName> getNames()
public Iterator<FieldName> getInsertFieldNames()
public Iterator<FieldName> getUpdateFieldNames()
public Collection<DataField> getDataFields()
public Set<Map.Entry<FieldName,DataField>> getData()
public int count()
public void addDataEntity(DataField data)
public DataField getDataEntity(FieldName name)
name
public String getLabel(FieldName name)
name in the current locale.
name - the name of the label
public void setLocalLabels(LocalLabels labels)
public LocalLabels getLocalLabels()
public String getName()
public Dataset getSampleDataset(int sz)
public Collection<FieldName> getKeyNames()
public int findColumn(FieldName name)
name - the name of the DataField that we want to find.
public DataField getDataEntity(int i)
public String toCreateTableString()
public void validate(Valueset view)
throws DataException
DataException
public Map<FieldName,Object> validate(Valueset view,
Iterator<FieldName> fieldnames)
throws DataException
DataException
public Map<FieldName,Object> validate(Valueset view,
Iterator<FieldName> fieldnames,
boolean checkauto)
throws DataException
DataException
public void validate(Valueset view,
Iterator<FieldName> fieldnames,
Object helper)
throws DataException
DataException
public Map<FieldName,Object> validate(Valueset view,
Iterator<FieldName> fieldnames,
boolean checkauto,
Object helper)
throws DataException
DataException
public void fillStatement(Valueset view,
PreparedStatement stmt,
Iterator<FieldName> data_names)
throws SQLException,
DataException
i of
the Statement is filled with the value of the i-th field
name given.
You do not need to validate the fields first.
stmt - the statementdata_names - the dictionary data names (not the UI names) of the fields
DataException - TODO
SQLException
public static void fillStatement(Map<FieldName,? extends Object> m,
PreparedStatement stmt,
Iterator<FieldName> data_names)
throws SQLException,
DataFieldException
SQLException
DataFieldExceptionpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||