railo.commons.io.res.type.datasource.core
Interface Core

All Known Implementing Classes:
CoreSupport, MSSQL, MySQL

public interface Core


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 exist 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)
           
 

Method Detail

concatSupported

boolean concatSupported()
Returns:
return true if this core support concatination of existing data with new data (getOutputStream(append:true))

getAttr

Attr getAttr(DatasourceConnection dc,
             String prefix,
             int fullPathHash,
             String path,
             String name)
             throws SQLException
return a single Attr, if Attr does not exist it returns null

Parameters:
dc -
path -
name -
name2 -
Returns:
Throws:
SQLException

getAttrs

List getAttrs(DatasourceConnection dc,
              String prefix,
              int pathHash,
              String path)
              throws SQLException
return all child Attrs of a given path

Parameters:
dc -
prefix -
path -
Returns:
Throws:
SQLException

create

void create(DatasourceConnection dc,
            String prefix,
            int fullPatHash,
            int pathHash,
            String path,
            String name,
            int type)
            throws SQLException
create a new entry (file or directory)

Parameters:
dc -
prefix -
path -
name -
type -
Throws:
SQLException

delete

boolean delete(DatasourceConnection dc,
               String prefix,
               Attr attr)
               throws SQLException
deletes a entry (file or directory)

Parameters:
dc -
prefix -
attr -
Returns:
Throws:
SQLException

getInputStream

InputStream getInputStream(DatasourceConnection dc,
                           String prefix,
                           Attr attr)
                           throws SQLException,
                                  IOException
returns a inputStram to a entry data

Parameters:
dc -
prefix -
attr -
Returns:
Throws:
SQLException
IOException

write

void write(DatasourceConnection dc,
           String prefix,
           Attr attr,
           InputStream is,
           boolean append)
           throws SQLException
Throws:
SQLException

setLastModified

void setLastModified(DatasourceConnection dc,
                     String prefix,
                     Attr attr,
                     long time)
                     throws SQLException
Throws:
SQLException

setMode

void setMode(DatasourceConnection dc,
             String prefix,
             Attr attr,
             int mode)
             throws SQLException
Throws:
SQLException

setAttributes

void setAttributes(DatasourceConnection dc,
                   String prefix,
                   Attr attr,
                   int attributes)
                   throws SQLException
Throws:
SQLException


Copyright © 2012 Railo