com.mizar.persistence.jdbc.metadata
Class TableMetaData

java.lang.Object
  extended by com.mizar.persistence.jdbc.metadata.TableMetaData

public class TableMetaData
extends java.lang.Object


Constructor Summary
TableMetaData()
           
TableMetaData(java.sql.ResultSet rset)
           
 
Method Summary
 java.lang.String getRefGeneration()
           
 java.lang.String getRemarks()
           
 java.lang.String getSelfReferencingColName()
           
 java.lang.String getTableCat()
           
static java.util.Map<java.lang.String,TableMetaData> getTableMetaData(java.sql.Connection conn, java.lang.String catalog, java.lang.String schemaPattern, java.lang.String tableNamePattern, java.lang.String[] types)
           
 java.lang.String getTableName()
           
 java.lang.String getTableSchem()
           
 java.lang.String getTableType()
           
 java.lang.String getTypeCat()
           
 java.lang.String getTypeName()
           
 java.lang.String getTypeSchem()
           
 void setRefGeneration(java.lang.String refGeneration)
           
 void setRemarks(java.lang.String remarks)
           
 void setSelfReferencingColName(java.lang.String selfReferencingColName)
           
 void setTableCat(java.lang.String tableCat)
           
 void setTableName(java.lang.String tableName)
           
 void setTableSchem(java.lang.String tableSchem)
           
 void setTableType(java.lang.String tableType)
           
 void setTypeCat(java.lang.String typeCat)
           
 void setTypeName(java.lang.String typeName)
           
 void setTypeSchem(java.lang.String typeSchem)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableMetaData

public TableMetaData()

TableMetaData

public TableMetaData(java.sql.ResultSet rset)
              throws java.sql.SQLException
Throws:
java.sql.SQLException
Method Detail

getTableMetaData

public static java.util.Map<java.lang.String,TableMetaData> getTableMetaData(java.sql.Connection conn,
                                                                             java.lang.String catalog,
                                                                             java.lang.String schemaPattern,
                                                                             java.lang.String tableNamePattern,
                                                                             java.lang.String[] types)
                                                                      throws java.sql.SQLException
Parameters:
conn -
catalog - null is a good default
schemaPattern - the schema should be in UPPER_CASE for Oracle but not for Postgres
tableNamePattern -
types -
Returns:
Throws:
java.sql.SQLException

setTableCat

public void setTableCat(java.lang.String tableCat)

getTableCat

public java.lang.String getTableCat()

setTableSchem

public void setTableSchem(java.lang.String tableSchem)

getTableSchem

public java.lang.String getTableSchem()

setTableName

public void setTableName(java.lang.String tableName)

getTableName

public java.lang.String getTableName()

setTableType

public void setTableType(java.lang.String tableType)

getTableType

public java.lang.String getTableType()

setRemarks

public void setRemarks(java.lang.String remarks)

getRemarks

public java.lang.String getRemarks()

setTypeCat

public void setTypeCat(java.lang.String typeCat)

getTypeCat

public java.lang.String getTypeCat()

setTypeSchem

public void setTypeSchem(java.lang.String typeSchem)

getTypeSchem

public java.lang.String getTypeSchem()

setTypeName

public void setTypeName(java.lang.String typeName)

getTypeName

public java.lang.String getTypeName()

setSelfReferencingColName

public void setSelfReferencingColName(java.lang.String selfReferencingColName)

getSelfReferencingColName

public java.lang.String getSelfReferencingColName()

setRefGeneration

public void setRefGeneration(java.lang.String refGeneration)

getRefGeneration

public java.lang.String getRefGeneration()