|
||||||||||
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.AbstractStream
com.intersys.classes.File
Constructor Summary | |
File(com.intersys.cache.CacheObject ref)
NB: DO NOT USE IN APPLICATION! |
|
File(Database db)
Creates a new instance of object " File . |
Method Summary | |
static String |
_className(Database db,
Boolean fullname)
Runs method _className in Cache |
void |
_clear()
Runs method _clear in Cache |
static Boolean |
_copyFile(Database db,
String from,
String to)
Runs method _copyFile in Cache |
static Boolean |
_createDirectory(Database db,
String name)
Runs method _createDirectory in Cache |
static Boolean |
_createDirectoryChain(Database db,
String name)
Runs method _createDirectoryChain in Cache |
static Boolean |
_createNewDir(Database db,
String directory,
String name)
Runs method _createNewDir in Cache |
Date |
_dateCreatedGet()
Runs method _dateCreatedGet in Cache |
Date |
_dateModifiedGet()
Runs method _dateModifiedGet in Cache |
static String |
_getDirectory(Database db,
String name)
Runs method _getDirectory in Cache |
static String |
_getFileDateCreated(Database db,
String filename)
Runs method _getFileDateCreated in Cache |
static String |
_getFileDateModified(Database db,
String filename)
Runs method _getFileDateModified in Cache |
static String |
_getFilename(Database db,
String name)
Runs method _getFilename in Cache |
static Integer |
_getFileSize(Database db,
String filename)
Runs method _getFileSize 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 Integer |
_isA(Database db,
String isclass)
Runs method _isA in Cache |
Timestamp |
_lastModifiedGet()
Runs method _lastModifiedGet in Cache |
static String |
_managerDirectory(Database db)
Runs method _managerDirectory in Cache |
static String |
_normalizeDirectory(Database db,
String filename)
Runs method _normalizeDirectory in Cache |
static String |
_packageName(Database db)
Runs method _packageName in Cache |
String |
_read(IntegerHolder len)
Runs method _read in Cache |
static Integer |
_removeDirectory(Database db,
String name)
Runs method _removeDirectory in Cache |
static Integer |
_rename(Database db,
String oldname,
String newname)
Runs method _rename in Cache |
void |
_rewind()
Runs method _rewind in Cache |
Integer |
_sizeGet()
Runs method _sizeGet in Cache |
void |
_write()
Runs method _write in Cache |
void |
_write(String data)
Runs method _write in Cache |
void |
_writeLine()
Runs method _writeLine in Cache |
void |
_writeLine(String data)
Runs method _writeLine in Cache |
static void |
check_dateCreatedValid(Database db)
Verifies that indexes for property _dateCreated in
zObjVal are the same as in Cache. |
static void |
check_dateModifiedValid(Database db)
Verifies that indexes for property _dateModified in
zObjVal are the same as in Cache. |
static void |
check_isOpenValid(Database db)
Verifies that indexes for property _isOpen in
zObjVal are the same as in Cache. |
static void |
check_modeValid(Database db)
Verifies that indexes for property _mode in
zObjVal are the same as in Cache. |
static void |
check_nameValid(Database db)
Verifies that indexes for property _name 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. |
void |
close()
Runs method _close in Cache |
static boolean |
delete(Database db,
String filename)
Runs method _delete in Cache |
static boolean |
directoryExists(Database db,
String filename)
Runs method %directoryExists in Cache |
static boolean |
exists(Database db,
String filename)
Runs method _exists in Cache |
Date |
get_dateCreated()
Returns value of property _dateCreated |
Date |
get_dateModified()
Returns value of property _dateModified |
Boolean |
get_isOpen()
Returns value of property _isOpen |
String |
get_mode()
Returns value of property _mode |
String |
get_name()
Returns value of property _name |
CacheClass |
getCacheClass()
Allows access metadata information about type of this object in Cache database. |
static String |
getCacheClassName()
Returns class name of the class File as it is in Cache Database. |
void |
open(String mode)
Runs method Open in Cache |
static CacheQuery |
query_DriveList(Database db)
|
static CacheQuery |
query_FileSet(Database db)
|
static CacheQuery |
query_ParseDirectory(Database db)
|
void |
set_mode(String value)
Returns value of property _mode |
void |
set_name(String value)
Returns value of property _name |
Methods inherited from class com.intersys.classes.AbstractStream |
_copyFrom, _deleteAttribute, _flush, _getAttribute, _getAttribute, _inputFromDevice, _inputFromDevice, _inputFromDevice, _isDefinedAttribute, _moveToEnd, _nextAttribute, _outputToDevice, _outputToDevice, _setAttribute, check_atEndValid, get_atEnd, get_lastModified, get_size, set_atEnd |
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 File(com.intersys.cache.CacheObject ref) throws CacheException
Used to construct a Java object, corresponding to existing object in Cache database.
public File(Database db) throws CacheException
File
.
db
- Database
object used for connection with
Cache database.
CacheException
- in case of error.Method Detail |
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 AbstractStream
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_dateCreatedValid(Database db) throws CacheException
_dateCreated
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 Date get_dateCreated() throws CacheException
_dateCreated
_dateCreated
represented as
CacheException
- if any error occured during value retrieval.public static void check_dateModifiedValid(Database db) throws CacheException
_dateModified
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 Date get_dateModified() throws CacheException
_dateModified
_dateModified
represented as
CacheException
- if any error occured during value retrieval.public static void check_isOpenValid(Database db) throws CacheException
_isOpen
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 Boolean get_isOpen() throws CacheException
_isOpen
_isOpen
represented as
CacheException
- if any error occured during value retrieval.public static void check_modeValid(Database db) throws CacheException
_mode
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_mode() throws CacheException
_mode
_mode
represented as
CacheException
- if any error occured during value retrieval.public void set_mode(String value) throws CacheException
_mode
_mode
represented as
CacheException
- if any error occured during value retrieval.public static void check_nameValid(Database db) throws CacheException
_name
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_name() throws CacheException
_name
_name
represented as
CacheException
- if any error occured during value retrieval.public void set_name(String value) throws CacheException
_name
_name
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 void _clear() throws CacheException
_clear
in class AbstractStream
CacheException
- if any error occured while running the method._clear()
public void close() throws CacheException
CacheException
- if any error occured while running the method.CacheRootObject._close()
public static Boolean _copyFile(Database db, String from, String to) throws CacheException
db
- represented as Databasefrom
- represented as java.lang.Stringto
- represented as java.lang.String
CacheException
- if any error occured while running the method._copyFile(Database,java.lang.String,java.lang.String)
public static Boolean _createDirectory(Database db, String name) throws CacheException
db
- represented as Databasename
- represented as java.lang.String
CacheException
- if any error occured while running the method._createDirectory(Database,java.lang.String)
public static Boolean _createDirectoryChain(Database db, String name) throws CacheException
db
- represented as Databasename
- represented as java.lang.String
CacheException
- if any error occured while running the method._createDirectoryChain(Database,java.lang.String)
public static Boolean _createNewDir(Database db, String directory, String name) throws CacheException
db
- represented as Databasedirectory
- represented as java.lang.Stringname
- represented as java.lang.String
CacheException
- if any error occured while running the method._createNewDir(Database,java.lang.String,java.lang.String)
public Date _dateCreatedGet() throws CacheException
CacheException
- if any error occured while running the method._dateCreatedGet()
public Date _dateModifiedGet() throws CacheException
CacheException
- if any error occured while running the method._dateModifiedGet()
public static boolean delete(Database db, String filename) throws CacheException
db
- represented as Databasefilename
- represented as java.lang.String
CacheException
- if any error occured while running the method.public static boolean directoryExists(Database db, String filename) throws CacheException
db
- represented as Databasefilename
- represented as java.lang.String
CacheException
- if any error occured while running the method.public static boolean exists(Database db, String filename) throws CacheException
db
- represented as Databasefilename
- represented as java.lang.String
CacheException
- if any error occured while running the method.public static String _getDirectory(Database db, String name) throws CacheException
db
- represented as Databasename
- represented as java.lang.String
CacheException
- if any error occured while running the method._getDirectory(Database,java.lang.String)
public static String _getFileDateCreated(Database db, String filename) throws CacheException
db
- represented as Databasefilename
- represented as java.lang.String
CacheException
- if any error occured while running the method._getFileDateCreated(Database,java.lang.String)
public static String _getFileDateModified(Database db, String filename) throws CacheException
db
- represented as Databasefilename
- represented as java.lang.String
CacheException
- if any error occured while running the method._getFileDateModified(Database,java.lang.String)
public static Integer _getFileSize(Database db, String filename) throws CacheException
db
- represented as Databasefilename
- represented as java.lang.String
CacheException
- if any error occured while running the method._getFileSize(Database,java.lang.String)
public static String _getFilename(Database db, String name) throws CacheException
db
- represented as Databasename
- represented as java.lang.String
CacheException
- if any error occured while running the method._getFilename(Database,java.lang.String)
public Timestamp _lastModifiedGet() throws CacheException
_lastModifiedGet
in class AbstractStream
CacheException
- if any error occured while running the method._lastModifiedGet()
public static String _managerDirectory(Database db) throws CacheException
db
- represented as Database
CacheException
- if any error occured while running the method._managerDirectory(Database)
public static String _normalizeDirectory(Database db, String filename) throws CacheException
db
- represented as Databasefilename
- represented as java.lang.String
CacheException
- if any error occured while running the method.public void open(String mode) throws CacheException
Open
in Cache
mode
- represented as java.lang.String
CacheException
- if any error occured while running the method.public String _read(IntegerHolder len) throws CacheException
_read
in class AbstractStream
len
- represented as com.intersys.objects.IntegerHolder
CacheException
- if any error occured while running the method._read(com.intersys.objects.IntegerHolder)
public static Integer _removeDirectory(Database db, String name) throws CacheException
db
- represented as Databasename
- represented as java.lang.String
CacheException
- if any error occured while running the method._removeDirectory(Database,java.lang.String)
public static Integer _rename(Database db, String oldname, String newname) throws CacheException
db
- represented as Databaseoldname
- represented as java.lang.Stringnewname
- represented as java.lang.String
CacheException
- if any error occured while running the method._rename(Database,java.lang.String,java.lang.String)
public void _rewind() throws CacheException
_rewind
in class AbstractStream
CacheException
- if any error occured while running the method._rewind()
public Integer _sizeGet() throws CacheException
_sizeGet
in class AbstractStream
CacheException
- if any error occured while running the method._sizeGet()
public void _write() throws CacheException
CacheException
- if any error occured while running the method._write(java.lang.String)
public void _write(String data) throws CacheException
_write
in class AbstractStream
data
- represented as java.lang.String
CacheException
- if any error occured while running the method._write(java.lang.String)
public void _writeLine() throws CacheException
CacheException
- if any error occured while running the method._writeLine(java.lang.String)
public void _writeLine(String data) throws CacheException
data
- represented as java.lang.String
CacheException
- if any error occured while running the method._writeLine(java.lang.String)
public static CacheQuery query_DriveList(Database db) throws CacheException
CacheException
public static CacheQuery query_FileSet(Database db) throws CacheException
CacheException
public static CacheQuery query_ParseDirectory(Database db) throws CacheException
CacheException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |