Skip to content

Commit

Permalink
Add values for (most) constants, thanks to java2perl6api 0.11
Browse files Browse the repository at this point in the history
  • Loading branch information
timbunce committed Sep 5, 2010
1 parent 33dc6fc commit 4f481f6
Show file tree
Hide file tree
Showing 11 changed files with 102 additions and 102 deletions.
10 changes: 5 additions & 5 deletions jdbclib/java/sql/Connection.pm6
Expand Up @@ -17,11 +17,11 @@ use java::sql::Wrapper;


role java::sql::Connection does java::sql::Wrapper { role java::sql::Connection does java::sql::Wrapper {


method TRANSACTION_NONE (--> Int) is export { ... } method TRANSACTION_NONE (--> Int) is export { 0 }
method TRANSACTION_READ_UNCOMMITTED (--> Int) is export { ... } method TRANSACTION_READ_UNCOMMITTED (--> Int) is export { 1 }
method TRANSACTION_READ_COMMITTED (--> Int) is export { ... } method TRANSACTION_READ_COMMITTED (--> Int) is export { 2 }
method TRANSACTION_REPEATABLE_READ (--> Int) is export { ... } method TRANSACTION_REPEATABLE_READ (--> Int) is export { 4 }
method TRANSACTION_SERIALIZABLE (--> Int) is export { ... } method TRANSACTION_SERIALIZABLE (--> Int) is export { 8 }


method clearWarnings ( method clearWarnings (
) { ... } # throws java.sql.SQLException ) { ... } # throws java.sql.SQLException
Expand Down
122 changes: 61 additions & 61 deletions jdbclib/java/sql/DatabaseMetaData.pm6
Expand Up @@ -12,67 +12,67 @@ use java::sql::Wrapper;


role java::sql::DatabaseMetaData does java::sql::Wrapper { role java::sql::DatabaseMetaData does java::sql::Wrapper {


method procedureResultUnknown (--> Int) is export { ... } method procedureResultUnknown (--> Int) is export { 0 }
method procedureNoResult (--> Int) is export { ... } method procedureNoResult (--> Int) is export { 1 }
method procedureReturnsResult (--> Int) is export { ... } method procedureReturnsResult (--> Int) is export { 2 }
method procedureColumnUnknown (--> Int) is export { ... } method procedureColumnUnknown (--> Int) is export { 0 }
method procedureColumnIn (--> Int) is export { ... } method procedureColumnIn (--> Int) is export { 1 }
method procedureColumnInOut (--> Int) is export { ... } method procedureColumnInOut (--> Int) is export { 2 }
method procedureColumnOut (--> Int) is export { ... } method procedureColumnOut (--> Int) is export { 4 }
method procedureColumnReturn (--> Int) is export { ... } method procedureColumnReturn (--> Int) is export { 5 }
method procedureColumnResult (--> Int) is export { ... } method procedureColumnResult (--> Int) is export { 3 }
method procedureNoNulls (--> Int) is export { ... } method procedureNoNulls (--> Int) is export { 0 }
method procedureNullable (--> Int) is export { ... } method procedureNullable (--> Int) is export { 1 }
method procedureNullableUnknown (--> Int) is export { ... } method procedureNullableUnknown (--> Int) is export { 2 }
method columnNoNulls (--> Int) is export { ... } method columnNoNulls (--> Int) is export { 0 }
method columnNullable (--> Int) is export { ... } method columnNullable (--> Int) is export { 1 }
method columnNullableUnknown (--> Int) is export { ... } method columnNullableUnknown (--> Int) is export { 2 }
method bestRowTemporary (--> Int) is export { ... } method bestRowTemporary (--> Int) is export { 0 }
method bestRowTransaction (--> Int) is export { ... } method bestRowTransaction (--> Int) is export { 1 }
method bestRowSession (--> Int) is export { ... } method bestRowSession (--> Int) is export { 2 }
method bestRowUnknown (--> Int) is export { ... } method bestRowUnknown (--> Int) is export { 0 }
method bestRowNotPseudo (--> Int) is export { ... } method bestRowNotPseudo (--> Int) is export { 1 }
method bestRowPseudo (--> Int) is export { ... } method bestRowPseudo (--> Int) is export { 2 }
method versionColumnUnknown (--> Int) is export { ... } method versionColumnUnknown (--> Int) is export { 0 }
method versionColumnNotPseudo (--> Int) is export { ... } method versionColumnNotPseudo (--> Int) is export { 1 }
method versionColumnPseudo (--> Int) is export { ... } method versionColumnPseudo (--> Int) is export { 2 }
method importedKeyCascade (--> Int) is export { ... } method importedKeyCascade (--> Int) is export { 0 }
method importedKeyRestrict (--> Int) is export { ... } method importedKeyRestrict (--> Int) is export { 1 }
method importedKeySetNull (--> Int) is export { ... } method importedKeySetNull (--> Int) is export { 2 }
method importedKeyNoAction (--> Int) is export { ... } method importedKeyNoAction (--> Int) is export { 3 }
method importedKeySetDefault (--> Int) is export { ... } method importedKeySetDefault (--> Int) is export { 4 }
method importedKeyInitiallyDeferred (--> Int) is export { ... } method importedKeyInitiallyDeferred (--> Int) is export { 5 }
method importedKeyInitiallyImmediate (--> Int) is export { ... } method importedKeyInitiallyImmediate (--> Int) is export { 6 }
method importedKeyNotDeferrable (--> Int) is export { ... } method importedKeyNotDeferrable (--> Int) is export { 7 }
method typeNoNulls (--> Int) is export { ... } method typeNoNulls (--> Int) is export { 0 }
method typeNullable (--> Int) is export { ... } method typeNullable (--> Int) is export { 1 }
method typeNullableUnknown (--> Int) is export { ... } method typeNullableUnknown (--> Int) is export { 2 }
method typePredNone (--> Int) is export { ... } method typePredNone (--> Int) is export { 0 }
method typePredChar (--> Int) is export { ... } method typePredChar (--> Int) is export { 1 }
method typePredBasic (--> Int) is export { ... } method typePredBasic (--> Int) is export { 2 }
method typeSearchable (--> Int) is export { ... } method typeSearchable (--> Int) is export { 3 }
method tableIndexStatistic (--> Int) is export { ... } method tableIndexStatistic (--> Int) is export { 0 }
method tableIndexClustered (--> Int) is export { ... } method tableIndexClustered (--> Int) is export { 1 }
method tableIndexHashed (--> Int) is export { ... } method tableIndexHashed (--> Int) is export { 2 }
method tableIndexOther (--> Int) is export { ... } method tableIndexOther (--> Int) is export { 3 }
method attributeNoNulls (--> Int) is export { ... } method attributeNoNulls (--> Int) is export { 0 }
method attributeNullable (--> Int) is export { ... } method attributeNullable (--> Int) is export { 1 }
method attributeNullableUnknown (--> Int) is export { ... } method attributeNullableUnknown (--> Int) is export { 2 }
method sqlStateXOpen (--> Int) is export { ... } method sqlStateXOpen (--> Int) is export { 1 }
method sqlStateSQL (--> Int) is export { ... } method sqlStateSQL (--> Int) is export { 2 }
method sqlStateSQL99 (--> Int) is export { ... } method sqlStateSQL99 (--> Int) is export { 2 }
method functionColumnUnknown (--> Int) is export { ... } method functionColumnUnknown (--> Int) is export { 0 }
method functionColumnIn (--> Int) is export { ... } method functionColumnIn (--> Int) is export { 1 }
method functionColumnInOut (--> Int) is export { ... } method functionColumnInOut (--> Int) is export { 2 }
method functionColumnOut (--> Int) is export { ... } method functionColumnOut (--> Int) is export { 3 }
method functionReturn (--> Int) is export { ... } method functionReturn (--> Int) is export { 4 }
method functionColumnResult (--> Int) is export { ... } method functionColumnResult (--> Int) is export { 5 }
method functionNoNulls (--> Int) is export { ... } method functionNoNulls (--> Int) is export { 0 }
method functionNullable (--> Int) is export { ... } method functionNullable (--> Int) is export { 1 }
method functionNullableUnknown (--> Int) is export { ... } method functionNullableUnknown (--> Int) is export { 2 }
method functionResultUnknown (--> Int) is export { ... } method functionResultUnknown (--> Int) is export { 0 }
method functionNoTable (--> Int) is export { ... } method functionNoTable (--> Int) is export { 1 }
method functionReturnsTable (--> Int) is export { ... } method functionReturnsTable (--> Int) is export { 2 }


method allProceduresAreCallable ( method allProceduresAreCallable (
--> Bool # boolean --> Bool # boolean
Expand Down
2 changes: 1 addition & 1 deletion jdbclib/java/sql/Date.pm6
Expand Up @@ -8,7 +8,7 @@ use v6;


role java::sql::Date does DateTime { role java::sql::Date does DateTime {


method serialVersionUID (--> Int) is export { ... } method serialVersionUID (--> Int) is export { 1511598038487230103 }


multi method new ( multi method new (
Int $v1, # long Int $v1, # long
Expand Down
2 changes: 1 addition & 1 deletion jdbclib/java/sql/DriverManager.pm6
Expand Up @@ -10,7 +10,7 @@ class java::sql::Driver { ... };


role java::sql::DriverManager { role java::sql::DriverManager {


method SET_LOG_PERMISSION (--> Any) is export { ... } method SET_LOG_PERMISSION (--> Any) is export { ... }


method deregisterDriver ( method deregisterDriver (
java::sql::Driver $v1, # java.sql.Driver java::sql::Driver $v1, # java.sql.Driver
Expand Down
14 changes: 7 additions & 7 deletions jdbclib/java/sql/ParameterMetaData.pm6
Expand Up @@ -9,13 +9,13 @@ use java::sql::Wrapper;


role java::sql::ParameterMetaData does java::sql::Wrapper { role java::sql::ParameterMetaData does java::sql::Wrapper {


method parameterNoNulls (--> Int) is export { ... } method parameterNoNulls (--> Int) is export { 0 }
method parameterNullable (--> Int) is export { ... } method parameterNullable (--> Int) is export { 1 }
method parameterNullableUnknown (--> Int) is export { ... } method parameterNullableUnknown (--> Int) is export { 2 }
method parameterModeUnknown (--> Int) is export { ... } method parameterModeUnknown (--> Int) is export { 0 }
method parameterModeIn (--> Int) is export { ... } method parameterModeIn (--> Int) is export { 1 }
method parameterModeInOut (--> Int) is export { ... } method parameterModeInOut (--> Int) is export { 2 }
method parameterModeOut (--> Int) is export { ... } method parameterModeOut (--> Int) is export { 4 }


method getParameterClassName ( method getParameterClassName (
Int $v1, # int Int $v1, # int
Expand Down
20 changes: 10 additions & 10 deletions jdbclib/java/sql/ResultSet.pm6
Expand Up @@ -19,16 +19,16 @@ use java::sql::Wrapper;


role java::sql::ResultSet does java::sql::Wrapper { role java::sql::ResultSet does java::sql::Wrapper {


method FETCH_FORWARD (--> Int) is export { ... } method FETCH_FORWARD (--> Int) is export { 1000 }
method FETCH_REVERSE (--> Int) is export { ... } method FETCH_REVERSE (--> Int) is export { 1001 }
method FETCH_UNKNOWN (--> Int) is export { ... } method FETCH_UNKNOWN (--> Int) is export { 1002 }
method TYPE_FORWARD_ONLY (--> Int) is export { ... } method TYPE_FORWARD_ONLY (--> Int) is export { 1003 }
method TYPE_SCROLL_INSENSITIVE (--> Int) is export { ... } method TYPE_SCROLL_INSENSITIVE (--> Int) is export { 1004 }
method TYPE_SCROLL_SENSITIVE (--> Int) is export { ... } method TYPE_SCROLL_SENSITIVE (--> Int) is export { 1005 }
method CONCUR_READ_ONLY (--> Int) is export { ... } method CONCUR_READ_ONLY (--> Int) is export { 1007 }
method CONCUR_UPDATABLE (--> Int) is export { ... } method CONCUR_UPDATABLE (--> Int) is export { 1008 }
method HOLD_CURSORS_OVER_COMMIT (--> Int) is export { ... } method HOLD_CURSORS_OVER_COMMIT (--> Int) is export { 1 }
method CLOSE_CURSORS_AT_COMMIT (--> Int) is export { ... } method CLOSE_CURSORS_AT_COMMIT (--> Int) is export { 2 }


method absolute ( method absolute (
Int $v1, # int Int $v1, # int
Expand Down
6 changes: 3 additions & 3 deletions jdbclib/java/sql/ResultSetMetaData.pm6
Expand Up @@ -9,9 +9,9 @@ use java::sql::Wrapper;


role java::sql::ResultSetMetaData does java::sql::Wrapper { role java::sql::ResultSetMetaData does java::sql::Wrapper {


method columnNoNulls (--> Int) is export { ... } method columnNoNulls (--> Int) is export { 0 }
method columnNullable (--> Int) is export { ... } method columnNullable (--> Int) is export { 1 }
method columnNullableUnknown (--> Int) is export { ... } method columnNullableUnknown (--> Int) is export { 2 }


method getCatalogName ( method getCatalogName (
Int $v1, # int Int $v1, # int
Expand Down
10 changes: 5 additions & 5 deletions jdbclib/java/sql/RowIdLifetime.pm6
Expand Up @@ -9,11 +9,11 @@ use java::lang::Enum;


role java::sql::RowIdLifetime does java::lang::Enum { role java::sql::RowIdLifetime does java::lang::Enum {


method ROWID_UNSUPPORTED (--> java::sql::RowIdLifetime) is export { ... } method ROWID_UNSUPPORTED (--> java::sql::RowIdLifetime) is export { ... }
method ROWID_VALID_OTHER (--> java::sql::RowIdLifetime) is export { ... } method ROWID_VALID_OTHER (--> java::sql::RowIdLifetime) is export { ... }
method ROWID_VALID_SESSION (--> java::sql::RowIdLifetime) is export { ... } method ROWID_VALID_SESSION (--> java::sql::RowIdLifetime) is export { ... }
method ROWID_VALID_TRANSACTION (--> java::sql::RowIdLifetime) is export { ... } method ROWID_VALID_TRANSACTION (--> java::sql::RowIdLifetime) is export { ... }
method ROWID_VALID_FOREVER (--> java::sql::RowIdLifetime) is export { ... } method ROWID_VALID_FOREVER (--> java::sql::RowIdLifetime) is export { ... }


method valueOf ( method valueOf (
Str $v1, # java.lang.String Str $v1, # java.lang.String
Expand Down
14 changes: 7 additions & 7 deletions jdbclib/java/sql/Statement.pm6
Expand Up @@ -12,13 +12,13 @@ use java::sql::Wrapper;


role java::sql::Statement does java::sql::Wrapper { role java::sql::Statement does java::sql::Wrapper {


method CLOSE_CURRENT_RESULT (--> Int) is export { ... } method CLOSE_CURRENT_RESULT (--> Int) is export { 1 }
method KEEP_CURRENT_RESULT (--> Int) is export { ... } method KEEP_CURRENT_RESULT (--> Int) is export { 2 }
method CLOSE_ALL_RESULTS (--> Int) is export { ... } method CLOSE_ALL_RESULTS (--> Int) is export { 3 }
method SUCCESS_NO_INFO (--> Int) is export { ... } method SUCCESS_NO_INFO (--> Int) is export { -2 }
method EXECUTE_FAILED (--> Int) is export { ... } method EXECUTE_FAILED (--> Int) is export { -3 }
method RETURN_GENERATED_KEYS (--> Int) is export { ... } method RETURN_GENERATED_KEYS (--> Int) is export { 1 }
method NO_GENERATED_KEYS (--> Int) is export { ... } method NO_GENERATED_KEYS (--> Int) is export { 2 }


method addBatch ( method addBatch (
Str $v1, # java.lang.String Str $v1, # java.lang.String
Expand Down
2 changes: 1 addition & 1 deletion jdbclib/java/sql/Time.pm6
Expand Up @@ -8,7 +8,7 @@ use v6;


role java::sql::Time does DateTime { role java::sql::Time does DateTime {


method serialVersionUID (--> Int) is export { ... } method serialVersionUID (--> Int) is export { 8397324403548013681 }


multi method new ( multi method new (
Int $v1, # long Int $v1, # long
Expand Down
2 changes: 1 addition & 1 deletion jdbclib/java/sql/Timestamp.pm6
Expand Up @@ -8,7 +8,7 @@ use v6;


role java::sql::Timestamp does DateTime { role java::sql::Timestamp does DateTime {


method serialVersionUID (--> Int) is export { ... } method serialVersionUID (--> Int) is export { 2745179027874758501 }


multi method new ( multi method new (
Int $v1, # long Int $v1, # long
Expand Down

0 comments on commit 4f481f6

Please sign in to comment.