Adabas Client for Java uses a small set of classes to read or write data into or out of an Adabas database. The following table provides an overview of these main classes.
Class | Description | Example |
---|---|---|
AdabasConnection |
This class is used to create a main Adabas context. The
parameter for AdabasConnection conn = AdabasConnection.createSession("ajc:map=MAPNAME;config=[1,4]"); ReadRequest request = conn.createReadRequest(); |
ComplexQueryWithMappingExample.java |
AdabasSession |
The AdabasSession session = new AdabasSession(AuthType.ADA_PW_SECURITY); session.addCredentials(username.getBytes(), password.getBytes()); |
AdabasAuthSearchExample.java |
AdabasTarget |
The AdabasTarget target = new AdabasTarget(dbid); target.open(); target.et(); |
QueryWithMappingExample.java |
ReadRequest |
The ReadRequest request = new ReadRequest("MAP"); request.setStart(1); request.setLimit(10); request.readIsnSequence(); |
QueryWithMappingExample.java |
StoreRequest |
The StoreRequest request = conn.createStoreRequest(); RecordEntry entry = request.createRecordEntry(new String[] {"NAME"}); entry.addValue("NAME","ADAM"); request.storeEntry(entry); |
StoreDataWithMappingExample.java |
DeleteRequest |
The DeleteRequest deleteRequest = new DeleteRequest(request); deleteRequest.setIsnList(isnList.toArray(new Long[0])); deleteRequest.deleteRecords(); |
DeleteExample.java |
RecordDefinition |
The |
QueryOverwriteMappingExample.java |
IRecordEntry |
The |
QueryUsingAdabasNotationExample.java |
QueryResult |
If a listener class is using the
|
QueryUsingListener.java |
QueryResultLis t
|
The |
ComplexQueryWithMappingExample.java |
QueryResultCursor |
QueryResultCursor is returned if readByCursor() read is used in a ReadRequest. The QueryResultCursor contains only a subset of records, unlike QueryResultList, which contains all of them. |
|
AdaFieldType |
The |
QueryOverwriteMappingExample.java |
IAdaFieldValue |
The IAdaFieldValue fieldValueFirstName = record.valueOf("NAME"); fieldValueFirstName.toString() |
QueryWithMappingExample.java |
IDataTypes.Types |
The Types enumeration contains all possible types of the fields. There is a default map automatism which generates, on behalf of the Adabas field or map definition, a corresponding field type to the metadata definition. It might be the case, that the default need to be overwritten. |
AdabasToCsv.java |
SearchTree |
In simple queries, the setSearch() methods of
|
QueryAdabasSpecialSearchExample.java |