{"id":17239124,"url":"https://github.com/binarymuse/judaw","last_synced_at":"2025-08-02T00:39:19.993Z","repository":{"id":833767,"uuid":"552636","full_name":"BinaryMuse/judaw","owner":"BinaryMuse","description":"Easier connecting to and querying from your UniData database via Java","archived":false,"fork":false,"pushed_at":"2011-03-05T04:48:45.000Z","size":783,"stargazers_count":4,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-30T08:41:38.095Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://binarymuse.github.com/judaw/","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BinaryMuse.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-03-08T15:51:44.000Z","updated_at":"2016-09-03T03:25:01.000Z","dependencies_parsed_at":"2022-08-16T11:05:16.630Z","dependency_job_id":null,"html_url":"https://github.com/BinaryMuse/judaw","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BinaryMuse%2Fjudaw","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BinaryMuse%2Fjudaw/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BinaryMuse%2Fjudaw/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BinaryMuse%2Fjudaw/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BinaryMuse","download_url":"https://codeload.github.com/BinaryMuse/judaw/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228006293,"owners_count":17854990,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-15T05:47:48.419Z","updated_at":"2024-12-03T21:42:24.114Z","avatar_url":"https://github.com/BinaryMuse.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"What is JUDAW\n=============\n\nThe Java UniData API Wrapper is a small collection of Java classes designed to\nassist with connecting to and querying off a UniData data source. Example source\ncan be found at the end of this document.\n\nDependencies\n============\n\nNote that the library is dependent on the Java UniObjects SDK located in\n`asjava.zip` from the IBM Developer's Kit (UniDK). This file is included in\nthe JUDAW repository in the `deps` directory as `asjava.jar`. The version\nnumber for the included version of this file is in the `VERSION` file in the\nsame directory.\n\nSpecial Thanks\n==============\n\nA special thanks to Rich Harrington and others from\n[University Web Developers][uwd] for introducing me to the UniObjects API and\nfor great initial code posts, which inspired this project.\n\n  [uwd]: http://cuwebd.ning.com/ \"University Web Developers\"\n\nDocumentation\n=============\n\nJUDAW is documented via JavaDoc style comments in the source code.\nHTML documentation built from specific versions of JUDAW can be found\non the \"Downloads\" tab of this project's [GitHub home][githome].\n\n  [githome]: http://github.com/BinaryMuse/judaw \"JUDAW on GitHub\"\n\nLicense\n=======\n\nCopyright (c) 2010, Fresno Pacific University\n\nLicensed under the New BSD license; see the LICENSE file for details.\n\nExample Code\n============\n\nCreating and Connecting to the UniDataConnection Object\n-------------------------------------------------------\n\n    UniDataConnection ud = new UniDataConnection(\"username\", \"password\",\n        \"datatel.domain.local\", \"D:\\\\account\\\\path\");\n    ud.connect();\n\nAccessing the Underlying UniJava Object\n---------------------------------------\n\nIn version 1.2:\n\n    System.out.println(\"Using UniData SDK version \" + ud.UniJava.getVersionNumber());\n    System.out.println(\"Connection number \" + ud.UniJava.getNumSessions() +\n        \" of \" + ud.UniJava.getMaxSessions());\n\nIn master and version 1.3+, accessing the UniJava object directly is\ndeprecated, and you should use the UniJava() getter instead:\n\n    System.out.println(\"Using UniData SDK version \" + ud.UniJava().getVersionNumber());\n    System.out.println(\"Connection number \" + ud.UniJava().getNumSessions() +\n        \" of \" + ud.UniJava().getMaxSessions());\n\nOpening a File and Reading a Record\n-----------------------------------\n\n    UniSession session = ud.getSession();\n    UniFile person = session.open(\"PERSON\");\n    person.setRecordID(\"0123456\");\n    System.out.println(\"First Name: \" + person.readNamedField(\"FIRST.NAME\"));\n    System.out.println(\"Last Name: \" + person.readNamedField(\"LAST.NAME\"));\n\nSelecting Data with SELECT and LIST Wrappers\n--------------------------------------------\n\n    // Get a working list\n    ud.query(\"SELECT PERSON WITH @ID EQ '0123456''0654321'\");\n    // Create a map of Field objects to specify which\n    // fields we wish to retrieve data from:\n    Map\u003cString,String\u003e fields = new HashMap\u003cString, String\u003e();\n    fields.put(\"FIRST.NAME\", \"fname\");\n    fields.put(\"LAST.NAME\", \"lname\");\n    // Note that there are several ways to specify\n    // which fields you wish to retrieve; see\n    // UniDataConnection#getFields\n    \n    List\u003cFieldSet\u003e sets = ud.getFields(\"PERSON\", fields);\n    if(sets == null)\n        System.out.println(\"No data returned.\");\n    \n    Iterator\u003cFieldSet\u003e iter = sets.iterator();\n    while(iter.hasNext())\n    {\n        // A FieldSet contains information regarding the field name,\n        // the friendly field name we used (if any), and the\n        // data contained within the field.\n        // Each row is turned into a FieldSet, and each FieldSet contains a number\n        // of Fields (based on the second parameter to getFields).\n        FieldSet set = iter.next();\n        System.out.println(\"First Name: \" + set.getFieldByFriendlyName(\"fname\").getData());\n        System.out.println(\"Last Name: \" + set.getFieldByName(\"LAST.NAME\").getData());\n    }\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinarymuse%2Fjudaw","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbinarymuse%2Fjudaw","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinarymuse%2Fjudaw/lists"}