Package cc.carm.plugin.minesql.api.table
Class SimpleSQLTable
- java.lang.Object
-
- cc.carm.plugin.minesql.api.table.SimpleSQLTable
-
public class SimpleSQLTable extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected @Nullable java.lang.Stringdatabaseprotected @NotNull cc.carm.lib.easysql.api.function.SQLHandler<cc.carm.lib.easysql.api.builder.TableCreateBuilder>tableCreatorprotected @NotNull java.lang.StringtableNameprotected @Nullable java.util.function.Supplier<java.lang.String>tablePrefix
-
Constructor Summary
Constructors Constructor Description SimpleSQLTable(@Nullable java.lang.String database, @NotNull java.lang.String tableName, @Nullable java.util.function.Supplier<java.lang.String> tablePrefix, @NotNull cc.carm.lib.easysql.api.function.SQLHandler<cc.carm.lib.easysql.api.builder.TableCreateBuilder> table)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull cc.carm.lib.easysql.api.builder.TableAlterBuilderalter()@NotNull cc.carm.lib.easysql.api.builder.TableAlterBuilderalter(@NotNull cc.carm.lib.easysql.api.SQLManager sqlManager)booleancreate()@NotNull cc.carm.lib.easysql.api.builder.DeleteBuildercreateDelete()@NotNull cc.carm.lib.easysql.api.builder.DeleteBuildercreateDelete(@NotNull cc.carm.lib.easysql.api.SQLManager sqlManager)@NotNull cc.carm.lib.easysql.api.builder.InsertBuilder<cc.carm.lib.easysql.api.action.PreparedSQLUpdateAction<java.lang.Integer>>createInsert()@NotNull cc.carm.lib.easysql.api.builder.InsertBuilder<cc.carm.lib.easysql.api.action.PreparedSQLUpdateAction<java.lang.Integer>>createInsert(@NotNull cc.carm.lib.easysql.api.SQLManager sqlManager)@NotNull cc.carm.lib.easysql.api.builder.InsertBuilder<cc.carm.lib.easysql.api.action.PreparedSQLUpdateBatchAction<java.lang.Integer>>createInsertBatch()@NotNull cc.carm.lib.easysql.api.builder.InsertBuilder<cc.carm.lib.easysql.api.action.PreparedSQLUpdateBatchAction<java.lang.Integer>>createInsertBatch(@NotNull cc.carm.lib.easysql.api.SQLManager sqlManager)@NotNull cc.carm.lib.easysql.api.builder.TableQueryBuildercreateQuery()@NotNull cc.carm.lib.easysql.api.builder.TableQueryBuildercreateQuery(@NotNull cc.carm.lib.easysql.api.SQLManager sqlManager)@NotNull cc.carm.lib.easysql.api.builder.ReplaceBuilder<cc.carm.lib.easysql.api.action.PreparedSQLUpdateAction<java.lang.Integer>>createReplace()@NotNull cc.carm.lib.easysql.api.builder.ReplaceBuilder<cc.carm.lib.easysql.api.action.PreparedSQLUpdateAction<java.lang.Integer>>createReplace(@NotNull cc.carm.lib.easysql.api.SQLManager sqlManager)@NotNull cc.carm.lib.easysql.api.builder.ReplaceBuilder<cc.carm.lib.easysql.api.action.PreparedSQLUpdateBatchAction<java.lang.Integer>>createReplaceBatch()@NotNull cc.carm.lib.easysql.api.builder.ReplaceBuilder<cc.carm.lib.easysql.api.action.PreparedSQLUpdateBatchAction<java.lang.Integer>>createReplaceBatch(@NotNull cc.carm.lib.easysql.api.SQLManager sqlManager)@NotNull cc.carm.lib.easysql.api.builder.UpdateBuildercreateUpdate()@NotNull cc.carm.lib.easysql.api.builder.UpdateBuildercreateUpdate(@NotNull cc.carm.lib.easysql.api.SQLManager sqlManager)@Nullable java.lang.StringgetDatabase()@Nullable cc.carm.lib.easysql.api.SQLManagergetSQLManager()@NotNull java.lang.StringgetTableName()@Nullable java.lang.StringgetTablePrefix()static @NotNull SimpleSQLTableof(@NotNull java.lang.String tableName, @NotNull cc.carm.lib.easysql.api.function.SQLHandler<cc.carm.lib.easysql.api.builder.TableCreateBuilder> tableBuilder)static @NotNull SimpleSQLTableof(@Nullable java.lang.String database, @NotNull java.lang.String tableName, @NotNull cc.carm.lib.easysql.api.function.SQLHandler<cc.carm.lib.easysql.api.builder.TableCreateBuilder> tableBuilder)static @NotNull SimpleSQLTableof(@Nullable java.lang.String database, @NotNull java.lang.String tableName, @Nullable java.lang.String tablePrefix, @NotNull cc.carm.lib.easysql.api.function.SQLHandler<cc.carm.lib.easysql.api.builder.TableCreateBuilder> tableBuilder)static @NotNull SimpleSQLTableof(@Nullable java.lang.String database, @NotNull java.lang.String tableName, @Nullable java.util.function.Supplier<java.lang.String> tablePrefix, @NotNull cc.carm.lib.easysql.api.function.SQLHandler<cc.carm.lib.easysql.api.builder.TableCreateBuilder> tableBuilder)
-
-
-
Field Detail
-
database
@Nullable protected final @Nullable java.lang.String database
-
tableName
@NotNull protected final @NotNull java.lang.String tableName
-
tablePrefix
@Nullable protected final @Nullable java.util.function.Supplier<java.lang.String> tablePrefix
-
tableCreator
@NotNull protected final @NotNull cc.carm.lib.easysql.api.function.SQLHandler<cc.carm.lib.easysql.api.builder.TableCreateBuilder> tableCreator
-
-
Constructor Detail
-
SimpleSQLTable
public SimpleSQLTable(@Nullable @Nullable java.lang.String database, @NotNull @NotNull java.lang.String tableName, @Nullable @Nullable java.util.function.Supplier<java.lang.String> tablePrefix, @NotNull @NotNull cc.carm.lib.easysql.api.function.SQLHandler<cc.carm.lib.easysql.api.builder.TableCreateBuilder> table)
-
-
Method Detail
-
of
@NotNull public static @NotNull SimpleSQLTable of(@NotNull @NotNull java.lang.String tableName, @NotNull @NotNull cc.carm.lib.easysql.api.function.SQLHandler<cc.carm.lib.easysql.api.builder.TableCreateBuilder> tableBuilder)
-
of
@NotNull public static @NotNull SimpleSQLTable of(@Nullable @Nullable java.lang.String database, @NotNull @NotNull java.lang.String tableName, @NotNull @NotNull cc.carm.lib.easysql.api.function.SQLHandler<cc.carm.lib.easysql.api.builder.TableCreateBuilder> tableBuilder)
-
of
@NotNull public static @NotNull SimpleSQLTable of(@Nullable @Nullable java.lang.String database, @NotNull @NotNull java.lang.String tableName, @Nullable @Nullable java.lang.String tablePrefix, @NotNull @NotNull cc.carm.lib.easysql.api.function.SQLHandler<cc.carm.lib.easysql.api.builder.TableCreateBuilder> tableBuilder)
-
of
@NotNull public static @NotNull SimpleSQLTable of(@Nullable @Nullable java.lang.String database, @NotNull @NotNull java.lang.String tableName, @Nullable @Nullable java.util.function.Supplier<java.lang.String> tablePrefix, @NotNull @NotNull cc.carm.lib.easysql.api.function.SQLHandler<cc.carm.lib.easysql.api.builder.TableCreateBuilder> tableBuilder)
-
create
public boolean create() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getDatabase
@Nullable public @Nullable java.lang.String getDatabase()
-
getSQLManager
@Nullable public @Nullable cc.carm.lib.easysql.api.SQLManager getSQLManager()
-
getTableName
@NotNull public @NotNull java.lang.String getTableName()
-
getTablePrefix
@Nullable public @Nullable java.lang.String getTablePrefix()
-
createQuery
@NotNull public @NotNull cc.carm.lib.easysql.api.builder.TableQueryBuilder createQuery()
-
createQuery
@NotNull public @NotNull cc.carm.lib.easysql.api.builder.TableQueryBuilder createQuery(@NotNull @NotNull cc.carm.lib.easysql.api.SQLManager sqlManager)
-
createDelete
@NotNull public @NotNull cc.carm.lib.easysql.api.builder.DeleteBuilder createDelete()
-
createDelete
@NotNull public @NotNull cc.carm.lib.easysql.api.builder.DeleteBuilder createDelete(@NotNull @NotNull cc.carm.lib.easysql.api.SQLManager sqlManager)
-
createUpdate
@NotNull public @NotNull cc.carm.lib.easysql.api.builder.UpdateBuilder createUpdate()
-
createUpdate
@NotNull public @NotNull cc.carm.lib.easysql.api.builder.UpdateBuilder createUpdate(@NotNull @NotNull cc.carm.lib.easysql.api.SQLManager sqlManager)
-
createInsert
@NotNull public @NotNull cc.carm.lib.easysql.api.builder.InsertBuilder<cc.carm.lib.easysql.api.action.PreparedSQLUpdateAction<java.lang.Integer>> createInsert()
-
createInsert
@NotNull public @NotNull cc.carm.lib.easysql.api.builder.InsertBuilder<cc.carm.lib.easysql.api.action.PreparedSQLUpdateAction<java.lang.Integer>> createInsert(@NotNull @NotNull cc.carm.lib.easysql.api.SQLManager sqlManager)
-
createInsertBatch
@NotNull public @NotNull cc.carm.lib.easysql.api.builder.InsertBuilder<cc.carm.lib.easysql.api.action.PreparedSQLUpdateBatchAction<java.lang.Integer>> createInsertBatch()
-
createInsertBatch
@NotNull public @NotNull cc.carm.lib.easysql.api.builder.InsertBuilder<cc.carm.lib.easysql.api.action.PreparedSQLUpdateBatchAction<java.lang.Integer>> createInsertBatch(@NotNull @NotNull cc.carm.lib.easysql.api.SQLManager sqlManager)
-
createReplace
@NotNull public @NotNull cc.carm.lib.easysql.api.builder.ReplaceBuilder<cc.carm.lib.easysql.api.action.PreparedSQLUpdateAction<java.lang.Integer>> createReplace()
-
createReplace
@NotNull public @NotNull cc.carm.lib.easysql.api.builder.ReplaceBuilder<cc.carm.lib.easysql.api.action.PreparedSQLUpdateAction<java.lang.Integer>> createReplace(@NotNull @NotNull cc.carm.lib.easysql.api.SQLManager sqlManager)
-
createReplaceBatch
@NotNull public @NotNull cc.carm.lib.easysql.api.builder.ReplaceBuilder<cc.carm.lib.easysql.api.action.PreparedSQLUpdateBatchAction<java.lang.Integer>> createReplaceBatch()
-
createReplaceBatch
@NotNull public @NotNull cc.carm.lib.easysql.api.builder.ReplaceBuilder<cc.carm.lib.easysql.api.action.PreparedSQLUpdateBatchAction<java.lang.Integer>> createReplaceBatch(@NotNull @NotNull cc.carm.lib.easysql.api.SQLManager sqlManager)
-
alter
@NotNull public @NotNull cc.carm.lib.easysql.api.builder.TableAlterBuilder alter()
-
alter
@NotNull public @NotNull cc.carm.lib.easysql.api.builder.TableAlterBuilder alter(@NotNull @NotNull cc.carm.lib.easysql.api.SQLManager sqlManager)
-
-