railo.commons.io.res.type.datasource.core
Class MSSQL
java.lang.Object
railo.commons.io.res.type.datasource.core.CoreSupport
railo.commons.io.res.type.datasource.core.MSSQL
- All Implemented Interfaces:
- Core
public class MSSQL
- extends CoreSupport
Method Summary |
boolean |
concatSupported()
|
void |
create(DatasourceConnection dc,
String prefix,
int fullPatHash,
int pathHash,
String path,
String name,
int type)
create a new entry (file or directory) |
boolean |
delete(DatasourceConnection dc,
String prefix,
Attr attr)
deletes a entry (file or directory) |
Attr |
getAttr(DatasourceConnection dc,
String prefix,
int fullPathHash,
String path,
String name)
return a single Attr, if Attr does not exists it returns null |
List |
getAttrs(DatasourceConnection dc,
String prefix,
int pathHash,
String path)
return all child Attrs of a given path |
InputStream |
getInputStream(DatasourceConnection dc,
String prefix,
Attr attr)
returns a inputStram to a entry data |
void |
setAttributes(DatasourceConnection dc,
String prefix,
Attr attr,
int attributes)
|
void |
setLastModified(DatasourceConnection dc,
String prefix,
Attr attr,
long time)
|
void |
setMode(DatasourceConnection dc,
String prefix,
Attr attr,
int mode)
|
void |
write(DatasourceConnection dc,
String prefix,
Attr attr,
InputStream is,
boolean append)
|
MSSQL
public MSSQL(DatasourceConnection dc,
String prefix)
throws SQLException
- Throws:
SQLException
getAttr
public Attr getAttr(DatasourceConnection dc,
String prefix,
int fullPathHash,
String path,
String name)
throws SQLException
- Description copied from interface:
Core
- return a single Attr, if Attr does not exists it returns null
- Returns:
-
- Throws:
SQLException
- See Also:
Core.getAttr(railo.runtime.db.DatasourceConnection, java.lang.String, int, java.lang.String, java.lang.String)
getAttrs
public List getAttrs(DatasourceConnection dc,
String prefix,
int pathHash,
String path)
throws SQLException
- Description copied from interface:
Core
- return all child Attrs of a given path
- Returns:
-
- Throws:
SQLException
- See Also:
Core.getAttrs(railo.runtime.db.DatasourceConnection, java.lang.String, int, java.lang.String)
create
public void create(DatasourceConnection dc,
String prefix,
int fullPatHash,
int pathHash,
String path,
String name,
int type)
throws SQLException
- Description copied from interface:
Core
- create a new entry (file or directory)
- Throws:
SQLException
- See Also:
Core.create(railo.runtime.db.DatasourceConnection, java.lang.String, int, int, java.lang.String, java.lang.String, int)
delete
public boolean delete(DatasourceConnection dc,
String prefix,
Attr attr)
throws SQLException
- Description copied from interface:
Core
- deletes a entry (file or directory)
- Returns:
-
- Throws:
SQLException
- See Also:
Core.delete(railo.runtime.db.DatasourceConnection, java.lang.String, railo.commons.io.res.type.datasource.Attr)
getInputStream
public InputStream getInputStream(DatasourceConnection dc,
String prefix,
Attr attr)
throws SQLException,
IOException
- Description copied from interface:
Core
- returns a inputStram to a entry data
- Returns:
-
- Throws:
SQLException
IOException
- See Also:
Core.getInputStream(railo.runtime.db.DatasourceConnection, java.lang.String, railo.commons.io.res.type.datasource.Attr)
write
public void write(DatasourceConnection dc,
String prefix,
Attr attr,
InputStream is,
boolean append)
throws SQLException
- Throws:
SQLException
- See Also:
Core.write(railo.runtime.db.DatasourceConnection, java.lang.String, railo.commons.io.res.type.datasource.Attr, java.io.InputStream, boolean)
setLastModified
public void setLastModified(DatasourceConnection dc,
String prefix,
Attr attr,
long time)
throws SQLException
- Throws:
SQLException
- See Also:
Core.setLastModified(railo.runtime.db.DatasourceConnection, java.lang.String, railo.commons.io.res.type.datasource.Attr, long)
setMode
public void setMode(DatasourceConnection dc,
String prefix,
Attr attr,
int mode)
throws SQLException
- Throws:
SQLException
- See Also:
Core.setMode(railo.runtime.db.DatasourceConnection, java.lang.String, railo.commons.io.res.type.datasource.Attr, int)
setAttributes
public void setAttributes(DatasourceConnection dc,
String prefix,
Attr attr,
int attributes)
throws SQLException
- Throws:
SQLException
- See Also:
Core.setAttributes(railo.runtime.db.DatasourceConnection, java.lang.String, railo.commons.io.res.type.datasource.Attr, int)
concatSupported
public boolean concatSupported()
- Returns:
- return true if this core support concatination of existing data with new data (getOutputStream(append:true))
- See Also:
Core.concatSupported()
Copyright © 2012 Railo