home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 1999 April / DPPCPRO0499.ISO / April / Notes / 50b2wic.exe / DATA1.CAB / NotesProgramFilesJavaSupport / rt.jar / java / sql / DatabaseMetaData.class (.txt) < prev    next >
Encoding:
Java Class File  |  1998-04-23  |  8.2 KB  |  318 lines

  1. package java.sql;
  2.  
  3. public interface DatabaseMetaData {
  4.    int procedureResultUnknown = 0;
  5.    int procedureNoResult = 1;
  6.    int procedureReturnsResult = 2;
  7.    int procedureColumnUnknown = 0;
  8.    int procedureColumnIn = 1;
  9.    int procedureColumnInOut = 2;
  10.    int procedureColumnOut = 4;
  11.    int procedureColumnReturn = 5;
  12.    int procedureColumnResult = 3;
  13.    int procedureNoNulls = 0;
  14.    int procedureNullable = 1;
  15.    int procedureNullableUnknown = 2;
  16.    int columnNoNulls = 0;
  17.    int columnNullable = 1;
  18.    int columnNullableUnknown = 2;
  19.    int bestRowTemporary = 0;
  20.    int bestRowTransaction = 1;
  21.    int bestRowSession = 2;
  22.    int bestRowUnknown = 0;
  23.    int bestRowNotPseudo = 1;
  24.    int bestRowPseudo = 2;
  25.    int versionColumnUnknown = 0;
  26.    int versionColumnNotPseudo = 1;
  27.    int versionColumnPseudo = 2;
  28.    int importedKeyCascade = 0;
  29.    int importedKeyRestrict = 1;
  30.    int importedKeySetNull = 2;
  31.    int importedKeyNoAction = 3;
  32.    int importedKeySetDefault = 4;
  33.    int importedKeyInitiallyDeferred = 5;
  34.    int importedKeyInitiallyImmediate = 6;
  35.    int importedKeyNotDeferrable = 7;
  36.    int typeNoNulls = 0;
  37.    int typeNullable = 1;
  38.    int typeNullableUnknown = 2;
  39.    int typePredNone = 0;
  40.    int typePredChar = 1;
  41.    int typePredBasic = 2;
  42.    int typeSearchable = 3;
  43.    short tableIndexStatistic = 0;
  44.    short tableIndexClustered = 1;
  45.    short tableIndexHashed = 2;
  46.    short tableIndexOther = 3;
  47.  
  48.    boolean allProceduresAreCallable() throws SQLException;
  49.  
  50.    boolean allTablesAreSelectable() throws SQLException;
  51.  
  52.    String getURL() throws SQLException;
  53.  
  54.    String getUserName() throws SQLException;
  55.  
  56.    boolean isReadOnly() throws SQLException;
  57.  
  58.    boolean nullsAreSortedHigh() throws SQLException;
  59.  
  60.    boolean nullsAreSortedLow() throws SQLException;
  61.  
  62.    boolean nullsAreSortedAtStart() throws SQLException;
  63.  
  64.    boolean nullsAreSortedAtEnd() throws SQLException;
  65.  
  66.    String getDatabaseProductName() throws SQLException;
  67.  
  68.    String getDatabaseProductVersion() throws SQLException;
  69.  
  70.    String getDriverName() throws SQLException;
  71.  
  72.    String getDriverVersion() throws SQLException;
  73.  
  74.    int getDriverMajorVersion();
  75.  
  76.    int getDriverMinorVersion();
  77.  
  78.    boolean usesLocalFiles() throws SQLException;
  79.  
  80.    boolean usesLocalFilePerTable() throws SQLException;
  81.  
  82.    boolean supportsMixedCaseIdentifiers() throws SQLException;
  83.  
  84.    boolean storesUpperCaseIdentifiers() throws SQLException;
  85.  
  86.    boolean storesLowerCaseIdentifiers() throws SQLException;
  87.  
  88.    boolean storesMixedCaseIdentifiers() throws SQLException;
  89.  
  90.    boolean supportsMixedCaseQuotedIdentifiers() throws SQLException;
  91.  
  92.    boolean storesUpperCaseQuotedIdentifiers() throws SQLException;
  93.  
  94.    boolean storesLowerCaseQuotedIdentifiers() throws SQLException;
  95.  
  96.    boolean storesMixedCaseQuotedIdentifiers() throws SQLException;
  97.  
  98.    String getIdentifierQuoteString() throws SQLException;
  99.  
  100.    String getSQLKeywords() throws SQLException;
  101.  
  102.    String getNumericFunctions() throws SQLException;
  103.  
  104.    String getStringFunctions() throws SQLException;
  105.  
  106.    String getSystemFunctions() throws SQLException;
  107.  
  108.    String getTimeDateFunctions() throws SQLException;
  109.  
  110.    String getSearchStringEscape() throws SQLException;
  111.  
  112.    String getExtraNameCharacters() throws SQLException;
  113.  
  114.    boolean supportsAlterTableWithAddColumn() throws SQLException;
  115.  
  116.    boolean supportsAlterTableWithDropColumn() throws SQLException;
  117.  
  118.    boolean supportsColumnAliasing() throws SQLException;
  119.  
  120.    boolean nullPlusNonNullIsNull() throws SQLException;
  121.  
  122.    boolean supportsConvert() throws SQLException;
  123.  
  124.    boolean supportsConvert(int var1, int var2) throws SQLException;
  125.  
  126.    boolean supportsTableCorrelationNames() throws SQLException;
  127.  
  128.    boolean supportsDifferentTableCorrelationNames() throws SQLException;
  129.  
  130.    boolean supportsExpressionsInOrderBy() throws SQLException;
  131.  
  132.    boolean supportsOrderByUnrelated() throws SQLException;
  133.  
  134.    boolean supportsGroupBy() throws SQLException;
  135.  
  136.    boolean supportsGroupByUnrelated() throws SQLException;
  137.  
  138.    boolean supportsGroupByBeyondSelect() throws SQLException;
  139.  
  140.    boolean supportsLikeEscapeClause() throws SQLException;
  141.  
  142.    boolean supportsMultipleResultSets() throws SQLException;
  143.  
  144.    boolean supportsMultipleTransactions() throws SQLException;
  145.  
  146.    boolean supportsNonNullableColumns() throws SQLException;
  147.  
  148.    boolean supportsMinimumSQLGrammar() throws SQLException;
  149.  
  150.    boolean supportsCoreSQLGrammar() throws SQLException;
  151.  
  152.    boolean supportsExtendedSQLGrammar() throws SQLException;
  153.  
  154.    boolean supportsANSI92EntryLevelSQL() throws SQLException;
  155.  
  156.    boolean supportsANSI92IntermediateSQL() throws SQLException;
  157.  
  158.    boolean supportsANSI92FullSQL() throws SQLException;
  159.  
  160.    boolean supportsIntegrityEnhancementFacility() throws SQLException;
  161.  
  162.    boolean supportsOuterJoins() throws SQLException;
  163.  
  164.    boolean supportsFullOuterJoins() throws SQLException;
  165.  
  166.    boolean supportsLimitedOuterJoins() throws SQLException;
  167.  
  168.    String getSchemaTerm() throws SQLException;
  169.  
  170.    String getProcedureTerm() throws SQLException;
  171.  
  172.    String getCatalogTerm() throws SQLException;
  173.  
  174.    boolean isCatalogAtStart() throws SQLException;
  175.  
  176.    String getCatalogSeparator() throws SQLException;
  177.  
  178.    boolean supportsSchemasInDataManipulation() throws SQLException;
  179.  
  180.    boolean supportsSchemasInProcedureCalls() throws SQLException;
  181.  
  182.    boolean supportsSchemasInTableDefinitions() throws SQLException;
  183.  
  184.    boolean supportsSchemasInIndexDefinitions() throws SQLException;
  185.  
  186.    boolean supportsSchemasInPrivilegeDefinitions() throws SQLException;
  187.  
  188.    boolean supportsCatalogsInDataManipulation() throws SQLException;
  189.  
  190.    boolean supportsCatalogsInProcedureCalls() throws SQLException;
  191.  
  192.    boolean supportsCatalogsInTableDefinitions() throws SQLException;
  193.  
  194.    boolean supportsCatalogsInIndexDefinitions() throws SQLException;
  195.  
  196.    boolean supportsCatalogsInPrivilegeDefinitions() throws SQLException;
  197.  
  198.    boolean supportsPositionedDelete() throws SQLException;
  199.  
  200.    boolean supportsPositionedUpdate() throws SQLException;
  201.  
  202.    boolean supportsSelectForUpdate() throws SQLException;
  203.  
  204.    boolean supportsStoredProcedures() throws SQLException;
  205.  
  206.    boolean supportsSubqueriesInComparisons() throws SQLException;
  207.  
  208.    boolean supportsSubqueriesInExists() throws SQLException;
  209.  
  210.    boolean supportsSubqueriesInIns() throws SQLException;
  211.  
  212.    boolean supportsSubqueriesInQuantifieds() throws SQLException;
  213.  
  214.    boolean supportsCorrelatedSubqueries() throws SQLException;
  215.  
  216.    boolean supportsUnion() throws SQLException;
  217.  
  218.    boolean supportsUnionAll() throws SQLException;
  219.  
  220.    boolean supportsOpenCursorsAcrossCommit() throws SQLException;
  221.  
  222.    boolean supportsOpenCursorsAcrossRollback() throws SQLException;
  223.  
  224.    boolean supportsOpenStatementsAcrossCommit() throws SQLException;
  225.  
  226.    boolean supportsOpenStatementsAcrossRollback() throws SQLException;
  227.  
  228.    int getMaxBinaryLiteralLength() throws SQLException;
  229.  
  230.    int getMaxCharLiteralLength() throws SQLException;
  231.  
  232.    int getMaxColumnNameLength() throws SQLException;
  233.  
  234.    int getMaxColumnsInGroupBy() throws SQLException;
  235.  
  236.    int getMaxColumnsInIndex() throws SQLException;
  237.  
  238.    int getMaxColumnsInOrderBy() throws SQLException;
  239.  
  240.    int getMaxColumnsInSelect() throws SQLException;
  241.  
  242.    int getMaxColumnsInTable() throws SQLException;
  243.  
  244.    int getMaxConnections() throws SQLException;
  245.  
  246.    int getMaxCursorNameLength() throws SQLException;
  247.  
  248.    int getMaxIndexLength() throws SQLException;
  249.  
  250.    int getMaxSchemaNameLength() throws SQLException;
  251.  
  252.    int getMaxProcedureNameLength() throws SQLException;
  253.  
  254.    int getMaxCatalogNameLength() throws SQLException;
  255.  
  256.    int getMaxRowSize() throws SQLException;
  257.  
  258.    boolean doesMaxRowSizeIncludeBlobs() throws SQLException;
  259.  
  260.    int getMaxStatementLength() throws SQLException;
  261.  
  262.    int getMaxStatements() throws SQLException;
  263.  
  264.    int getMaxTableNameLength() throws SQLException;
  265.  
  266.    int getMaxTablesInSelect() throws SQLException;
  267.  
  268.    int getMaxUserNameLength() throws SQLException;
  269.  
  270.    int getDefaultTransactionIsolation() throws SQLException;
  271.  
  272.    boolean supportsTransactions() throws SQLException;
  273.  
  274.    boolean supportsTransactionIsolationLevel(int var1) throws SQLException;
  275.  
  276.    boolean supportsDataDefinitionAndDataManipulationTransactions() throws SQLException;
  277.  
  278.    boolean supportsDataManipulationTransactionsOnly() throws SQLException;
  279.  
  280.    boolean dataDefinitionCausesTransactionCommit() throws SQLException;
  281.  
  282.    boolean dataDefinitionIgnoredInTransactions() throws SQLException;
  283.  
  284.    ResultSet getProcedures(String var1, String var2, String var3) throws SQLException;
  285.  
  286.    ResultSet getProcedureColumns(String var1, String var2, String var3, String var4) throws SQLException;
  287.  
  288.    ResultSet getTables(String var1, String var2, String var3, String[] var4) throws SQLException;
  289.  
  290.    ResultSet getSchemas() throws SQLException;
  291.  
  292.    ResultSet getCatalogs() throws SQLException;
  293.  
  294.    ResultSet getTableTypes() throws SQLException;
  295.  
  296.    ResultSet getColumns(String var1, String var2, String var3, String var4) throws SQLException;
  297.  
  298.    ResultSet getColumnPrivileges(String var1, String var2, String var3, String var4) throws SQLException;
  299.  
  300.    ResultSet getTablePrivileges(String var1, String var2, String var3) throws SQLException;
  301.  
  302.    ResultSet getBestRowIdentifier(String var1, String var2, String var3, int var4, boolean var5) throws SQLException;
  303.  
  304.    ResultSet getVersionColumns(String var1, String var2, String var3) throws SQLException;
  305.  
  306.    ResultSet getPrimaryKeys(String var1, String var2, String var3) throws SQLException;
  307.  
  308.    ResultSet getImportedKeys(String var1, String var2, String var3) throws SQLException;
  309.  
  310.    ResultSet getExportedKeys(String var1, String var2, String var3) throws SQLException;
  311.  
  312.    ResultSet getCrossReference(String var1, String var2, String var3, String var4, String var5, String var6) throws SQLException;
  313.  
  314.    ResultSet getTypeInfo() throws SQLException;
  315.  
  316.    ResultSet getIndexInfo(String var1, String var2, String var3, boolean var4, boolean var5) throws SQLException;
  317. }
  318.