Welcome to jBASE's new documentation site! Many answers to your questions can be found by searching the Knowledgebase or viewing the jBASE Documentation. We also have a Google Group for peer discussion about jBASE. If you are unable to find the information you are looking for, jBASE Support will be glad to assist in resolving your technical problems. Enjoy and please provide comments and feedback .

How can we help you?

JBaseSerializable (jremote API)

Interface JBaseSerializable

All Known Subinterfaces:
InboundRequest
All Known Implementing Classes:
AccountAuthenticationRequest, AccountAuthenticationRequest.AccountUserCredentials, ActivationRequest, ActivationResponse, AuthenticationRequest, BeginTransactionRequest, CallSubroutineRequest, ClearFileRequest, CloseFileRequest, CommitTransactionRequest, CommitTransactionRequest, ConvRequest, ConvResponse, DateTimeRequest, DateTimeResponse, DeleteRecordRequest, EchoRequest, EchoResponse, EISMetaDataRequest, EISMetaDataResponse, ErrorResponse, ExistsRecordRequest, InputOutputResponse, JediResponse, JExecuteRequest, JExecuteResults, JRemoteRequest, JRemoteResponse, JSelectListProt, JSubroutineParameters, MonitoringRequest, MonitoringResponse, NoEndpointActivatedResponse, OKResponse, OpenFileRequest, ReadCommonRequest, ReadCommonResponse, ReadRecordRequest, ReleaseRecordLockRequest, RemoteInputRequest, Response, RollbackTransactionRequest, RollbackTransactionRequest, SelectFileRequest, SelectListCloseRequest, SelectListCommitRequest, SelectListFetchRequest, SelectListFetchResponse, SetPropertiesRequest, SetPropertiesResponse, SQLError, StartTransactionRequest, StatementExecuteQueryRequest, StatementFetchRequest, StatementFetchResponse, SubroutineResponse, SwitchAccountRequest, SwitchAccountResponse, TransactionOperation, TransactionResponse, WorkScheduledResponse, WriteRecordRequest, XACommitTransactionRequest, XAEndTransactionRequest, XAPrepareTransactionRequest, XARollbackTransactionRequest, XAStartTransactionRequest, XAXid


public interface JBaseSerializable
Interface which must be implemented by objects which take part in the JDBC driver jbase_agent communication. Note: the interface is not compatible with standard Java java.io.Serializable. This is because we do not intend to implement Java serialization protocol for our purposes (note: this is about Java C++ communication). Each class implementing this interface should have a counterpart on the server side with compatible serializing/deserializing protocol.

Nested Class Summary

Modifier and Type
Interface and Description
static interface 
JBaseSerializable.TYPE 


Method Summary

Modifier and Type
Method and Description
int
getType() 
int
getVersion() 
void
readObject(JBaseObjectReader reader, int version) 
void
writeObject(JBaseObjectWriter writer, int version) 


Method Detail


writeObject

void writeObject(JBaseObjectWriter writer,
                 int version)
          throws IOException
Throws:
IOException

readObject

void readObject(JBaseObjectReader reader,
                int version)
         throws IOException,
                ClassNotFoundException
Throws:
IOException
ClassNotFoundException

getType

int getType()
Returns:
type id of the objects, used during the serialization

getVersion

int getVersion()




Back to jREMOTE API

Was this article helpful?