|
Open SiteSearch 4.1.1 Final |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--ORG.oclc.access.api.MetaData
The MetaData class contains information about MetaData about the database retrieved from the AccessServer.
| Field Summary | |
static String |
AUTHORIZATION
|
static String |
DATABASE
|
static String |
GROUPS
|
static String |
INSTITUTION
|
static String |
MEMBERS
|
static String |
OBJECTS
|
static String |
PERSISTENTPROFILE
|
static String |
RESOURCE
|
static String |
SYSTEM
|
static String |
USERDB
|
| Constructor Summary | |
MetaData()
Constructs a new MetaData class. |
|
| Method Summary | |
void |
addColumn(String tableName,
String colName,
String colType,
int colLength,
String colPurpose,
String colLink)
Adds information about a table column to the MetaData |
void |
addTable(String tblName,
String tblPurpose)
Adds a table to the MetaData |
String |
getColNameByPurpose(String tableName,
String colPurpose)
Returns a String containing the column name associated with this purpose. |
int |
getColumnCount(String tableName)
Returns an Integer data type containing the number of columns in a table. |
String |
getColumnName(String tableName,
int colNum)
Returns a String containing the name of the nth column in a table. |
String |
getColumnType(String tableName,
int colNum)
Returns a String containing the type of the nth column in a table. |
Vector |
getLinks(String tableName)
Returns a Vector containing all the links associated with this table. |
String |
getTableName(String purpose)
Returns a String containing the table name for a particular table purpose. |
void |
init(DataDir dir)
Initializes the MetaData object from a DataDir directory tree. |
String |
linkDest(String tableName,
String colName)
Returns a String containing the link associated with a column in a table. |
DataDir |
toDataDir()
Returns a DataDir containing the BER-encoding of this object. |
String |
toString()
Returns a String containing the string representation of this object. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Field Detail |
public static final String AUTHORIZATION
public static final String USERDB
public static final String DATABASE
public static final String GROUPS
public static final String MEMBERS
public static final String OBJECTS
public static final String RESOURCE
public static final String INSTITUTION
public static final String SYSTEM
public static final String PERSISTENTPROFILE
| Constructor Detail |
public MetaData()
| Method Detail |
public void init(DataDir dir)
dir - the DataDir directory treeDataDirpublic DataDir toDataDir()
DataDirpublic String getTableName(String purpose)
purpose - the purpose of a table
public String linkDest(String tableName,
String colName)
tableName - the name of the table.colName - the name of the column
public String getColNameByPurpose(String tableName,
String colPurpose)
tableName - the name of the tablecolPurpose - the purpose to look forpublic Vector getLinks(String tableName)
tableName - the name of the table
public void addTable(String tblName,
String tblPurpose)
tblName - the name of the tabletblPurpose - the purpose of the table.
public void addColumn(String tableName,
String colName,
String colType,
int colLength,
String colPurpose,
String colLink)
tablename - the name of the tablecolName - the name of the columncolType - the type of the columncolLength - the length of the columncolPurpose - the purpose of the columncolLink - links to other tablespublic int getColumnCount(String tableName)
tableName - the name of the table
public String getColumnName(String tableName,
int colNum)
tableName - the name of the tablecolNum - the number of the column to look for (1-based)
public String getColumnType(String tableName,
int colNum)
tableName - the name of the tablecolNum - the number of the column to look for (1-based)public String toString()
|
Open SiteSearch 4.1.1 Final |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||