railo.commons.io.res.type.datasource.core
Class MySQL

java.lang.Object
  extended by railo.commons.io.res.type.datasource.core.CoreSupport
      extended by railo.commons.io.res.type.datasource.core.MySQL
All Implemented Interfaces:
Core

public class MySQL
extends CoreSupport


Field Summary
 
Fields inherited from class railo.commons.io.res.type.datasource.core.CoreSupport
ATTR_ROOT
 
Constructor Summary
MySQL(DatasourceConnection dc, String prefix)
           
 
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)
           
 
Methods inherited from class railo.commons.io.res.type.datasource.core.CoreSupport
getCalendar, isDirectory, isFile, isLink, log, log, log, log
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MySQL

public MySQL(DatasourceConnection dc,
             String prefix)
      throws SQLException
Throws:
SQLException
Method Detail

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 exist it returns null

Returns:
Throws:
SQLException

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

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

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

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

write

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

setLastModified

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

setMode

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

setAttributes

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

concatSupported

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


Copyright © 2012 Railo