mirror of
https://github.com/gnustep/libs-sqlclient.git
synced 2025-02-20 18:32:06 +00:00
Add java wrappings
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/sqlclient/trunk@21774 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
f42028ad00
commit
567ea1756f
5 changed files with 119 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2005-09-28 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
|
* GNUmakefile.wrapper.objc.preamble: new file
|
||||||
|
* SQLClient.jigs: new file
|
||||||
|
* GNUmakefile: Provide java wrappings for SQLClient and friends
|
||||||
|
|
||||||
2005-09-28 Richard Frith-Macdonald <rfm@gnu.org>
|
2005-09-28 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
* SQLClient.m: boost performance of quoting a little.
|
* SQLClient.m: boost performance of quoting a little.
|
||||||
|
|
|
@ -19,6 +19,9 @@ SQLClient_LIBRARIES_DEPEND_UPON =
|
||||||
SQLClient_HEADER_FILES = SQLClient.h
|
SQLClient_HEADER_FILES = SQLClient.h
|
||||||
SQLClient_AGSDOC_FILES = SQLClient.h
|
SQLClient_AGSDOC_FILES = SQLClient.h
|
||||||
|
|
||||||
|
# Optional Java wrappers for the library
|
||||||
|
JAVA_WRAPPER_NAME = SQLClient
|
||||||
|
|
||||||
#
|
#
|
||||||
# Assume that the use of the gnu runtime means we have the gnustep
|
# Assume that the use of the gnu runtime means we have the gnustep
|
||||||
# base library and can use its extensions to build WebServer stuff.
|
# base library and can use its extensions to build WebServer stuff.
|
||||||
|
@ -154,6 +157,10 @@ testWebServer_LIB_DIRS += -L./obj
|
||||||
|
|
||||||
include $(GNUSTEP_MAKEFILES)/library.make
|
include $(GNUSTEP_MAKEFILES)/library.make
|
||||||
include $(GNUSTEP_MAKEFILES)/bundle.make
|
include $(GNUSTEP_MAKEFILES)/bundle.make
|
||||||
|
# If JIGS is installed, automatically generate Java wrappers as well.
|
||||||
|
# Because of the '-', should not complain if java-wrapper.make can't be
|
||||||
|
# found ... simply skip generation of java wrappers in that case.
|
||||||
|
-include $(GNUSTEP_MAKEFILES)/java-wrapper.make
|
||||||
include $(GNUSTEP_MAKEFILES)/test-tool.make
|
include $(GNUSTEP_MAKEFILES)/test-tool.make
|
||||||
include $(GNUSTEP_MAKEFILES)/documentation.make
|
include $(GNUSTEP_MAKEFILES)/documentation.make
|
||||||
|
|
||||||
|
|
2
GNUmakefile.wrapper.objc.preamble
Normal file
2
GNUmakefile.wrapper.objc.preamble
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
ADDITIONAL_INCLUDE_DIRS += -I../../..
|
||||||
|
ADDITIONAL_LIB_DIRS += -L../../$(GNUSTEP_OBJ_DIR)
|
|
@ -510,6 +510,7 @@ extern unsigned SQLClientTimeTick();
|
||||||
* then 'User' may be used instead.<br />
|
* then 'User' may be used instead.<br />
|
||||||
* Password ... is the name of the database user password, if it is
|
* Password ... is the name of the database user password, if it is
|
||||||
* missing then 'Password' may be used instead.<br />
|
* missing then 'Password' may be used instead.<br />
|
||||||
|
* missing then 'Password' may be used instead.<br />
|
||||||
* ServerType ... is the name of the backend server to be used ... by
|
* ServerType ... is the name of the backend server to be used ... by
|
||||||
* convention the name of a bundle containing the interface to that backend.
|
* convention the name of a bundle containing the interface to that backend.
|
||||||
* If this is missing then 'Postgres' is used.<br />
|
* If this is missing then 'Postgres' is used.<br />
|
||||||
|
|
103
SQLClient.jigs
Normal file
103
SQLClient.jigs
Normal file
|
@ -0,0 +1,103 @@
|
||||||
|
{ /* -*-c-*- */
|
||||||
|
"prerequisite libraries" = (
|
||||||
|
"gnustep-base"
|
||||||
|
);
|
||||||
|
types = {
|
||||||
|
NSTimeInterval = double;
|
||||||
|
};
|
||||||
|
classes = (
|
||||||
|
{
|
||||||
|
"java name" = "gnu.gnustep.SQLClient.SQLCache";
|
||||||
|
"objective-c name" = "SQLCache";
|
||||||
|
"class methods" = (
|
||||||
|
"allCaches"
|
||||||
|
);
|
||||||
|
"instance methods" = (
|
||||||
|
"currentObjects",
|
||||||
|
"currentSize",
|
||||||
|
"lifetime",
|
||||||
|
"maxObjects",
|
||||||
|
"maxSize",
|
||||||
|
"name",
|
||||||
|
"objectForKey:",
|
||||||
|
"purge",
|
||||||
|
"setLifetime:",
|
||||||
|
"setMaxObjects:",
|
||||||
|
"setMaxSize:",
|
||||||
|
"setName:",
|
||||||
|
"setObject:forKey:",
|
||||||
|
"setObject:forKey:lifetime:",
|
||||||
|
"shrinkObjects:andSize:"
|
||||||
|
);
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"java name" = "gnu.gnustep.SQLClient.SQLClient";
|
||||||
|
"objective-c name" = "SQLClient";
|
||||||
|
"class methods" = (
|
||||||
|
"allClients",
|
||||||
|
"clientWithConfiguration:name:",
|
||||||
|
"existingClient:",
|
||||||
|
"maxConnections",
|
||||||
|
"purgeConnections:",
|
||||||
|
"setMaxConnections:",
|
||||||
|
);
|
||||||
|
"instance methods" = (
|
||||||
|
"begin",
|
||||||
|
"cache",
|
||||||
|
"cache:query:with:",
|
||||||
|
"cache:simpleQuery:",
|
||||||
|
"clientName",
|
||||||
|
"commit",
|
||||||
|
"connect",
|
||||||
|
"connected",
|
||||||
|
"database",
|
||||||
|
"debugging",
|
||||||
|
"disconnect",
|
||||||
|
"durationLogging",
|
||||||
|
"isInTransaction",
|
||||||
|
"lastOperation",
|
||||||
|
"name",
|
||||||
|
"password",
|
||||||
|
"query:with:",
|
||||||
|
"quote:",
|
||||||
|
"quoteChar:",
|
||||||
|
"quoteFloat:",
|
||||||
|
"quoteInteger:",
|
||||||
|
"rollback",
|
||||||
|
"setCache:",
|
||||||
|
"setDatabase:",
|
||||||
|
"setDebugging:",
|
||||||
|
"setDurationLogging:",
|
||||||
|
"setName:",
|
||||||
|
"setPassword:",
|
||||||
|
"setUser:",
|
||||||
|
"simpleExecute:",
|
||||||
|
"simpleQuery:",
|
||||||
|
"singletons:",
|
||||||
|
"transaction",
|
||||||
|
"user"
|
||||||
|
);
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"java name" = "gnu.gnustep.SQLClient.SQLRecord";
|
||||||
|
"objective-c name" = "SQLRecord";
|
||||||
|
"instance methods" = (
|
||||||
|
"allKeys",
|
||||||
|
"dictionary",
|
||||||
|
"sizeInBytes:"
|
||||||
|
);
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"java name" = "gnu.gnustep.SQLClient.SQLTransaction";
|
||||||
|
"objective-c name" = "SQLTransaction";
|
||||||
|
"instance methods" = (
|
||||||
|
"add:with:",
|
||||||
|
"append:",
|
||||||
|
"count",
|
||||||
|
"db",
|
||||||
|
"execute",
|
||||||
|
"reset"
|
||||||
|
);
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
Loading…
Reference in a new issue