Class RasRasnetImplementation
- java.lang.Object
-
- org.rasdaman.rasnet.communication.RasRasnetImplementation
-
- All Implemented Interfaces:
Implementation,RasCommDefs,RasGlobalDefs,RasImplementationInterface
public class RasRasnetImplementation extends java.lang.Object implements RasImplementationInterface, RasCommDefs, RasGlobalDefs
-
-
Field Summary
-
Fields inherited from interface rasj.clientcommhttp.RasCommDefs
BIG_ENDIAN, BROWSER, LITTLE_ENDIAN, RASCLIENT, RESPONSE_ERROR, RESPONSE_INT, RESPONSE_MDDS, RESPONSE_OID, RESPONSE_OK, RESPONSE_OK_NEGATIVE, RESPONSE_SKALARS
-
Fields inherited from interface rasj.global.RasGlobalDefs
ACC_DEN_CAPABILITY_WRONG, ACC_DEN_INC_LOGIN, ACC_DEN_NO_PERMISSION, BASE_DBS_ERROR, CREATED, DATABASE_NOT_DEFINED, DB_CONN_FAILED, DB_NOT_OPEN, DELETED, DIMENSION_MISMATCH, FAST_PRE_SCALE_FACTORS, FAST_PRE_SCALE_SUFFIXES, GETFREESERVER_WAIT_INCREMENT, GETFREESERVER_WAIT_INITIAL, GUESTIDENT_DEFAULT, ILLEGAL_ULONG_VALUE, ILLEGAL_USHORT_VALUE, INDEX_OUT_OF_BOUNDS, INTERNAL_CLIENT_ERROR, INTERNAL_DL_PARSE_EXCEPTION, INVALID_OBJECT_NAME_ERROR, KEYWORD_ATYPE, KEYWORD_BTYPE, KEYWORD_CLASS, KEYWORD_CODE, KEYWORD_COLNO, KEYWORD_DIM1, KEYWORD_DIM2, KEYWORD_ERRNO, KEYWORD_HIGH, KEYWORD_INDEX, KEYWORD_INVNAME, KEYWORD_LINENO, KEYWORD_LOW, KEYWORD_METHOD, KEYWORD_TAB, KEYWORD_TOKEN, KEYWORD_TYPE, KEYWORD_URL, KEYWORD_VAL, MANAGER_BUSY, MANAGER_CONN_FAILED, MAX_GETFREESERVER_ATTEMPTS, MODIFIED, NO_ACTIVE_SERVERS, NO_STATUS, NUM_FAST_PRE_SCALE, RAS_ARRAY, RAS_AUTO_COMPRESSION, RAS_BOOLEAN, RAS_BYTE, RAS_CHAR, RAS_COLLECTION, RAS_COMPLEX1, RAS_DOUBLE, RAS_FLOAT, RAS_HDF, RAS_INT, RAS_JPEG, RAS_LONG, RAS_MARRAY, RAS_MINTERVAL, RAS_OID, RAS_PNG, RAS_POINT, RAS_RGB, RAS_SHORT, RAS_SINTERVAL, RAS_STRING, RAS_STRUCTURE, RAS_TIFF, RAS_ULONG, RAS_UNKNOWN, RAS_USHORT, RAS_ZLIB, RASJ_VERSION, RASMGRPORT_DEFAULT, READ, REQUEST_FORMAT_ERROR, RESULT_IS_NO_CELL, RESULT_IS_NO_INTERVAL, SIZE_OF_BOOLEAN, SIZE_OF_BYTE, SIZE_OF_CHAR, SIZE_OF_DOUBLE, SIZE_OF_FLOAT, SIZE_OF_INTEGER, SIZE_OF_LONG, SIZE_OF_RAS_BOOLEAN, SIZE_OF_RAS_BYTE, SIZE_OF_RAS_CHAR, SIZE_OF_RAS_DOUBLE, SIZE_OF_RAS_FLOAT, SIZE_OF_RAS_LONG, SIZE_OF_RAS_SHORT, SIZE_OF_RAS_ULONG, SIZE_OF_RAS_USHORT, SIZE_OF_SHORT, STREAM_INPUT_OVERFLOW, TRANSIENT, TYPE_INVALID, TYPE_NOT_SUPPORTED, TYPE_UNKNOWN, URL_FORMAT_ERROR, WRITE_TRANS_IN_PROGRESS
-
-
Constructor Summary
Constructors Constructor Description RasRasnetImplementation(RasnetServiceFactory rasnetServiceFactory, java.lang.String server)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidabortTA()voidbeginTA()voidcloseDB()voidcommitTA()voidconnectClient(java.lang.String userName, java.lang.String passwordHash)TransactioncurrentTransaction()Get the currentTransactionfor the thread.intdbIsOpen()voiddisconnectClient()intgetAccessMode()intgetClientID()DatabasegetDatabase(java.lang.Object obj)Get theDatabasethat contains the objectobj,
not yet available in RasDaMan.java.lang.StringgetErrorStatus()intgetMaxRetry()java.lang.StringgetObjectId(java.lang.Object obj)Get aStringrepresentation of the object's identifier.java.lang.StringgetRasServer()java.lang.StringgetTypeStructure(java.lang.String typename, int typetype)booleanisOpenTA()DArraynewDArray()Create a newDArrayobject,
not yet available in RasDaMan.DatabasenewDatabase()Create a newDatabaseobject.DBagnewDBag()Create a newDBagobject.DListnewDList()Create a newDListobject.DMapnewDMap()Create a newDMapobject,
not yet available in RasDaMan.DSetnewDSet()Create a newDSetobject.OQLQuerynewOQLQuery()Create a newOQLQueryobject.TransactionnewTransaction()Create aTransactionobject and associate it with the current thread.voidopenDB(java.lang.String name, int accessMode)java.lang.ObjectqueryRequest(java.lang.String parameters)voidsetMaxRetry(int newRetry)voidsetUserIdentification(java.lang.String userName, java.lang.String plainPass)voidsetUserIdentificationHashed(java.lang.String userName, java.lang.String passwordMD5Hash)
-
-
-
Constructor Detail
-
RasRasnetImplementation
public RasRasnetImplementation(RasnetServiceFactory rasnetServiceFactory, java.lang.String server)
-
-
Method Detail
-
getRasServer
public java.lang.String getRasServer()
- Specified by:
getRasServerin interfaceRasImplementationInterface
-
dbIsOpen
public int dbIsOpen()
- Specified by:
dbIsOpenin interfaceRasImplementationInterface
-
getClientID
public int getClientID()
- Specified by:
getClientIDin interfaceRasImplementationInterface
-
getAccessMode
public int getAccessMode()
- Specified by:
getAccessModein interfaceRasImplementationInterface
-
getErrorStatus
public java.lang.String getErrorStatus()
- Specified by:
getErrorStatusin interfaceRasImplementationInterface
-
newTransaction
public Transaction newTransaction()
Description copied from interface:ImplementationCreate aTransactionobject and associate it with the current thread.- Specified by:
newTransactionin interfaceImplementation- Specified by:
newTransactionin interfaceRasImplementationInterface- Returns:
- The newly created
Transactioninstance. - See Also:
Transaction
-
currentTransaction
public Transaction currentTransaction()
Description copied from interface:ImplementationGet the currentTransactionfor the thread.- Specified by:
currentTransactionin interfaceImplementation- Specified by:
currentTransactionin interfaceRasImplementationInterface- Returns:
- The current
Transactionobject or null if there is none. - See Also:
Transaction
-
newDatabase
public Database newDatabase()
Description copied from interface:ImplementationCreate a newDatabaseobject.- Specified by:
newDatabasein interfaceImplementation- Specified by:
newDatabasein interfaceRasImplementationInterface- Returns:
- The new
Databaseobject. - See Also:
Database
-
newOQLQuery
public OQLQuery newOQLQuery()
Description copied from interface:ImplementationCreate a newOQLQueryobject.- Specified by:
newOQLQueryin interfaceImplementation- Specified by:
newOQLQueryin interfaceRasImplementationInterface- Returns:
- The new
OQLQueryobject. - See Also:
OQLQuery
-
newDList
public DList newDList()
Description copied from interface:ImplementationCreate a newDListobject.- Specified by:
newDListin interfaceImplementation- Specified by:
newDListin interfaceRasImplementationInterface- Returns:
- The new
DListobject. - See Also:
DList
-
newDBag
public DBag newDBag()
Description copied from interface:ImplementationCreate a newDBagobject.- Specified by:
newDBagin interfaceImplementation- Specified by:
newDBagin interfaceRasImplementationInterface- Returns:
- The new
DBagobject. - See Also:
DBag
-
newDSet
public DSet newDSet()
Description copied from interface:ImplementationCreate a newDSetobject.- Specified by:
newDSetin interfaceImplementation- Specified by:
newDSetin interfaceRasImplementationInterface- Returns:
- The new
DSetobject. - See Also:
DSet
-
newDArray
public DArray newDArray()
Description copied from interface:ImplementationCreate a newDArrayobject,
not yet available in RasDaMan.- Specified by:
newDArrayin interfaceImplementation- Specified by:
newDArrayin interfaceRasImplementationInterface- Returns:
- The new
DArrayobject. - See Also:
DArray
-
newDMap
public DMap newDMap()
Description copied from interface:ImplementationCreate a newDMapobject,
not yet available in RasDaMan.- Specified by:
newDMapin interfaceImplementation- Specified by:
newDMapin interfaceRasImplementationInterface- Returns:
- The new
DMapobject. - See Also:
DMap
-
getObjectId
public java.lang.String getObjectId(java.lang.Object obj)
Description copied from interface:ImplementationGet aStringrepresentation of the object's identifier.- Specified by:
getObjectIdin interfaceImplementation- Specified by:
getObjectIdin interfaceRasImplementationInterface- Parameters:
obj- The object whose identifier is being accessed.- Returns:
- The object's identifier in the form of a String
-
getDatabase
public Database getDatabase(java.lang.Object obj)
Description copied from interface:ImplementationGet theDatabasethat contains the objectobj,
not yet available in RasDaMan.- Specified by:
getDatabasein interfaceImplementation- Specified by:
getDatabasein interfaceRasImplementationInterface- Parameters:
obj- The object.- Returns:
- The
Databasethat contains the object.
-
openDB
public void openDB(java.lang.String name, int accessMode) throws ODMGException- Specified by:
openDBin interfaceRasImplementationInterface- Throws:
ODMGException
-
closeDB
public void closeDB() throws ODMGException- Specified by:
closeDBin interfaceRasImplementationInterface- Throws:
ODMGException
-
beginTA
public void beginTA()
- Specified by:
beginTAin interfaceRasImplementationInterface
-
isOpenTA
public boolean isOpenTA()
- Specified by:
isOpenTAin interfaceRasImplementationInterface
-
commitTA
public void commitTA()
- Specified by:
commitTAin interfaceRasImplementationInterface
-
abortTA
public void abortTA()
- Specified by:
abortTAin interfaceRasImplementationInterface
-
setMaxRetry
public void setMaxRetry(int newRetry)
- Specified by:
setMaxRetryin interfaceRasImplementationInterface
-
getMaxRetry
public int getMaxRetry()
- Specified by:
getMaxRetryin interfaceRasImplementationInterface
-
setUserIdentification
public void setUserIdentification(java.lang.String userName, java.lang.String plainPass)- Specified by:
setUserIdentificationin interfaceRasImplementationInterface
-
setUserIdentificationHashed
public void setUserIdentificationHashed(java.lang.String userName, java.lang.String passwordMD5Hash)- Specified by:
setUserIdentificationHashedin interfaceRasImplementationInterface
-
connectClient
public void connectClient(java.lang.String userName, java.lang.String passwordHash)- Specified by:
connectClientin interfaceRasImplementationInterface
-
queryRequest
public java.lang.Object queryRequest(java.lang.String parameters) throws RasQueryExecutionFailedException- Specified by:
queryRequestin interfaceRasImplementationInterface- Throws:
RasQueryExecutionFailedException
-
getTypeStructure
public java.lang.String getTypeStructure(java.lang.String typename, int typetype)- Specified by:
getTypeStructurein interfaceRasImplementationInterface
-
disconnectClient
public void disconnectClient()
- Specified by:
disconnectClientin interfaceRasImplementationInterface
-
-