cannot create jdbc driver of class for connect url null
Sponsored Links
Sponsored Links
Secleted [ 0 ] software to compare
Results 1 - 15 of about 10312
JDBC Driver for SQLite 006
JDBC Driver for SQLite is a thin layer on top of the SQLite 3.3.x C API. more>>
JDBC Driver for SQLite is a thin layer on top of the SQLite 3.3.x C API. The native JNI library has SQLite compiled into it so all you need to do is include the two files packaged above in your project.
Usage:
Download the binary for the platform you are developing on. Open the tarball and copy the two files into your application directory:
sqlitejdbc.jar
[lib]sqlitejdbc.[dll, so, jnilib]
Reference the driver in your code:
Class.forName("org.sqlite.JDBC");
Connection conn = DriverManager.getConnection("jdbc:sqlite:filename");
// ... use the database ...
conn.close();
And call your program with the drivers JAR file in the classpath and the C library in the librarypath. E.g.
java -cp lib/yourprog.jar:lib/sqlitejdbc.jar
-Djava.library.path=lib
yourprog.Main
Enhancements:
- The driver is now thread-safe and fully supports UTF-16.
- There are binaries for Mac OS, Linux, and Windows, and instructions for compiling with MSVC.
<<lessUsage:
Download the binary for the platform you are developing on. Open the tarball and copy the two files into your application directory:
sqlitejdbc.jar
[lib]sqlitejdbc.[dll, so, jnilib]
Reference the driver in your code:
Class.forName("org.sqlite.JDBC");
Connection conn = DriverManager.getConnection("jdbc:sqlite:filename");
// ... use the database ...
conn.close();
And call your program with the drivers JAR file in the classpath and the C library in the librarypath. E.g.
java -cp lib/yourprog.jar:lib/sqlitejdbc.jar
-Djava.library.path=lib
yourprog.Main
Enhancements:
- The driver is now thread-safe and fully supports UTF-16.
- There are binaries for Mac OS, Linux, and Windows, and instructions for compiling with MSVC.
Download (0.016MB)
Added: 2006-08-05 License: BSD License Price:
705 downloads
Calendario Class 1.0
Calendario Class provides a PHP class that is useful for creating calendars and organizers. more>>
Calendario Class provides a PHP class that is useful for creating calendars and organizers.
Calendario Class is a PHP class that helps you to create calendar and organizers.
Its highly configurable, letting you choose how many days are in a week, when a week starts, the details of the HTML output, and so on.
It also knows about holidays.
Enhancements:
- Added holidays functionality
<<lessCalendario Class is a PHP class that helps you to create calendar and organizers.
Its highly configurable, letting you choose how many days are in a week, when a week starts, the details of the HTML output, and so on.
It also knows about holidays.
Enhancements:
- Added holidays functionality
Download (0.096MB)
Added: 2007-03-16 License: LGPL (GNU Lesser General Public License) Price:
956 downloads
WebServerInfo PHP class 1.0.0
WebServerInfo PHP class is intended for developer who create software that will run on different web servers. more>>
WebServerInfo PHP class is intended for developer who create software that will run
on different web servers. The project gives a developer a consistent interface
for accessing web servers variables.
Usage:
You have following options:
Option #1
require_once("WebServerInfo.class.php");
$obj = new WebServerInfo();
print $_SERVER[DOCUMENT_ROOT];
Option #2
require_once("WebServerInfo.class.php");
$obj = new WebServerInfo();
print $obj->get(DOCUMENT_ROOT);
Option #3
uncomment the 3rd line from WebServerInfo.class.php
and all you have to do is require the WebServerInfo.class.php class.
Note:
The constructor of WebServerInfo class overrides $_SERVER variable and
variables can be accessed as usual way.
Following base variables are exported if they do not exist.
REQUEST_URI
REDIRECT_URL
DOCUMENT_ROOT
SERVER_SIGNATURE
SERVER_ADDR
SCRIPT_FILENAME
<<lesson different web servers. The project gives a developer a consistent interface
for accessing web servers variables.
Usage:
You have following options:
Option #1
require_once("WebServerInfo.class.php");
$obj = new WebServerInfo();
print $_SERVER[DOCUMENT_ROOT];
Option #2
require_once("WebServerInfo.class.php");
$obj = new WebServerInfo();
print $obj->get(DOCUMENT_ROOT);
Option #3
uncomment the 3rd line from WebServerInfo.class.php
and all you have to do is require the WebServerInfo.class.php class.
Note:
The constructor of WebServerInfo class overrides $_SERVER variable and
variables can be accessed as usual way.
Following base variables are exported if they do not exist.
REQUEST_URI
REDIRECT_URL
DOCUMENT_ROOT
SERVER_SIGNATURE
SERVER_ADDR
SCRIPT_FILENAME
Download (0.013MB)
Added: 2006-11-22 License: LGPL (GNU Lesser General Public License) Price:
1067 downloads
WWW::Scraper::ISBN::Driver 0.18
WWW::Scraper::ISBN::Driver is a Perl module that contains driver class for WWW::Scraper::ISBN module. more>>
WWW::Scraper::ISBN::Driver is a Perl module that contains driver class for WWW::Scraper::ISBN module.
SYNOPSIS
use WWW::Scraper::ISBN::Driver;
$driver = WWW::Scraper::ISBN::Driver->new();
$driver->search($isbn);
if ($driver->found) { ... }
$driver->verbosity(1);
my $book = $driver->book();
print $book(title);
print $driver->error;
This is a base class, all site-specific drivers should inherit its members and methods. Driver subclasses named $name should be packaged as WWW::Scraper::ISBN::$name_Driver, e.g. WWW::Scraper::ISBN::LOC_Driver for LOC (Library of Congress) driver. Each driver need only implement the search() method, though they may have as many other methods as they need to get their job done. Only search() will be called by WWW::Scraper::ISBN->search().
Standard Fields
It is important that the different drivers return at least a core set of information, though they may return additional information. The following self-explanatory fields should exist in $driver-book>:
author
title
isbn
Additional standard fields may be added in the future. volume and edition are common. In some cases, there may be no information available for volume or edition, and so these may be set to the empty string. However, they must still be set in the hash!
Expiration
Due to the dynamic, ever-changing nature of the web, it is highly likely that the site from which many of these drivers glean their information will change. Hopefully, driver maintainers will keep drivers up to date, but they will all expire, and may behave unexpectedly. Keep this in mind if the driver continually returns weird results.
Export
None by default.
<<lessSYNOPSIS
use WWW::Scraper::ISBN::Driver;
$driver = WWW::Scraper::ISBN::Driver->new();
$driver->search($isbn);
if ($driver->found) { ... }
$driver->verbosity(1);
my $book = $driver->book();
print $book(title);
print $driver->error;
This is a base class, all site-specific drivers should inherit its members and methods. Driver subclasses named $name should be packaged as WWW::Scraper::ISBN::$name_Driver, e.g. WWW::Scraper::ISBN::LOC_Driver for LOC (Library of Congress) driver. Each driver need only implement the search() method, though they may have as many other methods as they need to get their job done. Only search() will be called by WWW::Scraper::ISBN->search().
Standard Fields
It is important that the different drivers return at least a core set of information, though they may return additional information. The following self-explanatory fields should exist in $driver-book>:
author
title
isbn
Additional standard fields may be added in the future. volume and edition are common. In some cases, there may be no information available for volume or edition, and so these may be set to the empty string. However, they must still be set in the hash!
Expiration
Due to the dynamic, ever-changing nature of the web, it is highly likely that the site from which many of these drivers glean their information will change. Hopefully, driver maintainers will keep drivers up to date, but they will all expire, and may behave unexpectedly. Keep this in mind if the driver continually returns weird results.
Export
None by default.
Download (0.004MB)
Added: 2006-12-18 License: Perl Artistic License Price:
1040 downloads
e-U Connect 0.32
e-U Connect is a WPA Supplicant text mode user interface based on bash+dialog for connecting to the e-U network under Linux. more>>
e-U Connect is a WPA Supplicant text mode user interface based on bash+dialog for connecting to the e-U network under Linux.
<<less Download (0.013MB)
Added: 2006-11-24 License: GPL (GNU General Public License) Price:
1068 downloads
Filesys::MakeISO::Driver::Mkisofs 0.0.1
Filesys::MakeISO::Driver::Mkisofs is a Perl module to make iso images with mkisofs. more>>
Filesys::MakeISO::Driver::Mkisofs is a Perl module to make iso images with mkisofs.
SYNOPSIS
use Filesys::MakeISO;
my $iso = Filesys::MakeISO->new(
class => Filesys::MakeISO::Driver::Mkisofs,
mkisofs_bin => /usr/bin/mkisofs,
);
$iso->image(image.iso);
$iso->dir(/path/to/burn);
$iso->make_iso;
INTERFACE
new [PARAMS]
Constructor. Returns undef if no mkisofs executable is found.
Valid PARAMS are:
mkisofs_bin
Location (path and filename) of the mkisofs binary.
make_iso
Create image, specific for mkisofs.
<<lessSYNOPSIS
use Filesys::MakeISO;
my $iso = Filesys::MakeISO->new(
class => Filesys::MakeISO::Driver::Mkisofs,
mkisofs_bin => /usr/bin/mkisofs,
);
$iso->image(image.iso);
$iso->dir(/path/to/burn);
$iso->make_iso;
INTERFACE
new [PARAMS]
Constructor. Returns undef if no mkisofs executable is found.
Valid PARAMS are:
mkisofs_bin
Location (path and filename) of the mkisofs binary.
make_iso
Create image, specific for mkisofs.
Download (0.010MB)
Added: 2007-01-17 License: Perl Artistic License Price:
1029 downloads
Wily::Connect 0.02
Wily::Connect is a Perl module that connects to a running Wily text editor. more>>
Wily::Connect is a Perl module that connects to a running Wily text editor.
SYNOPSIS
use Wily::Connect;
my $wily_socket = Wily::Connect::connect();
The connect sub connects to wily this involves creating a unix domain socket, listening on that socket, writing the name of that socket to the fifo wily is reading from (either $ENV{WILYFIFO} or if that doesnt exist /tmp/wily[login]$ENV{DISPLAY}, and then accepting the connection to the unix domain socket that wily will make.
The functions does all of that and hence may block while waiting for wily.
<<lessSYNOPSIS
use Wily::Connect;
my $wily_socket = Wily::Connect::connect();
The connect sub connects to wily this involves creating a unix domain socket, listening on that socket, writing the name of that socket to the fifo wily is reading from (either $ENV{WILYFIFO} or if that doesnt exist /tmp/wily[login]$ENV{DISPLAY}, and then accepting the connection to the unix domain socket that wily will make.
The functions does all of that and hence may block while waiting for wily.
Download (0.021MB)
Added: 2007-03-01 License: Perl Artistic License Price:
968 downloads
JDBC SQL Profiler 0.3
JDBC SQL Profiler is a Swing-based GUI tool to recommend database index creation. more>>
JDBC SQL Profiler is a quickly hacked tool to do statistics on SELECT queries in order to know where it is most efficient to create indexes.
This small tool, released under an Apache-based license connects to the P6Spy JDBC logger and displays in real time the queries going to the database. It uses an integrated SQL parser to build statistics on the most accessed tables and columns and can generate SQL index creation files.
Other information is also gathered and displayed, such as the request time for a single request, for a class of request, and for all the requests. Sorting may be done on these views to detect database problems efficiently.
This tool can be very useful when you have a big volume of queries that you need to analyze not one by one (meaning that the specific time isnt that much of interest), but rather when you want to know what "group" of queries is taking a lot of time, such as queries on the same tables and columns but with different query values. The integrated SQL parser (built with ANTLR) is used to analyze the incoming SELECT queries.
The Swing GUI was based on Apaches Log4J Chainsaw, but all the bugs are mine. Also contributors are welcome to test, make new suggestions, give their opinion and submit patches.
<<lessThis small tool, released under an Apache-based license connects to the P6Spy JDBC logger and displays in real time the queries going to the database. It uses an integrated SQL parser to build statistics on the most accessed tables and columns and can generate SQL index creation files.
Other information is also gathered and displayed, such as the request time for a single request, for a class of request, and for all the requests. Sorting may be done on these views to detect database problems efficiently.
This tool can be very useful when you have a big volume of queries that you need to analyze not one by one (meaning that the specific time isnt that much of interest), but rather when you want to know what "group" of queries is taking a lot of time, such as queries on the same tables and columns but with different query values. The integrated SQL parser (built with ANTLR) is used to analyze the incoming SELECT queries.
The Swing GUI was based on Apaches Log4J Chainsaw, but all the bugs are mine. Also contributors are welcome to test, make new suggestions, give their opinion and submit patches.
Download (1.0MB)
Added: 2005-04-28 License: The Apache License Price:
1644 downloads
Class::DBI::FormBuilder 0.481
Class::DBI::FormBuilder is a Perl module with Class::DBI/CGI::FormBuilder integration. more>>
Class::DBI::FormBuilder is a Perl module with Class::DBI/CGI::FormBuilder integration.
SYNOPSIS
package Film;
use strict;
use warnings;
use base Class::DBI;
use Class::DBI::FormBuilder;
# for indented output:
# use Class::DBI::FormBuilder PrettyPrint => ALL;
# POST all forms to server
Film->form_builder_defaults->{method} = post;
# customise how some fields are built:
# actor is a has_a field, and the
# related table has 1000s of rows, so we dont want the default popup widget,
# we just want to show the current value
Film->form_builder_defaults->{process_fields}->{actor} = VALUE;
# trailer stores an mpeg file, but CDBI::FB cannot automatically detect
# file upload fields, so need to tell it:
Film->form_builder_defaults->{process_fields}->{trailer} = FILE;
# has_a fields will be automatically set to required. Additional fields can be specified:
Film->form_builder_defaults->{required} = qw( foo bar );
# In a nearby piece of code...
my $film = Film->retrieve( $id );
print $film->as_form( params => $q )->render; # or $r if mod_perl
# For a search app:
my $search_form = Film->search_form; # as_form plus a few tweaks
# A fairly complete mini-app:
my $form = Film->as_form( params => $q ); # or $r if mod_perl
if ( $form->submitted and $form->validate )
{
# whatever you need:
my $obj = Film->create_from_form( $form );
my $obj = Film->update_from_form( $form );
my $obj = Film->update_or_create_from_form( $form );
my $obj = Film->retrieve_from_form( $form );
my $iter = Film->search_from_form( $form );
my $iter = Film->search_like_from_form( $form );
my $iter = Film->search_where_from_form( $form );
my $obj = Film->find_or_create_from_form( $form );
my $obj = Film->retrieve_or_create_from_form( $form );
print $form->confirm;
}
else
{
print $form->render;
}
# See CGI::FormBuilder docs and website for lots more information.
Errata: use of column name/accessor/mutator is currently broken if your column accessors/mutators are different from the column name. The documentation is also broken w.r.t. this.
This module creates a CGI::FormBuilder form from a CDBI class or object. If from an object, it populates the form fields with the objects values.
Column metadata and CDBI relationships are analyzed and the fields of the form are modified accordingly. For instance, MySQL enum and set columns are configured as select, radiobutton or checkbox widgets as appropriate, and appropriate widgets are built for has_a, has_many and might_have relationships. Further relationships can be added by subclassing. has_a columns are set as required fields in create/update forms.
<<lessSYNOPSIS
package Film;
use strict;
use warnings;
use base Class::DBI;
use Class::DBI::FormBuilder;
# for indented output:
# use Class::DBI::FormBuilder PrettyPrint => ALL;
# POST all forms to server
Film->form_builder_defaults->{method} = post;
# customise how some fields are built:
# actor is a has_a field, and the
# related table has 1000s of rows, so we dont want the default popup widget,
# we just want to show the current value
Film->form_builder_defaults->{process_fields}->{actor} = VALUE;
# trailer stores an mpeg file, but CDBI::FB cannot automatically detect
# file upload fields, so need to tell it:
Film->form_builder_defaults->{process_fields}->{trailer} = FILE;
# has_a fields will be automatically set to required. Additional fields can be specified:
Film->form_builder_defaults->{required} = qw( foo bar );
# In a nearby piece of code...
my $film = Film->retrieve( $id );
print $film->as_form( params => $q )->render; # or $r if mod_perl
# For a search app:
my $search_form = Film->search_form; # as_form plus a few tweaks
# A fairly complete mini-app:
my $form = Film->as_form( params => $q ); # or $r if mod_perl
if ( $form->submitted and $form->validate )
{
# whatever you need:
my $obj = Film->create_from_form( $form );
my $obj = Film->update_from_form( $form );
my $obj = Film->update_or_create_from_form( $form );
my $obj = Film->retrieve_from_form( $form );
my $iter = Film->search_from_form( $form );
my $iter = Film->search_like_from_form( $form );
my $iter = Film->search_where_from_form( $form );
my $obj = Film->find_or_create_from_form( $form );
my $obj = Film->retrieve_or_create_from_form( $form );
print $form->confirm;
}
else
{
print $form->render;
}
# See CGI::FormBuilder docs and website for lots more information.
Errata: use of column name/accessor/mutator is currently broken if your column accessors/mutators are different from the column name. The documentation is also broken w.r.t. this.
This module creates a CGI::FormBuilder form from a CDBI class or object. If from an object, it populates the form fields with the objects values.
Column metadata and CDBI relationships are analyzed and the fields of the form are modified accordingly. For instance, MySQL enum and set columns are configured as select, radiobutton or checkbox widgets as appropriate, and appropriate widgets are built for has_a, has_many and might_have relationships. Further relationships can be added by subclassing. has_a columns are set as required fields in create/update forms.
Download (0.045MB)
Added: 2006-10-25 License: Perl Artistic License Price:
1094 downloads
WWW::Scraper::ISBN::Yahoo_Driver 0.04
WWW::Scraper::ISBN::Yahoo_Driver is a search driver for Yahoo Books online catalog. more>>
WWW::Scraper::ISBN::Yahoo_Driver is a search driver for Yahoo Books online catalog.
SYNOPSIS
See parent class documentation (WWW::Scraper::ISBN::Driver)
Searches for book information from the Yahoo Books online catalog.
METHODS
search()
Creates a query string, then passes the appropriate form fields to the Yahoo Books server.
The returned page should be the correct catalog page for that ISBN. If not the function returns zero and allows the next driver in the chain to have a go. If a valid page is returned, the following fields are returned via the book hash:
isbn
title
author
pubdate
publisher
book_link
image_link
thumb_link (same as image_link)
The book_link and image_link refer back to the Yahoo Books website.
<<lessSYNOPSIS
See parent class documentation (WWW::Scraper::ISBN::Driver)
Searches for book information from the Yahoo Books online catalog.
METHODS
search()
Creates a query string, then passes the appropriate form fields to the Yahoo Books server.
The returned page should be the correct catalog page for that ISBN. If not the function returns zero and allows the next driver in the chain to have a go. If a valid page is returned, the following fields are returned via the book hash:
isbn
title
author
pubdate
publisher
book_link
image_link
thumb_link (same as image_link)
The book_link and image_link refer back to the Yahoo Books website.
Download (0.004MB)
Added: 2006-12-12 License: Perl Artistic License Price:
1046 downloads
Class::Observable 1.04
Class::Observable is a Perl module that allows other classes and objects to respond to events in yours. more>>
Class::Observable is a Perl module that allows other classes and objects to respond to events in yours.
SYNOPSIS
# Define an observable class
package My::Object;
use base qw( Class::Observable );
# Tell all classes/objects observing this object that a state-change
# has occurred
sub create {
my ( $self ) = @_;
eval { $self->_perform_create() };
if ( $@ ) {
My::Exception->throw( "Error saving: $@" );
}
$self->notify_observers();
}
# Same thing, except make the type of change explicit and pass
# arguments.
sub edit {
my ( $self ) = @_;
my %old_values = $self->extract_values;
eval { $self->_perform_edit() };
if ( $@ ) {
My::Exception->throw( "Error saving: $@" );
}
$self->notify_observers( edit, old_values => %old_values );
}
# Define an observer
package My::Observer;
sub update {
my ( $class, $object, $action ) = @_;
unless ( $action ) {
warn "Cannot operation on [", $object->id, "] without action";
return;
}
$class->_on_save( $object ) if ( $action eq save );
$class->_on_update( $object ) if ( $action eq update );
}
# Register the observer class with all instances of the observable
# class
My::Object->add_observer( My::Observer );
# Register the observer class with a single instance of the
# observable class
my $object = My::Object->new( foo );
$object->add_observer( My::Observer );
# Register an observer object the same way
my $observer = My::Observer->new( bar );
My::Object->add_observer( $observer );
my $object = My::Object->new( foo );
$object->add_observer( $observer );
# Register an observer using a subroutine
sub catch_observation { ... }
My::Object->add_observer( &catch_observation );
my $object = My::Object->new( foo );
$object->add_observer( &catch_observation );
# Define the observable class as a parent and allow the observers to
# be used by the child
package My::Parent;
use strict;
use base qw( Class::Observable );
sub prepare_for_bed {
my ( $self ) = @_;
$self->notify_observers( prepare_for_bed );
}
sub brush_teeth {
my ( $self ) = @_;
$self->_brush_teeth( time => 45 );
$self->_floss_teeth( time => 30 );
$self->_gargle( time => 30 );
}
sub wash_face { ... }
package My::Child;
use strict;
use base qw( My::Parent );
sub brush_teeth {
my ( $self ) = @_;
$self->_wet_toothbrush();
}
sub wash_face { return }
# Create a class-based observer
package My::ParentRules;
sub update {
my ( $item, $action ) = @_;
if ( $action eq prepare_for_bed ) {
$item->brush_teeth;
$item->wash_face;
}
}
My::Parent->add_observer( __PACKAGE__ );
$parent->prepare_for_bed # brush, floss, gargle, and wash face
$child->prepare_for_bed # pretend to brush, pretend to wash face
<<lessSYNOPSIS
# Define an observable class
package My::Object;
use base qw( Class::Observable );
# Tell all classes/objects observing this object that a state-change
# has occurred
sub create {
my ( $self ) = @_;
eval { $self->_perform_create() };
if ( $@ ) {
My::Exception->throw( "Error saving: $@" );
}
$self->notify_observers();
}
# Same thing, except make the type of change explicit and pass
# arguments.
sub edit {
my ( $self ) = @_;
my %old_values = $self->extract_values;
eval { $self->_perform_edit() };
if ( $@ ) {
My::Exception->throw( "Error saving: $@" );
}
$self->notify_observers( edit, old_values => %old_values );
}
# Define an observer
package My::Observer;
sub update {
my ( $class, $object, $action ) = @_;
unless ( $action ) {
warn "Cannot operation on [", $object->id, "] without action";
return;
}
$class->_on_save( $object ) if ( $action eq save );
$class->_on_update( $object ) if ( $action eq update );
}
# Register the observer class with all instances of the observable
# class
My::Object->add_observer( My::Observer );
# Register the observer class with a single instance of the
# observable class
my $object = My::Object->new( foo );
$object->add_observer( My::Observer );
# Register an observer object the same way
my $observer = My::Observer->new( bar );
My::Object->add_observer( $observer );
my $object = My::Object->new( foo );
$object->add_observer( $observer );
# Register an observer using a subroutine
sub catch_observation { ... }
My::Object->add_observer( &catch_observation );
my $object = My::Object->new( foo );
$object->add_observer( &catch_observation );
# Define the observable class as a parent and allow the observers to
# be used by the child
package My::Parent;
use strict;
use base qw( Class::Observable );
sub prepare_for_bed {
my ( $self ) = @_;
$self->notify_observers( prepare_for_bed );
}
sub brush_teeth {
my ( $self ) = @_;
$self->_brush_teeth( time => 45 );
$self->_floss_teeth( time => 30 );
$self->_gargle( time => 30 );
}
sub wash_face { ... }
package My::Child;
use strict;
use base qw( My::Parent );
sub brush_teeth {
my ( $self ) = @_;
$self->_wet_toothbrush();
}
sub wash_face { return }
# Create a class-based observer
package My::ParentRules;
sub update {
my ( $item, $action ) = @_;
if ( $action eq prepare_for_bed ) {
$item->brush_teeth;
$item->wash_face;
}
}
My::Parent->add_observer( __PACKAGE__ );
$parent->prepare_for_bed # brush, floss, gargle, and wash face
$child->prepare_for_bed # pretend to brush, pretend to wash face
Download (0.010MB)
Added: 2007-06-06 License: Perl Artistic License Price:
870 downloads
Java for C++ 0.4
Java for C++ is a tool to generate C++-wrapper-classes for existing Java-classes. more>>
Java for C++ is a tool to generate C++-wrapper-classes for existing Java-classes. This tool reads a list of Java class names and creates source code for C++-classes to wrap them.
The implementation of the wrapper classes uses JNI (Java Native Interface) to call the "real" Java classes.
The C++-API to use these wrapper classes is very close to the API of the original Java classes. So developers of C++-software can use Java-classes as if they have been implemented in C++.
Enhancements:
- A problem where null values for method arguments, method return values, or field values caused some generated code to crash was fixed.
- Updating is strongly encouraged.
<<lessThe implementation of the wrapper classes uses JNI (Java Native Interface) to call the "real" Java classes.
The C++-API to use these wrapper classes is very close to the API of the original Java classes. So developers of C++-software can use Java-classes as if they have been implemented in C++.
Enhancements:
- A problem where null values for method arguments, method return values, or field values caused some generated code to crash was fixed.
- Updating is strongly encouraged.
Download (0.043MB)
Added: 2005-12-22 License: GPL (GNU General Public License) Price:
1404 downloads
Class::Driver 0.005
Class::Driver is a Perl module to generate driver (composite) class hierarchies on-the-fly. more>>
EXAMPLE
# This is a really long synopsis, but hopefully it will give you an idea...
package MyPackage;
use Class::Driver;
use base q(Class::Driver);
our %drivers;
return 1;
sub new {
my($class, %args) = @_;
die "mime_type is required" unless($args{mime_type});
die "no driver to handle type $args{mime_type}"
unless($drivers{$args{mime_type}});
return $class->driver_load($drivers{$args{mime_type}}, %args);
}
sub driver_new {
my($class, %args) = @_;
return bless %args, $class;
}
sub driver_required { 1; }
sub driver_requied_here { 0; }
package MyPackage::avi;
use MyPackage;
use base q(MyPackage);
use Video::Info;
$MyPackage::drivers{video/x-msvideo} = avi;
return 1;
sub driver { "avi"; }
sub driver_new {
my($class, %args) = @_;
die "file is a required parameter for $args{mime_type} files"
unless($args{file});
$args{info} = Video::Info->new(-file => $args{file})
or die "Failed to create a Video::Info object for $args{file}";
return $class->SUPER::driver_new(%args);
}
sub duration {
my $self = shift;
return $args{info}->duration;
}
package MyPackage::mp3;
use base q(MyPackage);
use MP3::Info;
$MyPackage::drivers{audio/mpeg} = mp3;
## (etc...)
package main;
my $foo = MyPackage->new(file => foobar.mp3, mime_type => audio/mpeg);
print "foobar.mp3 is ", $foo->duration, " seconds long.n";
Download (0.011MB)
Added: 2006-11-14 License: Perl Artistic License Price:
1075 downloads
Bio::ConnectDots::ConnectDots 1.0.2
Bio::ConnectDots::ConnectDots is a top level class for connect-the-dots. more>>
Bio::ConnectDots::ConnectDots is a top level class for connect-the-dots.
SYNOPSIS
use Bio::ConnectDots::DB;
use Bio::ConnectDots::ConnectDots;
my $db=new Bio::ConnectDots::DB(-database=>test,
-host=>computername,
-user=>usename,
-password=>secret);
my $cd=my $cd=new Bio::ConnectDots::ConnectDots(-db=>$db);
This is the top level class for Connect the Dots. At present, it mainly provides methods for running queries.
Connect the Dots is a general data integration framework targeted at translating biological identifiers across multiple transitive databases. This software provides an alternative to writing custom parsers to join databases on common identifiers. See the example queries for details on the scope of database joins that can be made.
This software is built upon the PostgreSQL database system (developed with version 7.4.3) as support for full outer joins is strong.
<<lessSYNOPSIS
use Bio::ConnectDots::DB;
use Bio::ConnectDots::ConnectDots;
my $db=new Bio::ConnectDots::DB(-database=>test,
-host=>computername,
-user=>usename,
-password=>secret);
my $cd=my $cd=new Bio::ConnectDots::ConnectDots(-db=>$db);
This is the top level class for Connect the Dots. At present, it mainly provides methods for running queries.
Connect the Dots is a general data integration framework targeted at translating biological identifiers across multiple transitive databases. This software provides an alternative to writing custom parsers to join databases on common identifiers. See the example queries for details on the scope of database joins that can be made.
This software is built upon the PostgreSQL database system (developed with version 7.4.3) as support for full outer joins is strong.
Download (0.10MB)
Added: 2007-03-06 License: Perl Artistic License Price:
966 downloads
JDatabaseImport 0.1
JDatabaseImport is a simple tool created to import data between different databases. more>>
JDatabaseImport is a simple tool created to import data between different databases.
How does it work?
You can work with it in two ways, either using a configuration file or accessing its api using Java.
Example:
The following code show an example of a file called *export.xml*:
< export >
< from >
< driver >org.hsqldb.jdbcDriver< / driver >
< url >jdbc:hsqldb:hsql://localhost/source< / url >
< username >sa< / username >
< password >mysapass< / password >
< / from >
< to >
< driver >com.mysql.jdbc.Driver< / driver >
< url >jdbc:mysql://localhost/target< / url >
< username >root< / username >
< password >myrootpass< / password >
< / to >
< table name="firstTable"/ >
< table name="secondTable" >
< ignore >fieldToBeIgnored< / ignore >
< / table >
< table name="thirdTable"/ >
< / export >
Note that JDatabaseImport *will not* generate the target tables, but only import data from one source into the other.
In order to run JDatabaseImport, you need to put all drivers in the classpath and run it. The following code is an example on how to use it to import from mysql to hsqldb
java -cp mysql-connector-3.1.1.jar:hsqldb.jar:jdatabaseimport.jar br.com.caelum.jdatabaseimport.Main export.xml
Enhancements:
- This initial release has been tested with hsqldb, MySQL, Derby, and Oracle using some field types and different configurations.
<<lessHow does it work?
You can work with it in two ways, either using a configuration file or accessing its api using Java.
Example:
The following code show an example of a file called *export.xml*:
< export >
< from >
< driver >org.hsqldb.jdbcDriver< / driver >
< url >jdbc:hsqldb:hsql://localhost/source< / url >
< username >sa< / username >
< password >mysapass< / password >
< / from >
< to >
< driver >com.mysql.jdbc.Driver< / driver >
< url >jdbc:mysql://localhost/target< / url >
< username >root< / username >
< password >myrootpass< / password >
< / to >
< table name="firstTable"/ >
< table name="secondTable" >
< ignore >fieldToBeIgnored< / ignore >
< / table >
< table name="thirdTable"/ >
< / export >
Note that JDatabaseImport *will not* generate the target tables, but only import data from one source into the other.
In order to run JDatabaseImport, you need to put all drivers in the classpath and run it. The following code is an example on how to use it to import from mysql to hsqldb
java -cp mysql-connector-3.1.1.jar:hsqldb.jar:jdatabaseimport.jar br.com.caelum.jdatabaseimport.Main export.xml
Enhancements:
- This initial release has been tested with hsqldb, MySQL, Derby, and Oracle using some field types and different configurations.
Download (0.43MB)
Added: 2006-10-12 License: The Apache License 2.0 Price:
1109 downloads
Secleted [ 0 ] software to compare
Copyright Notice:
Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future software development. The above cannot create jdbc driver of class for connect url null search only lists software in full, demo and trial versions for free download. Download links are directly from our mirror sites or publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed