|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.intersys.classes.CacheGeneric
com.intersys.classes.CacheRootObject
com.intersys.classes.RegisteredObject
com.intersys.classes.SerialObject
com.intersys.classes.SerialStream
com.intersys.classes.CharacterStream
com.intersys.classes.FileCharacterStream
Constructor Summary | |
FileCharacterStream(com.intersys.cache.CacheObject ref)
NB: DO NOT USE IN APPLICATION! |
|
FileCharacterStream(Database db)
Creates a new instance of object " FileCharacterStream . |
Method Summary | |
static String |
_className(Database db,
Boolean fullname)
Runs method _className in Cache |
static void |
_deleteStream(Database db,
Oid oid)
Runs method _deleteStream in Cache |
String |
_filenameGet()
Runs method _filenameGet in Cache |
void |
_filenameSet(String file)
Runs method _filenameSet in Cache |
static String |
_getParameter(Database db)
Runs method _getParameter in Cache |
static String |
_getParameter(Database db,
String paramname)
Runs method _getParameter in Cache |
static String |
_getStreamIdForFile(Database db,
String file,
String contenttype)
Runs method _getStreamIdForFile in Cache |
static Integer |
_isA(Database db,
String isclass)
Runs method _isA in Cache |
Boolean |
_isFileUnicode()
Runs method _isFileUnicode in Cache |
void |
_linkToFile(String filename)
Runs method _linkToFile in Cache |
static String |
_logicalToOdbc(Database db)
Runs method _logicalToOdbc in Cache |
static String |
_logicalToOdbc(Database db,
String _val)
Runs method _logicalToOdbc in Cache |
static String |
_newFileName(Database db)
Runs method _newFileName in Cache |
static String |
_newFileName(Database db,
String ext)
Runs method _newFileName in Cache |
static String |
_odbcToLogical(Database db)
Runs method _odbcToLogical in Cache |
static String |
_odbcToLogical(Database db,
String _val)
Runs method _odbcToLogical in Cache |
static RegisteredObject |
_open(Database db,
Oid oid)
Runs method %Open in Cache to open an object
from Cache database and creates corresponding object of class
FileCharacterStream . |
static RegisteredObject |
_open(Database db,
Oid oid,
int concurrency)
|
static String |
_packageName(Database db)
Runs method _packageName in Cache |
void |
_translateTableSet(String table)
Runs method _translateTableSet in Cache |
static void |
check_filenameValid(Database db)
Verifies that indexes for property _filename in
zObjVal are the same as in Cache. |
static void |
check_translateTableValid(Database db)
Verifies that indexes for property _translateTable in
zObjVal are the same as in Cache. |
static void |
checkAllFieldsValid(Database db)
Verifies that all fields from Cache class are exposed with accessor methods in Java class and that values for indexes in zObjVal are the same as in Cache. |
static void |
checkAllMethods(Database db)
Verifies that all fields from Cache class are exposed with accessor methods in Java class and that values for indexes in zObjVal are the same as in Cache. |
String |
get_translateTable()
Returns value of property _translateTable |
CacheClass |
getCacheClass()
Allows access metadata information about type of this object in Cache database. |
static String |
getCacheClassName()
Returns class name of the class FileCharacterStream as it is in Cache Database. |
void |
set_translateTable(String value)
Returns value of property _translateTable |
Methods inherited from class com.intersys.classes.CharacterStream |
_lineTerminatorGet, _lineTerminatorSet, _moveToEnd, _read, _readLine, _write, _write, _writeLine, _writeLine, get_lineTerminator, getReader, getWriter, set_lineTerminator |
Methods inherited from class com.intersys.classes.SerialStream |
_clear, _copyFrom, _copyFromAndSave, _deleteAttribute, _flush, _getAttribute, _getAttribute, _getStreamId, _inputFromDevice, _inputFromDevice, _inputFromDevice, _isDefinedAttribute, _isNull, _lastModifiedGet, _nextAttribute, _openStream, _outputToDevice, _outputToDevice, _rewind, _saveStream, _setAttribute, _sizeGet |
Methods inherited from class com.intersys.classes.SerialObject |
_getSwizzleObject, _getSwizzleObject, _getSwizzleObject, getOid, open, openOnServer, serialize, serialize |
Methods inherited from class com.intersys.classes.RegisteredObject |
_className, _className, _constructClone, _constructClone, _constructClone, _isModified, _normalizeObject, _packageName, _validateObject, _validateObject, constructClone, constructClone, getZRef |
Methods inherited from class com.intersys.classes.CacheRootObject |
_close, castTo, equals, getDatabase, getField, getOref, getProxy, getString, hashCode, release, releaseInternal, toString |
Methods inherited from class com.intersys.classes.CacheGeneric |
checkAllFieldsValid, checkFieldsLimited, reset |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public FileCharacterStream(com.intersys.cache.CacheObject ref) throws CacheException
Used to construct a Java object, corresponding to existing object in Cache database.
_open(com.intersys.objects.Database, com.intersys.objects.Oid)
public FileCharacterStream(Database db) throws CacheException
FileCharacterStream
.
db
- Database
object used for connection with
Cache database.
CacheException
- in case of error._open(com.intersys.objects.Database, com.intersys.objects.Oid)
Method Detail |
public static RegisteredObject _open(Database db, Oid oid) throws CacheException
%Open
in Cache to open an object
from Cache database and creates corresponding object of class
FileCharacterStream
.
db
- Database
object used for connection with
Cache database.oid
- Object ID as specified in Cache. represented as
Oid
.
RegisteredObject
, corresponding to opened
object. This object may be of FileCharacterStream
or of
any of it's subclasses. Cast to FileCharacterStream
is
garanteed to pass without ClassCastException
exception.
CacheException
- in case of error.ClassCastException
,
FileCharacterStream(com.intersys.objects.Database)
public static RegisteredObject _open(Database db, Oid oid, int concurrency) throws CacheException
CacheException
public static String getCacheClassName()
getCacheClass().geName()
to get the class name
for specific object.
String
getCacheClass()
,
CacheClass.getName()
public CacheClass getCacheClass() throws CacheException
getCacheClass
in class CharacterStream
CacheClass
object for this object type.
CacheException
public static void checkAllFieldsValid(Database db) throws CacheException
Please note, that if any field is not exposed that i critical error. But if there is any inconsistncy in zObjVal indexes this is fatal and class can not work correctly and must be regenrated.
db
- Databse used for connection. Note that if you are
using multiple databases the class can be consistent with one
and inconsistent with another.
InvalidClassException
- if any inconsistency is found.
CacheException
- if any error occured during
verification, e.g. communication error with Databse.InvalidPropertyException
public static void checkAllMethods(Database db) throws CacheException
Please note, that if any field is not exposed that i critical error. But if there is any inconsistncy in zObjVal indexes this is fatal and class can not work correctly and must be regenrated.
db
- Databse used for connection. Note that if you are
using multiple databases the class can be consistent with one
and inconsistent with another.
InvalidClassException
- if any inconsistency is found.
CacheException
- if any error occured during
verification, e.g. communication error with Databse.InvalidPropertyException
public static void check_filenameValid(Database db) throws CacheException
_filename
in
zObjVal are the same as in Cache. It does not return anything
but it thorws an exception in case of inconsistency.
Please note, that if there is any inconsistncy in zObjVal indexes this is fatal and class can not work correctly and must be regenrated.
db
- Databse used for connection. Note that if you are
using multiple databases the class can be consistent with one
and inconsistent with another.
InvalidClassException
- if any inconsistency is found.
CacheException
- if any error occured during
verification, e.g. communication error with Databse.checkAllFieldsValid(com.intersys.objects.Database)
public static void check_translateTableValid(Database db) throws CacheException
_translateTable
in
zObjVal are the same as in Cache. It does not return anything
but it thorws an exception in case of inconsistency.
Please note, that if there is any inconsistncy in zObjVal indexes this is fatal and class can not work correctly and must be regenrated.
db
- Databse used for connection. Note that if you are
using multiple databases the class can be consistent with one
and inconsistent with another.
InvalidClassException
- if any inconsistency is found.
CacheException
- if any error occured during
verification, e.g. communication error with Databse.checkAllFieldsValid(com.intersys.objects.Database)
public String get_translateTable() throws CacheException
_translateTable
_translateTable
represented as
CacheException
- if any error occured during value retrieval.public void set_translateTable(String value) throws CacheException
_translateTable
_translateTable
represented as
CacheException
- if any error occured during value retrieval.public static String _className(Database db, Boolean fullname) throws CacheException
db
- represented as Databasefullname
- represented as java.lang.Boolean
CacheException
- if any error occured while running the method._className(Database,java.lang.Boolean)
public static String _getParameter(Database db) throws CacheException
db
- represented as Database
CacheException
- if any error occured while running the method._getParameter(Database,java.lang.String)
public static String _getParameter(Database db, String paramname) throws CacheException
db
- represented as Databaseparamname
- represented as java.lang.String
CacheException
- if any error occured while running the method._getParameter(Database,java.lang.String)
public static Integer _isA(Database db, String isclass) throws CacheException
db
- represented as Databaseisclass
- represented as java.lang.String
CacheException
- if any error occured while running the method._isA(Database,java.lang.String)
public static String _packageName(Database db) throws CacheException
db
- represented as Database
CacheException
- if any error occured while running the method._packageName(Database)
public static void _deleteStream(Database db, Oid oid) throws CacheException
db
- represented as Databaseoid
- represented as com.intersys.objects.Oid
CacheException
- if any error occured while running the method._deleteStream(Database,com.intersys.objects.Oid)
public String _filenameGet() throws CacheException
CacheException
- if any error occured while running the method._filenameGet()
public void _filenameSet(String file) throws CacheException
file
- represented as java.lang.String
CacheException
- if any error occured while running the method._filenameSet(java.lang.String)
public static String _getStreamIdForFile(Database db, String file, String contenttype) throws CacheException
db
- represented as Databasefile
- represented as java.lang.Stringcontenttype
- represented as java.lang.String
CacheException
- if any error occured while running the method._getStreamIdForFile(Database,java.lang.String,java.lang.String)
public Boolean _isFileUnicode() throws CacheException
CacheException
- if any error occured while running the method._isFileUnicode()
public void _linkToFile(String filename) throws CacheException
filename
- represented as java.lang.String
CacheException
- if any error occured while running the method._linkToFile(java.lang.String)
public static String _logicalToOdbc(Database db) throws CacheException
db
- represented as Database
CacheException
- if any error occured while running the method._logicalToOdbc(Database,java.lang.String)
public static String _logicalToOdbc(Database db, String _val) throws CacheException
db
- represented as Database_val
- represented as java.lang.String
CacheException
- if any error occured while running the method._logicalToOdbc(Database,java.lang.String)
public static String _newFileName(Database db) throws CacheException
db
- represented as Database
CacheException
- if any error occured while running the method._newFileName(Database,java.lang.String)
public static String _newFileName(Database db, String ext) throws CacheException
db
- represented as Databaseext
- represented as java.lang.String
CacheException
- if any error occured while running the method._newFileName(Database,java.lang.String)
public static String _odbcToLogical(Database db) throws CacheException
db
- represented as Database
CacheException
- if any error occured while running the method._odbcToLogical(Database,java.lang.String)
public static String _odbcToLogical(Database db, String _val) throws CacheException
db
- represented as Database_val
- represented as java.lang.String
CacheException
- if any error occured while running the method._odbcToLogical(Database,java.lang.String)
public void _translateTableSet(String table) throws CacheException
table
- represented as java.lang.String
CacheException
- if any error occured while running the method._translateTableSet(java.lang.String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |